/* =====================================================
   LATTICE IA — Estilos globales
   ===================================================== */

/* --- Variables de diseño --- */
:root {
  --bg-base:        #0A0A0A;
  --bg-secondary:   #0F172A;
  --bg-deep:        #1E3A8A;
  --accent:         #1D4ED8;
  --accent-hover:   #3B82F6;
  --text-primary:   #FAFAFA;
  --text-secondary: #94A3B8;
  --border:         #1E293B;

  --font: 'Space Grotesk', sans-serif;
  --radius: 16px;
  --transition: 0.3s ease;
}

/* --- Reset base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =====================================================
   ANIMACIONES DE ENTRADA (fade-in-up)
   ===================================================== */

.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Clase usada por IntersectionObserver para secciones al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   SECCIÓN — HERO
   ===================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 1.5rem 5rem;
}

/* Degradado radial tipo "horizonte tecnológico" */
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(29, 78, 216, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(30, 58, 138, 0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  max-width: 820px;
  width: 100%;
}

/* Logo con glow azul suave */
.hero__logo-wrap {
  display: flex;
  justify-content: center;
}

.hero__logo {
  width: clamp(120px, 22vw, 200px);
  height: auto;
  border-radius: 18px;
  box-shadow:
    0 0 32px rgba(29, 78, 216, 0.45),
    0 0 72px rgba(29, 78, 216, 0.18);
  transition: box-shadow var(--transition);
}

.hero__logo:hover {
  box-shadow:
    0 0 48px rgba(59, 130, 246, 0.6),
    0 0 100px rgba(29, 78, 216, 0.25);
}

/* Titular principal */
.hero__headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Subtítulo */
.hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* Flecha animada — fade-in propio + bounce encadenado */
.hero__arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--accent-hover);
  opacity: 0;
  /* 1) aparece en 0.6s tras 1.2s de delay; 2) bounce infinito arranca después */
  animation:
    arrowFadeIn  0.6s ease 1.2s forwards,
    bounceArrow  2s   ease-in-out 1.8s infinite;
  transition: color var(--transition);
}

.hero__arrow:hover {
  color: var(--text-primary);
}

.hero__arrow svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

@keyframes arrowFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0);   }
}

@keyframes bounceArrow {
  0%, 100% { transform: translateX(-50%) translateY(0);    }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* =====================================================
   UTILIDADES COMPARTIDAS
   ===================================================== */

/* Contenedor centrado con ancho máximo */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Etiqueta pequeña sobre el título (ej: "Fundador") */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 0.6rem;
}

/* Título de sección con línea azul */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title__line {
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
  margin-top: 0.5rem;
}

/* Variante centrada (para secciones como Visión) */
.section-title--center {
  display: block;
  text-align: center;
}

.section-title--center .section-title__line {
  margin-left: auto;
  margin-right: auto;
}

/* reveal con delay individual */
.reveal {
  transition-delay: var(--reveal-delay, 0s);
}

/* =====================================================
   SECCIÓN — SOBRE MÍ
   ===================================================== */

.sobre-mi {
  padding: 6rem 0;
  position: relative;
}

/* Separador superior sutil */
.sobre-mi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Grid de dos columnas — foto sticky en desktop */
.sobre-mi__grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 5rem;
  align-items: start;
}

/* --- Foto sticky --- */
.sobre-mi__foto-wrap {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 6rem;           /* respeta la distancia al viewport al hacer scroll */
  align-self: start;
}

/* Capa de glow azul alrededor de la foto */
.sobre-mi__foto-glow {
  position: relative;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
  box-shadow:
    0 0 40px rgba(29, 78, 216, 0.35),
    0 0 80px rgba(29, 78, 216, 0.15);
  transition: box-shadow var(--transition);
}

.sobre-mi__foto-glow:hover {
  box-shadow:
    0 0 55px rgba(59, 130, 246, 0.5),
    0 0 110px rgba(29, 78, 216, 0.22);
}

.sobre-mi__foto {
  width: clamp(220px, 26vw, 320px);
  height: clamp(220px, 26vw, 320px);
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
}

/* --- Texto --- */
.sobre-mi__texto {
  display: flex;
  flex-direction: column;
  padding-top: 0.25rem;
}

.sobre-mi__body {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.sobre-mi__body p {
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.85;
}

/* Frase ancla destacada */
.sobre-mi__highlight {
  font-size: clamp(1rem, 1.6vw, 1.12rem) !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  line-height: 1.65 !important;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent-hover);
  margin: 0.4rem 0;
}

/* Link interno hacia la sección Visión */
.sobre-mi__link {
  color: var(--accent-hover);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.sobre-mi__link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent-hover);
}

/* --- Responsive: mobile --- */
@media (max-width: 768px) {
  .sobre-mi__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* desactiva sticky en mobile */
  .sobre-mi__foto-wrap {
    position: static;
    justify-content: center;
  }

  .sobre-mi__foto {
    width: 200px;
    height: 200px;
  }
}

