
/* =========================================================
   AGENCIA ILUMINATI · STYLE PRINCIPAL
   Paleta:
   - Fondo Base: #0B132B (Azul Noche Profundo)
   - Texto/Logo: #FFFFFF
   - Acento Primario: #4F46E5
   - CTA Naranja: #FF8C00
   ========================================================= */

/* -------- RESET BÁSICO -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, #151b3c 0%, #0b132b 40%, #050816 100%);
  color: #ffffff;
  line-height: 1.6;
}

/* Capa de partículas de fondo */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* Contenedor principal para que todo quede sobre las partículas */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* -------- UTILIDADES -------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-head {
  text-align: left;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

.section-head h2 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: #c0c6ff;
  font-size: 0.98rem;
}

/* Botones genéricos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ff8c00, #ffb347);
  color: #0b132b;
  box-shadow: 0 0 18px rgba(255, 140, 0, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.7);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  background: transparent;
  color: #ff8c00;
  border: 1px solid #ff8c00;
}

.btn-outline:hover {
  background: #ff8c00;
  color: #0b132b;
}

.btn-full {
  width: 100%;
}

/* =========================================================
   HEADER
   ========================================================= */

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.25), transparent 55%), rgba(5, 8, 22, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
}

/* Menú a la izquierda */
.main-nav {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}

.main-nav a {
  position: relative;
  font-size: 0.9rem;
  color: #e5e7ff;
  text-decoration: none;
  padding-bottom: 0.2rem;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #4f46e5, #ff8c00);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Logo centrado */
.header-logo {
  flex: 0 0 auto;
  text-align: center;
}

.header-logo img {
  height: 90px;
}

/* Botón de agenda a la derecha */
.header-cta {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Botón hamburguesa (solo mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #ffffff;
  border-radius: 999px;
}

/* Menú móvil desplegable */
.mobile-nav {
  position: fixed;
  inset: 60px 0 auto 0;
  background: rgba(5, 8, 22, 0.98);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.75rem;
  z-index: 45;
}

.mobile-nav a {
  color: #e5e7ff;
  text-decoration: none;
  padding: 0.4rem 0;
}

.mobile-nav-btn {
  margin-top: 0.6rem;
}

.mobile-nav.open {
  display: flex;
}

/* =========================================================
   HERO · NUEVO ORDEN DIGITAL
   ========================================================= */

.hero {
  padding: 0.5rem 0 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(79, 70, 229, 0.4), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(255, 140, 0, 0.35), transparent 60%);
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

/* Bloque superior con icono y tagline */
.hero-eyebrand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  flex-direction: column;
}

.hero-eyebrand img {
  width: 26px;
  height: 26px;
}

.hero-tagline {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5b4fc;
}

/* Título principal */
.hero h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin: 0 0 0.9rem;
}

.hero h1 span {
  color: #8fc0ff;
}

/* Párrafo principal */
.hero-lead {
  margin: 0 0 1.4rem;
  max-width: 520px;
  color: #d0d4ff;
}

/* CTAs del hero */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

/* Chips con frases */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-chips span {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  color: #e0e7ff;
  background: rgba(11, 19, 43, 0.8);
}

/* Tarjeta del formulario del hero */
.hero-form-card {
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.25), transparent 65%), rgba(11, 19, 43, 0.98);
  border-radius: 24px;
  padding: 1.6rem 1.6rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  width: 100%;
  height: 90%;
}

.hero-form-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.hero-form-card p {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  color: #cbd5ff;
}

/* Formulario de leads */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-row.full {
  width: 100%;
}

.form-row.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.form-field label,
.form-row label {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
  color: #cbd5ff;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 255, 0.4);
  background: rgba(4, 7, 20, 0.9);
  color: #ffffff;
  font-size: 0.9rem;
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 255, 0.7);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.45);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #a5b4fc;
}

.form-feedback {
  margin-top: 0.4rem;
  font-size: 0.8rem;
}

/* =========================================================
   ABOUT / QUIÉNES SOMOS
   ========================================================= */

.about {
  padding: 3.5rem 0 1rem;
}

.about-inner {
  max-width: 780px;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.about p {
  color: #d1d5ff;
  font-size: 0.96rem;
}

/* =========================================================
   PARTNERS Y CANALES
   ========================================================= */

.partners-strip {
  padding: 3.5rem 0;
}

.partners-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: #a5b4fc;
  margin-bottom: 0.6rem;
}

.partners-ads-logos,
.partners-official-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.8rem;
}

.partners-ads-logos img {
  height: 26px;
  filter: brightness(1.1);
}

.partners-title {
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.partners-official-logos img {
  height: 46px;
}

/* =========================================================
   PILARES / SERVICIOS
   ========================================================= */

.pillars {
  padding: 3.5rem 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  padding: 1.4rem 1.3rem 1.5rem;
  border-radius: 22px;
  background: rgba(11, 19, 43, 0.96);
  border: 1px solid rgba(148, 163, 255, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.pillar-card h3 {
  font-size: 1.08rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.pillar-card h3 span {
  display: block;
  font-size: 0.82rem;
  color: #a5b4fc;
  font-weight: 400;
}

.pillar-card ul {
  padding-left: 1.1rem;
  margin: 0 0 0.8rem;
  font-size: 0.88rem;
  color: #d8ddff;
}

.pillar-card li + li {
  margin-top: 0.35rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #c4b5fd;
  text-decoration: none;
}

.card-link::after {
  content: '→';
  font-size: 0.9rem;
}

.pillars-cta {
  margin-top: 2rem;
}

/* =========================================================
   CASOS REALES / SLIDERS 16:9
   ========================================================= */

.cases {
  padding: 3.5rem 0;
}

.cases-block + .cases-block {
  margin-top: 2.5rem;
}

.cases-summary {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #d1d5ff;
  font-size: 0.94rem;
}

/* Estructura del slider */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(circle at top, #111827, #020617);
  border: 1px solid rgba(148, 163, 255, 0.4);
  aspect-ratio: 16 / 9;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(0%);
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Flechas del slider */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7ff;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-btn:hover {
  background: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

/* =========================================================
   VIDEOS VIRALES
   ========================================================= */

.videos-virales {
  padding: 3.5rem 0;
}

/* =========================================================
   PRE-FOOTER CTA
   ========================================================= */

.prefooter-cta {
  padding: 3.2rem 0 3.4rem;
  background: radial-gradient(circle at top, rgba(15, 118, 255, 0.55), rgba(11, 19, 43, 1));
}

.prefooter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.prefooter-text h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.9rem;
}

.prefooter-text p {
  margin: 0;
  color: #e0f2fe;
}

.prefooter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 2.8rem 0 1.8rem;
  background: radial-gradient(circle at top, #050816, #020617 65%);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-logo {
  height: 90px;
  margin-bottom: 0.1rem;
}

.footer-brand p {
  color: #e5e7eb;
  font-size: 0.9rem;
}

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-partners img {
  height: 32px;
}

.footer-links h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: #d1d5db;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(55, 65, 81, 0.7);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  /* Header: logo centrado, menú y CTA ocultos, se usa menú mobile */
  .main-nav,
  .header-cta {
    display: none;
  }

  .header-inner {
    justify-content: center;
  }

  .header-logo img {
    height: 34px;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 1.5rem;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    order: 1;
  }

  .hero-form-card {
    order: 2;
  }

  .form-row.two-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .prefooter-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .section-head h2 {
    font-size: 1.7rem;
  }

  .pillars-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .partners-ads-logos,
  .partners-official-logos {
    gap: 1.1rem;
  }

  .partners-official-logos img {
    height: 36px;
  }
}
