/* ==========================================================================
   DISEÑO CORPORATIVO Y SISTEMA DE ESTILOS - MAGNA CONSULTORES
   ========================================================================== */

/* Importación de tipografías premium */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   TRANSICIONES ENTRE PÁGINAS (Cross-Document View Transitions)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: 0.35s ease-in both vt-fade-out;
  }
  ::view-transition-new(root) {
    animation: 0.45s ease-out both vt-fade-in;
  }

  @keyframes vt-fade-out {
    to { opacity: 0; transform: translateY(8px); }
  }
  @keyframes vt-fade-in {
    from { opacity: 0; transform: translateY(-8px); }
  }
}

:root {
  /* Paleta cromática extraída del logo */
  --brand-purple-dark: #370c44;
  --brand-purple: #5c1b75;
  --brand-violet: #8e2a9b;
  --brand-magenta: #c32782;
  --brand-coral: #ea5374;
  --brand-pink: #f2829b;

  /* Gradientes de marca */
  --gradient-brand: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-magenta) 50%, var(--brand-coral) 100%);
  --gradient-brand-hover: linear-gradient(135deg, var(--brand-purple-dark) 0%, var(--brand-magenta) 60%, var(--brand-pink) 100%);
  --gradient-bg-light: linear-gradient(180deg, #FAF9FC 0%, #FFFFFF 100%);
  --gradient-hero: linear-gradient(160deg, rgba(243, 162, 181, 0.08) 0%, rgba(142, 42, 155, 0.04) 50%, #FAF9FC 100%);
  --gradient-footer: linear-gradient(135deg, #130a1e 0%, #1c1530 100%);

  /* Neutros Premium */
  --color-text: #171330;
  --color-text-muted: #6e657c;
  --color-bg: #FAF9FC;
  --color-surface: #FFFFFF;
  --color-border: #EDEAF2;
  --color-border-hover: rgba(195, 39, 130, 0.25);

  /* Tipografías */
  --font-header: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Estructura y Bordes */
  --max-width: 1160px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 20px rgba(92, 27, 117, 0.03);
  --shadow-md: 0 12px 36px rgba(92, 27, 117, 0.06);
  --shadow-lg: 0 24px 60px rgba(92, 27, 117, 0.1);
  --shadow-glow: 0 15px 30px rgba(195, 39, 130, 0.15);

  /* Transiciones y Movimiento */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   RESET & CONFIGURACIÓN BASE
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

/* Barra de desplazamiento personalizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-pink);
  border-radius: 8px;
  border: 2px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-coral);
}

/* ==========================================================================
   UTILIDADES Y DISEÑO ESTRUCTURAL
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

section {
  padding: 100px 0;
  position: relative;
}

.bg-suave {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Elemento flotante decorativo (Glow Blobs) */
.ambient-glow {
  position: fixed;
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
  animation: float 25s infinite alternate ease-in-out;
}
.glow-1 {
  background: var(--brand-purple);
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}
.glow-2 {
  background: var(--brand-coral);
  bottom: -150px;
  left: -100px;
  animation-delay: 6s;
}
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5vw, -5vh) scale(1.15); }
  100% { transform: translate(-3vw, 5vh) scale(0.9); }
}

/* Encabezados y Textos */
.section-tag {
  display: inline-block;
  color: var(--brand-magenta);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 14px;
  position: relative;
}
.section-tag::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gradient-brand);
  margin-top: 4px;
}

.section-title {
  font-family: var(--font-header);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--brand-purple-dark);
  margin-bottom: 22px;
}

