/* ============================================================
   MONICA RADOVÁN PINEDA · Hoja de estilos compartida
   Usada por todas las páginas del sitio (home + páginas hijas)
   ============================================================ */

/* ---------- TOKENS DE DISEÑO ---------- */
:root{
  /* Paleta */
  --bg: #F5EFE6;
  --bg-alt: #ECE3D2;
  --bg-white: #FBF8F2;
  --ink: #0E0E10;
  --ink-soft: #2A2A2D;
  --muted: #6E6862;
  --line: #E0D7C6;
  --accent: #4A1E4F;
  --accent-deep: #3d1841;
  --accent-soft: #EFE3F0;
  --accent-ink: #4A1E4F;

  /* Gama morada */
  --morado-1: #F0E7F1;
  --morado-2: #E6D6E8;
  --morado-line: rgba(74,30,79,.18);

  /* Colores complementarios */
  --terracota: #C97B5E;
  --gold: #C9A961;
  --gold-deep: #A8894F;
  --tedx: #E62B1E;

  /* Sistema */
  --maxw: 1180px;
  --radius: 8px;
  --shadow: 0 6px 24px -14px rgba(74,30,79,.10);
}

/* ---------- RESET Y BASE ---------- */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
a{
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover{
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(74,30,79,.4);
  text-underline-offset: 3px;
}

/* ---------- NAVEGACIÓN ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,239,230,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand{
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.brand:hover{ text-decoration: none; }
.brand strong{
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}
.brand small{
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 2px;
}
.nav-links{
  list-style: none;
  padding: 0;
  margin: 0 auto 0 0;
  display: flex;
  gap: 24px;
}
.nav-links a{
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .42s cubic-bezier(.22,1,.36,1);
}
.nav-links a:hover::after,
.nav-links a.active::after{
  transform: scaleX(1);
  transform-origin: left center;
}
.nav-cta{
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  transition: background .25s ease;
}
.nav-cta:hover{
  background: var(--accent-deep);
  color: #fff;
  text-decoration: none;
}
.menu-btn{
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}
@media (max-width: 820px){
  .nav-links, .nav-cta{ display: none; }
  .menu-btn{ display: inline-flex; margin-left: auto; }
  .nav-links.open{
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- SECCIÓN GENERAL Y ENCABEZADOS ---------- */
section{ padding: 56px 0; }
.section-head{
  display: block;
  margin-bottom: 32px;
  max-width: 900px;
}
.section-head h2{
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  position: relative;
  padding-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.section-head h2::after{
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background: var(--accent);
  margin-top: 14px;
  opacity: .55;
}

/* ---------- HERO DE PÁGINAS HIJAS ---------- */
.page-hero{
  padding: 60px 0 40px;
  background: var(--bg);
}
.page-eyebrow{
  margin: 0 0 20px;
  font-size: .9rem;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.page-eyebrow a{
  color: var(--muted);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: color .2s ease;
}
.page-eyebrow a:hover{ color: var(--accent); text-decoration: none; }
.page-eyebrow-sep{ color: var(--muted); }
.page-eyebrow-current{ color: var(--accent); font-weight: 500; }
.page-title{
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.page-lede{
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0;
  line-height: 1.65;
}

/* ---------- CTA "VOLVER" AL FINAL DE PÁGINAS HIJAS ---------- */
.page-back{
  padding: 60px 0 40px;
  background: var(--bg-alt);
  text-align: center;
}
.page-back p{
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 24px;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
}
.page-back-actions{
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-back-cta{
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .95rem;
  transition: background .25s ease;
  text-decoration: none;
}
.btn-back-cta:hover{
  background: var(--accent-deep);
  color: #fff;
  text-decoration: none;
}
.btn-back{
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 11px 26px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .95rem;
  transition: all .25s ease;
  text-decoration: none;
}
.btn-back:hover{
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ---------- FOOTER ---------- */
footer{
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 40px 28px 30px;
  font-size: .88rem;
}
.footer-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-meta{
  max-width: var(--maxw);
  margin: 20px auto 0;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}
.footer-meta a{
  color: rgba(255,255,255,.85);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.25);
}
.footer-meta a:hover{
  color: #fff;
  text-decoration-color: rgba(255,255,255,.6);
}

/* ---------- FOCO ACCESIBLE (reemplaza outline azul del navegador) ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.btn-service-pdf:focus-visible,
.btn-service-quote:focus-visible,
.nav-links a:focus-visible,
.nav-cta:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Ocultar outline en click con ratón (solo mostrarlo con teclado) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible),
.btn-service-pdf:focus:not(:focus-visible),
.btn-service-quote:focus:not(:focus-visible){
  outline: none;
}

/* ---------- SERVICIO HERO (Gabinete a medida) ---------- */
.service-hero{
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--terracota);
  border-radius: 8px;
  margin: 0 0 40px;
  box-shadow: 0 10px 30px -18px rgba(201,123,94,.30);
  overflow: hidden;
}
.chip-ancla{
  display: inline-block;
  background: var(--terracota);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 500;
  margin-bottom: 14px;
}
.service-track-num, .service-hero .service-track-num{ color: var(--terracota) !important; }
.service-hero-inner{ padding: 44px 44px 40px; }
.service-hero-head{
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--morado-line);
}
.service-hero-eyebrow{
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.service-hero-title{
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 400; color: var(--accent);
  margin: 0 0 12px; letter-spacing: -0.01em; line-height: 1.15;
}
.service-hero-lede{
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
  color: var(--accent-ink); font-size: 1.1rem; line-height: 1.5;
  margin: 0; max-width: 780px;
}
.service-hero-desc{
  color: var(--ink-soft); font-size: 1rem; line-height: 1.65;
  margin: 0 0 28px; max-width: 820px;
}
.service-hero-tracks{
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 24px;
}
.service-track{
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 6px; padding: 20px 22px;
}
.service-track-num{
  font-family: 'Fraunces', Georgia, serif; font-size: .95rem;
  color: var(--accent); font-weight: 500; letter-spacing: .05em;
}
.service-track h4{
  font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem;
  font-weight: 500; color: var(--ink);
  margin: 4px 0 8px; line-height: 1.3;
}
.service-track p{
  color: var(--ink-soft); font-size: .9rem;
  line-height: 1.5; margin: 0;
}
.service-hero .service-price{
  border-top: 1px solid var(--morado-line);
  margin-top: 4px; padding-top: 18px;
}
.service-hero-cta{
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px;
}
.service-hero .service-price{
  font-family: 'Inter', sans-serif;
  font-size: .78rem; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
  margin: 8px 0 0;
}
@media (max-width: 820px){
  .service-hero-inner{ padding: 30px 24px 28px; }
  .service-hero-tracks{ grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- ACREDITACIÓN (frase profesional en servicios formativos) ---------- */
.servicio-acred,
.service-acred{
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
  margin: 14px 0 0;
}

/* ---------- ACCESIBILIDAD: MOVIMIENTO REDUCIDO ---------- */
@media (prefers-reduced-motion: reduce){
  .nav-links a::after{ transition: none; }
  html{ scroll-behavior: auto; }
}