/* =====================================================
   SECCIÓN — VISIÓN DE LATTICE IA
   ===================================================== */

.vision {
  position: relative;
  padding: 7rem 0 8rem;
  overflow: hidden;
}

/* Fondo: gradiente azul profundo + grid CSS sutil */
.vision__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0A0A0A 0%, #0d1f4a 45%, #1E3A8A 100%);
  z-index: 0;
}

.vision__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

.vision__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 55% at 50% 50%,
    rgba(29, 78, 216, 0.18) 0%,
    transparent 70%
  );
  z-index: 1;
}

.vision__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.vision__header {
  text-align: center;
}

/* Párrafos siempre visibles */
.vision__body {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.vision__body p,
.vision__p {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.9;
  text-align: center;
}

/* Bloque con sub-encabezado (ORIGEN / EL SÍMBOLO) */
.vision__block {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Sub-encabezado: línea corta + etiqueta */
.vision__sub-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.vision__sub-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
}

.vision__sub-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

/* ── Fade-out overlay ── */
.vision__fade {
  height: 110px;
  margin-top: -110px;   /* solapa la parte inferior del bloque visible */
  position: relative;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 18, 48, 0.92) 70%,
    rgba(10, 18, 48, 1) 100%
  );
  transition: opacity 0.4s ease;
}

.vision__fade.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Botón toggle ── */
.vision__toggle-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 4;
  margin-top: -0.5rem;
}

.vision__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.vision__toggle:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(29, 78, 216, 0.4);
}

.vision__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.vision__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ── Contenido expandible ── */
.vision__expandable {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: max-height 0.6s ease, opacity 0.45s ease;
}

.vision__expandable.is-expanded {
  max-height: 2400px;
  opacity: 1;
}

/* Frase ancla — cierre del manifiesto */
.vision__cierre {
  margin: 0;
  padding: 2rem 0 0;
  border: none;
  border-top: 1px solid rgba(59, 130, 246, 0.3);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.55;
  color: #ffffff;
  text-align: center;
  letter-spacing: -0.01em;
  text-shadow:
    0 0 40px rgba(59, 130, 246, 0.45),
    0 0 80px rgba(29, 78, 216, 0.2);
}

/* --- Responsive: mobile --- */
@media (max-width: 768px) {
  .vision {
    padding: 5rem 0 6rem;
  }

  .vision__body p,
  .vision__p,
  .vision__cierre {
    text-align: left;
  }

  .vision__sub-header {
    align-items: flex-start;
  }
}

/* =====================================================
   SECCIÓN — SERVICIOS (Carrusel)
   ===================================================== */

.servicios {
  padding: 7rem 0 6rem;
  background: var(--bg-base);
  position: relative;
}

/* Separador superior que rompe el azul de la sección anterior */
.servicios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.servicios__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.servicios__subtitle {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Carrusel ── */
.carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel__wrapper {
  flex: 1;
  overflow: hidden;
  /* padding vertical: da aire al glow arriba/abajo sin desplazar layout */
  /* padding horizontal: da aire al glow de las cards en los extremos     */
  padding: 3.5rem 2.5rem;
  margin: -3.5rem 0;   /* compensa el padding vertical para no romper el layout */
}

.carousel__track {
  display: flex;
  gap: 24px;                /* IMPORTANTE: debe coincidir con GAP en JS */
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ── Cards ── */
.service-card {
  flex-shrink: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: stretch;
  position: relative;
  z-index: 1;
  /* Optimización de renderizado para escala suave sin blur */
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  will-change: transform;
  transition:
    transform    0.4s  cubic-bezier(0.4, 0, 0.2, 1),
    opacity      0.3s  ease,
    border-color 0.35s ease,
    box-shadow   0.35s ease,
    background   0.35s ease;
  cursor: default;
}

/* ── Hover principal de la card ── */
.service-card:hover {
  opacity: 1;                       /* siempre 1, nunca atenuada */
  transform: scale(1.025) translateY(-8px);
  background: #131E36;              /* levemente más claro que el base */
  border-color: #60A5FA;
  z-index: 10;
  box-shadow:
    0 12px 50px rgba(59, 130, 246, 0.6),
    0 0 80px rgba(59, 130, 246, 0.35),
    inset 0 0 60px rgba(59, 130, 246, 0.04);  /* inset mínimo, no oscurece */
}

/* Título más blanco en hover */
.service-card:hover .service-card__title {
  color: #ffffff;
}

/* Descripción más clara en hover */
.service-card:hover .service-card__desc {
  color: #CBD5E1;
}

/* ── Ícono con efecto LED ── */
.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3B82F6;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(29, 78, 216, 0.6));
  transition: filter 0.3s ease;
}

.service-card__icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card__icon {
  filter:
    drop-shadow(0 0 24px rgba(96, 165, 250, 1))
    drop-shadow(0 0 12px rgba(59, 130, 246, 0.8));
}

.service-card:hover .service-card__icon svg {
  transform: scale(1.15);
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
  transition: color 0.3s ease;
}