.section-title span.accent-text {
  font-style: italic;
  font-weight: 500;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-lead {
  max-width: 680px;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 56px;
}

/* ==========================================================================
   COMPONENTES: BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(184, 26, 108, 0.2);
  border: none;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--gradient-brand-hover);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--brand-purple-dark);
  border: 1.5px solid var(--brand-purple-dark);
}

.btn-secondary:hover {
  background: var(--brand-purple-dark);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   COMPONENTES: CABECERA (HEADER)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 249, 252, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(142, 42, 155, 0.05);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(250, 249, 252, 0.9);
  box-shadow: 0 8px 30px rgba(92, 27, 117, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  transition: var(--transition-smooth);
}

.header.scrolled .nav {
  padding: 14px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--brand-purple-dark);
}

.logo img {
  height: 44px;
  width: 58px;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.header.scrolled .logo img {
  height: 38px;
  width: 50px;
}

.logo-fallback {
  height: 44px;
  width: 44px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--color-text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--brand-purple-dark);
}

.nav-links a.active {
  color: var(--brand-purple-dark);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--brand-purple-dark);
  border-radius: 2px;
  transition: var(--transition-smooth);
  transform-origin: left center;
}

/* Animación del menú móvil toggle */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(2px, 0px);
}
.menu-toggle.open span:nth-child(2) {
  width: 0;
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(2px, -1px);
}

/* ==========================================================================
   SECCIÓN HERO
   ========================================================================== */
.hero {
  padding: 130px 0 90px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-header);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--brand-purple-dark);
  margin-bottom: 26px;
}

.hero h1 span.accent-text {
  font-style: italic;
  font-weight: 500;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Tarjeta Hero Lateral (Asimétrica y Premium) */
.hero-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid rgba(142, 42, 155, 0.05);
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  z-index: -1;
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
}

.hero-card h3 {
  font-family: var(--font-header);
  color: var(--brand-purple-dark);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.hero-card ul {
  display: grid;
  gap: 16px;
}

.hero-card ul li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
}

.hero-card ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-card ul li::before {
  content: "✦";
  color: var(--brand-magenta);
  font-size: 1rem;
}

/* Hero Simple para subpáginas */
.hero-simple {
  padding: 100px 0 50px;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--color-border);
}

.hero-simple h1 {
  font-family: var(--font-header);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--brand-purple-dark);
  margin-bottom: 18px;
}

.hero-simple p {
  max-width: 720px;
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* ==========================================================================
   GRIDS Y COMPONENTES REUTILIZABLES
   ========================================================================== */
.checks-grid, .servicios-grid, .clientes-grid, .valores-grid {
  display: grid;
  gap: 30px;
}

.checks-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.servicios-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.clientes-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.valores-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Check Item (Por qué elegirnos) */
.check-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.check-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.check-item .mark {
  color: #FFFFFF;
  background: var(--gradient-brand);
  border-radius: 50%;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(184, 26, 108, 0.15);
}

.check-item p {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--brand-purple-dark);
}

/* Tarjetas de Servicios */
.servicio-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.servicio-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-glow);
}

.servicio-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--gradient-brand);
  opacity: 0;
  transition: var(--transition-smooth);
}

.servicio-card:hover::after {
  opacity: 1;
}

.servicio-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(142, 42, 155, 0.055);
  border: 1px solid rgba(142, 42, 155, 0.13);
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  transition: var(--transition-smooth);
}

.servicio-icon svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.servicio-card:hover .servicio-icon {
  background: rgba(195, 39, 130, 0.08);
  border-color: rgba(195, 39, 130, 0.28);
  color: var(--brand-magenta);
  transform: translateY(-2px);
}

.servicio-card h3 {
  font-family: var(--font-header);
  color: var(--brand-purple-dark);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.servicio-card p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.servicio-card ul {
  display: grid;
  gap: 8px;
}

.servicio-card ul li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  padding-left: 14px;
  position: relative;
}

.servicio-card ul li::before {
  content: "•";
  color: var(--brand-coral);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Tarjeta Cliente (A quién ayudamos) */
.cliente-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition-smooth);
}

