/* =========================================================================
   LEGAL FERTILITY CARE — Sistema de Estilos Compartido
   Versión 1.0 · Mayo 2026
   ========================================================================= */

/* ============ VARIABLES DE MARCA ============ */
:root {
  /* Paleta cromática oficial */
  --salvia: #5C7560;
  --salvia-light: #7A9182;
  --salvia-dark: #485E4D;
  --hueso: #FAF7F2;
  --hueso-warm: #F5F0E8;
  --tierra: #3A3530;
  --tierra-light: #5C544D;
  --oro: #C9A86A;
  --oro-light: #D9BD85;
  --coral: #E8B4A0;
  
  /* Tipografía */
  --serif: 'Cormorant Garamond', 'Caladea', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Espaciado sistema */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;
  
  /* Container */
  --container-max: 1280px;
  --container-padding: 48px;
}

/* ============ RESET Y BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tierra);
  background: var(--hueso);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ============ TIPOGRAFÍA ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--tierra);
  line-height: 1.2;
}

h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: 1px; }
h2 { font-size: clamp(32px, 3.5vw, 44px); letter-spacing: 0.5px; }
h3 { font-size: clamp(24px, 2.2vw, 30px); }
h4 { font-size: clamp(20px, 1.6vw, 22px); font-weight: 500; }

em { font-style: italic; }

p { font-family: var(--sans); }

/* ============ HEADER TRANSFORMABLE ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0);
  backdrop-filter: blur(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 32px 48px;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 48px;
  border-bottom-color: rgba(201, 168, 106, 0.2);
  box-shadow: 0 2px 24px rgba(58, 53, 48, 0.04);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header-logo {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 5px;
  font-weight: 400;
  color: var(--tierra);
  text-transform: uppercase;
  transition: font-size 0.4s ease;
}

.site-header.scrolled .header-logo {
  font-size: 15px;
}

.header-logo .gold-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--oro);
  border-radius: 50%;
  margin: 0 8px 4px 8px;
  vertical-align: middle;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tierra);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
  transform: scaleX(1);
}

.nav-list a.active {
  color: var(--salvia);
}

.lang-switch {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--tierra-light);
  padding: 0 16px;
  border-left: 1px solid rgba(58, 53, 48, 0.15);
  border-right: 1px solid rgba(58, 53, 48, 0.15);
}

.lang-switch .active {
  color: var(--salvia);
  font-weight: 600;
}

.btn-whatsapp-header {
  background: var(--salvia);
  color: var(--hueso);
  padding: 10px 22px;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-whatsapp-header:hover {
  background: var(--salvia-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  font-size: 28px;
  color: var(--tierra);
}

/* ============ BOTONES ============ */
.btn-primary {
  background: var(--salvia);
  color: var(--hueso);
  padding: 18px 36px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--salvia-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 117, 96, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--tierra);
  padding: 18px 36px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--tierra);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--tierra);
  color: var(--hueso);
}

/* ============ ELEMENTOS DECORATIVOS ============ */
.divider-gold {
  width: 60px;
  height: 1px;
  background: var(--oro);
  margin: 32px 0;
}

.divider-gold-center {
  width: 80px;
  height: 1px;
  background: var(--oro);
  margin: 40px auto;
}

.divider-ornament {
  text-align: center;
  color: var(--oro);
  font-family: var(--serif);
  font-size: 22px;
  margin: 48px 0;
  letter-spacing: 8px;
}

.divider-ornament::before { content: '— · —'; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--salvia);
  font-weight: 600;
  margin-bottom: 16px;
}

/* ============ CONTENEDOR ============ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============ SECCIONES BASE ============ */
section {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-header .eyebrow {
  display: block;
}

.section-header h2 em {
  display: block;
  font-style: italic;
  color: var(--salvia);
  margin-top: 8px;
}

.section-subtitle {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--tierra-light);
  margin-top: 24px;
  line-height: 1.6;
  font-weight: 300;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--tierra);
  color: var(--hueso);
  padding: 100px 0 32px;
}

.footer-top {
  text-align: center;
  margin-bottom: 80px;
  padding: 0 var(--container-padding);
}

.footer-monogram {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: 8px;
  font-weight: 300;
  margin-bottom: 16px;
}

.footer-monogram .gold-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--oro);
  border-radius: 50%;
  margin: 0 12px 6px 12px;
  vertical-align: middle;
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--oro-light);
  margin-bottom: 8px;
}

.footer-tagline-en {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--oro-light);
  opacity: 0.7;
}

.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  border-top: 1px solid rgba(201, 168, 106, 0.2);
  padding-top: 60px;
}