/* ── Botón "Me interesa →" ── */
.service-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #3B82F6;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid var(--accent);
  padding: 0 0 2px;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 0.25rem;
  transition:
    color       0.3s ease,
    font-weight 0.3s ease,
    border      0.3s ease,
    box-shadow  0.3s ease;
}

.service-card__btn .btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* El botón se ilumina cuando la CARD está en hover */
.service-card:hover .service-card__btn {
  color: #60A5FA;
  border-bottom-color: #60A5FA;
}

/* Hover directo sobre el botón: efecto LED neón */
.service-card__btn:hover {
  color: #93C5FD;
  font-weight: 600;
  border-bottom: 2px solid #60A5FA;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.5);
  animation: subtlePulse 1.5s ease-in-out infinite;
  /* text-shadow lo maneja la animación, no la transition */
}

.service-card__btn:hover .btn-arrow {
  transform: translateX(4px);
  text-shadow:
    0 0 12px rgba(96, 165, 250, 0.9),
    0 0 24px rgba(59, 130, 246, 0.5);
}

@keyframes subtlePulse {
  0%, 100% {
    text-shadow:
      0 0 12px rgba(96, 165, 250, 0.9),
      0 0 24px rgba(59, 130, 246, 0.5);
  }
  50% {
    text-shadow:
      0 0 16px rgba(96, 165, 250, 1),
      0 0 32px rgba(59, 130, 246, 0.7);
  }
}

/* ── Push effect con :has() ── */

/* Solo atenúa las cards QUE NO están en hover — la activa nunca se toca */
.carousel__track:has(.service-card:hover) .service-card:not(:hover) {
  opacity: 0.6;
}

/* Vecina IZQUIERDA: empuja y encoge levemente (sobreescribe la atenuación) */
.service-card:has(+ .service-card:hover) {
  transform: translateX(-12px) scale(0.97);
  opacity: 0.78;
}

/* Vecina DERECHA: empuja y encoge levemente */
.service-card:hover + .service-card {
  transform: translateX(12px) scale(0.97);
  opacity: 0.78;
}

/* ── Flechas ── */
.carousel__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.carousel__arrow:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 18px rgba(29, 78, 216, 0.5);
}

.carousel__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel__arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

/* ── Dots ── */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.carousel__dot.is-active {
  background: var(--accent-hover);
  transform: scale(1.35);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .servicios {
    padding: 5rem 0 4rem;
  }

  /* Arrows overlay the wrapper — frees full width for each card */
  .carousel {
    position: relative;
  }

  .carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 36px;
    height: 36px;
    background: rgba(10, 10, 10, 0.85);
    border-color: rgba(29, 78, 216, 0.5);
  }

  .carousel__prev { left: 0; }
  .carousel__next { right: 0; }

  /* Wrapper takes full flex width; vertical padding only for shadow breathing room */
  .carousel__wrapper {
    padding: 1.5rem 0;
    margin: -1.5rem 0;
  }

  /* No push/dim effects on touch screens */
  .carousel__track:has(.service-card:hover) .service-card:not(:hover),
  .service-card:has(+ .service-card:hover),
  .service-card:hover + .service-card {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================
   SECCIÓN — PUENTE / CIERRE
   ===================================================== */

.puente {
  position: relative;
  padding: 8rem 0;
  text-align: center;
  overflow: hidden;
}

.puente__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 75% 65% at 50% 50%,
    rgba(29, 78, 216, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.puente__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.puente__titulo {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.puente__acento {
  display: block;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--accent-hover);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow:
    0 0 40px rgba(59, 130, 246, 0.5),
    0 0 80px rgba(29, 78, 216, 0.25);
}

.puente__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 0.25rem;
}

/* =====================================================
   SECCIÓN — CONTACTO
   ===================================================== */

.contacto {
  padding: 6rem 0 8rem;
  background: var(--bg-base);
  position: relative;
}

.contacto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.contacto__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.contacto__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: -0.75rem;
}

/* Botón WhatsApp */
.contacto__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: #ffffff;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
  transition:
    background  0.3s ease,
    box-shadow  0.3s ease,
    transform   0.3s ease;
}

.contacto__wa i {
  font-size: 1.4rem;
}

.contacto__wa:hover {
  background: #1aad55;
  box-shadow: 0 8px 36px rgba(37, 211, 102, 0.5);
  transform: translateY(-3px);
}

/* Íconos de redes sociales */
.contacto__redes {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.red-social {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-decoration: none;
  transition:
    border-color 0.3s ease,
    color        0.3s ease,
    box-shadow   0.3s ease,
    transform    0.3s ease;
}

.red-social:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.45);
  transform: translateY(-4px);
}

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

.footer {
  background: #04040A;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.footer__logo {
  width: 56px;
  height: auto;
  border-radius: 10px;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer__logo:hover {
  opacity: 1;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer__tagline {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.45);
  letter-spacing: 0.02em;
}