.cliente-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.cliente-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.cliente-card h4 {
  color: var(--brand-purple-dark);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cliente-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Valores Chip */
.valor-chip {
  background: var(--color-surface);
  color: var(--brand-purple);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.valor-chip:hover {
  background: var(--gradient-brand);
  color: #FFFFFF;
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

/* Cita Destacada */
.destacado {
  background: var(--gradient-brand);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.destacado::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.destacado h2 {
  font-family: var(--font-header);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: #FFFFFF;
  margin-bottom: 24px;
}

.destacado p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* ==========================================================================
   SOBRE / EQUIPO (NOSOTROS)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.about-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.about-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.about-card h3 {
  font-family: var(--font-header);
  color: var(--brand-purple-dark);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.about-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

/* Perfil Premium */
.perfil-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.perfil-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg);
}

.perfil-card::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0; width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(184, 26, 108, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.perfil-foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: 0 14px 32px rgba(92, 27, 117, 0.09);
}

.perfil-foto--carol {
  object-position: center 49%;
}

.perfil-card h3 {
  font-family: var(--font-header);
  color: var(--brand-purple-dark);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.25;
  margin-bottom: 6px;
  text-align: center;
}

.perfil-card span {
  color: var(--brand-magenta);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0;
  display: block;
  margin-bottom: 18px;
  line-height: 1.5;
  text-align: center;
}

.perfil-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
}

.perfil-expertise {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.perfil-expertise li {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}

.perfil-expertise li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contacto-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contacto-opciones {
  display: grid;
  gap: 20px;
}

.contacto-item {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.contacto-item:hover {
  transform: translateX(8px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.contacto-item .icono {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(184, 26, 108, 0.05);
  color: var(--brand-magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.contacto-item:hover .icono {
  background: var(--gradient-brand);
  color: #FFFFFF;
}

.contacto-item h4 {
  color: var(--brand-purple-dark);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contacto-item p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* Formulario minimalista con floating-glow style */
.form-contacto {
  background: var(--color-surface);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 24px;
}

.form-contacto input,
.form-contacto textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: var(--transition-smooth);
}

.form-contacto input:focus,
.form-contacto textarea:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--brand-magenta);
  box-shadow: 0 0 0 4px rgba(184, 26, 108, 0.08);
}

.form-contacto textarea {
  min-height: 140px;
  resize: vertical;
}

.form-contacto button {
  justify-self: start;
  border: none;
}

/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */
.footer {
  background: var(--gradient-footer);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  bottom: 0; right: 0; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(142, 42, 155, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer h4 {
  font-family: var(--font-header);
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 24px;
  position: relative;
}

.footer h4::after {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: var(--brand-coral);
  margin-top: 6px;
}

.footer p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.footer a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer li {
  padding: 6px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   SISTEMA DE ANIMACIONES (REVEAL ON SCROLL)
   ========================================================================== */
.reveal {
  opacity: 0;
  transition: var(--transition-smooth);
  will-change: transform, opacity;
}

.reveal-slide-up {
  transform: translateY(30px);
}

.reveal-slide-left {
  transform: translateX(30px);
}

.reveal-slide-right {
  transform: translateX(-30px);
}

.reveal-scale-up {
  transform: scale(0.96);
}

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

/* Stagger (Efecto cascada para grids) */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

/* Animación inicial de la página */
.page-fade {
  opacity: 0;
  animation: pageFadeIn 0.6s forwards ease-out;
}
@keyframes pageFadeIn {
  to { opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (DISEÑO ADAPTATIVO)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 860px) {
  section {
    padding: 70px 0;
  }
  
  .nav-links {
    display: none;
  }

  .nav-cta .btn-secondary {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Menú Móvil Fullscreen Glassmorphism */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 22, 37, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
    gap: 32px;
    animation: mobileMenuFade 0.4s forwards cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.open a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    font-weight: 500;
  }

  .nav-links.open a:hover,
  .nav-links.open a.active {
    color: #FFFFFF;
  }

  .nav-links.open a::after {
    background: #FFFFFF;
  }

  @keyframes mobileMenuFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .logo-text {
    display: none;
  }
  .destacado {
    padding: 40px 24px;
  }
  .form-contacto {
    padding: 30px 20px;
  }
  .btn {
    width: 100%;
  }
  .nav-cta .btn {
    width: auto;
    white-space: nowrap;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .equipo-grid {
    grid-template-columns: 1fr;
  }
  .perfil-card {
    padding: 22px;
  }
}
