:root {
  --primary: #f10440;
  --primary-glow: rgba(241, 4, 64, 0.4);
  --primary-hover: #ff1c57;
  --bg-dark: #050505;
  --bg-card: rgba(20, 20, 20, 0.6);
  --bg-card-hover: rgba(30, 30, 30, 0.8);
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(10, 10, 10, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(241, 4, 64, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.w-100 {
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 15px 0;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo img {
  height: auto;
  max-height: 40px;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.glow-orbs {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  right: -100px;
  animation: float 10s infinite alternate;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(80, 0, 255, 0.4);
  bottom: -50px;
  left: -100px;
  animation: float 8s infinite alternate-reverse;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(30px, 50px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* About Section */
.about-section {
  padding: 100px 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.about-card {
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-10px);
  background: var(--bg-card-hover);
  border-color: rgba(241, 4, 64, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-card .icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.about-card p {
  color: var(--text-muted);
}

/* Creators Section */
.creators-section {
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.02);
}

.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.creator-card {
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.creator-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.creator-img-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.creator-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.creator-card:hover .creator-img {
  transform: scale(1.05);
}

.creator-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.creator-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.creator-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.creator-info .username {
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.creator-info .description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.creator-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.creator-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.creator-actions .btn {
  flex: 1;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

input,
textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-info a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--primary);
}

.social-links-contact {
  display: flex;
  gap: 15px;
  margin-top: 2rem;
}

.social-icon {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.alert-success {
  background: rgba(46, 213, 115, 0.1);
  color: #2ed573;
  border: 1px solid rgba(46, 213, 115, 0.2);
}

/* Creator Selector */
.creator-selector-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.creator-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: text;
  transition: var(--transition);
  min-height: 50px;
}

.creator-selector:focus-within {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
}

.creator-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.creator-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: rgba(241, 4, 64, 0.15);
  border: 1px solid rgba(241, 4, 64, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  color: #fff;
  animation: chipIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.chip-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.chip-name {
  color: var(--primary);
  font-weight: 500;
}

.chip-remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.2s;
}

.chip-remove:hover {
  color: var(--primary);
}

.creator-search-input {
  flex: 1;
  min-width: 120px;
  border: none !important;
  background: transparent !important;
  padding: 5px 0 !important;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
}

.creator-search-input::placeholder {
  color: var(--text-muted);
}

.creator-dropdown {
  display: none;
  max-height: 260px;
  overflow-y: auto;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-top: 6px;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.creator-dropdown.active {
  display: block;
  animation: dropIn 0.2s ease-out;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.creator-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.creator-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.creator-option.selected {
  background: rgba(241, 4, 64, 0.1);
  border: 1px solid rgba(241, 4, 64, 0.2);
}

.creator-option-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.creator-option.selected .creator-option-img {
  border-color: var(--primary);
}

.creator-option-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.creator-option-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.creator-option-username {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.creator-option-check {
  display: none;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.creator-option.selected .creator-option-check {
  display: block;
}

/* Footer */
.footer {
  background: #000;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease;
    z-index: -1;
  }

  .nav-menu.active {
    top: 0;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    margin-top: 10px;
  }

  .footer-links a {
    margin: 0 10px;
  }
}

/* Brand Marquee Section */
.brand-marquee-section {
  background-color: var(--primary);
  /* magenta #f10440 */
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 30px rgba(241, 4, 64, 0.2);
}

.marquee-title-wrapper {
  width: 100%;
  text-align: center;
  margin-bottom: 5px;
}

.marquee-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.marquee-container {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll-marquee 28s linear infinite;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 0 2.5rem;
  /* 5rem total between adjacent logos */
}

.brand-logo img {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-logo:hover {
  transform: scale(1.1);
  opacity: 1;
}

@keyframes scroll-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Pause marquee on hover */
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

/* About Platform Section (¿Qué es Publinez?) */
.about-platform-section {
  padding: 80px 24px;
  background-color: #ffffff;
}

.about-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.about-image-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-team-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

.about-team-image:hover {
  transform: scale(1.02);
}

.about-text-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.platform-title {
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}

.platform-info-card {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.platform-info-card p {
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.platform-info-card p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
}

.platform-locations-card {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.location-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pin-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

.location-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 992px) {
  .about-content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .about-team-image {
    min-height: 300px;
  }
}

@media (max-width: 576px) {
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .platform-title {
    font-size: 2rem;
  }
}