.footer-col h5 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--oro);
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-col p, .footer-col li {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--hueso);
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-col a {
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--oro-light);
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 168, 106, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--oro);
  color: var(--tierra);
  border-color: var(--oro);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 32px var(--container-padding) 0;
  border-top: 1px solid rgba(201, 168, 106, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--hueso);
  opacity: 0.6;
  letter-spacing: 0.5px;
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============ HERO HÍBRIDO ============ */
/* Hero elaborado para Home */
.hero-elaborate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 92vh;
  background: var(--hueso);
  margin-top: 0;
  position: relative;
}

.hero-image-side {
  position: relative;
  background-image: url('../images/hero-padre-hijo.webp');
  background-size: cover;
  background-position: center 35%;
  background-color: #d4cdb8;
  background-repeat: no-repeat;
}

.hero-image-side::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, rgba(201,168,106,0.4) 30%, rgba(201,168,106,0.4) 70%, transparent 100%);
}

.hero-content-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 90px 80px;
  background: var(--hueso);
}

.hero-content-side .eyebrow { margin-bottom: 24px; }

.hero-content-side h1 {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.15;
  color: var(--tierra);
  margin-bottom: 0;
}

.hero-content-side h1 em {
  font-style: italic;
  display: block;
  margin-top: 6px;
}

.hero-content-side p.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--tierra);
  opacity: 0.85;
  max-width: 520px;
  margin: 0 0 40px 0;
  line-height: 1.6;
  font-weight: 300;
}

.hero-keyword {
  font-weight: 500;
  color: var(--tierra);
  opacity: 1;
  letter-spacing: 0.3px;
  position: relative;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-micro {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--tierra-light);
  letter-spacing: 0.3px;
}

/* Hero sobrio para páginas internas */
.hero-internal {
  background: var(--hueso);
  padding: 200px 0 100px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(201, 168, 106, 0.15);
}

.hero-internal .container {
  max-width: 880px;
}

.hero-internal h1 {
  font-size: clamp(40px, 4.5vw, 60px);
  margin-bottom: 24px;
}

.hero-internal h1 em {
  font-style: italic;
  display: block;
  color: var(--salvia);
  margin-top: 4px;
}

.hero-internal-subtitle {
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--tierra-light);
  font-weight: 300;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

.hero-internal-image {
  margin-top: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--container-padding);
}

.hero-internal-image img {
  width: 100%;
  border-radius: 2px;
}

/* ============ ANIMACIONES ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in.delay-1 { animation-delay: 0.15s; }
.fade-in.delay-2 { animation-delay: 0.3s; }
.fade-in.delay-3 { animation-delay: 0.45s; }
.fade-in.delay-4 { animation-delay: 0.6s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  :root {
    --container-padding: 32px;
    --space-2xl: 80px;
    --space-xl: 60px;
  }
  
  .site-header { padding: 24px 32px; }
  .site-header.scrolled { padding: 14px 32px; }
  
  .header-nav { gap: 24px; }
  .nav-list { gap: 24px; }
  .nav-list a { font-size: 12px; }
  
  .hero-elaborate {
    display: block;
    min-height: auto;
  }
  
  .hero-image-side {
    width: 100%;
    height: 420px;
    min-height: 420px;
  }
  
  .hero-image-side::after { display: none; }
  
  .hero-content-side {
    padding: 60px 32px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-list, .lang-switch { display: none; }
  .menu-toggle { display: block; }
  .btn-whatsapp-header { padding: 8px 14px; font-size: 11px; }
  
  .header-logo { font-size: 14px; letter-spacing: 3px; }
  .header-logo .gold-dot { margin: 0 6px 3px 6px; }
  
  .hero-internal { padding: 140px 0 70px; }
  .hero-internal-image { margin-top: 40px; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  :root { --container-padding: 24px; }
  
  .site-header { padding: 20px 24px; }
  .site-header.scrolled { padding: 12px 24px; }
  
  .hero-image-side { height: 360px; min-height: 360px; }
  .hero-content-side { padding: 48px 24px; }
  
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-cta-group .btn-primary, .hero-cta-group .btn-secondary { width: 100%; }
  
  .btn-primary, .btn-secondary { padding: 16px 24px; font-size: 12px; }
}

/* ============ ICONOS SOCIALES - ESTRATEGIA POR RED ============ */
/* Estado por defecto: iconos sociales atenuados (esperan contenido) */
.site-footer .footer-social a {
  pointer-events: none;
  opacity: 0.35;
  cursor: default;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* YouTube activo: clase .social-active sobrescribe el estado por defecto */
.site-footer .footer-social a.social-active {
  pointer-events: auto;
  opacity: 1;
  cursor: pointer;
}

.site-footer .footer-social a.social-active:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Hover sutil del icono desactivado (para feedback visual mínimo) */
.site-footer .footer-social a:not(.social-active):hover {
  background: transparent;
  color: rgba(250, 247, 242, 0.6);
  border-color: rgba(201, 168, 106, 0.4);
}
