/* ==========================================================================
   Vanoa Capilar — hoja de estilo del tema
   Verde tinta #16211C · dorado #9A6E36 · crema #F3EFE7 · marfil #FBF9F5
   Instrument Serif (títulos) + Archivo (texto)
   ========================================================================== */

:root {
  --v-tinta:   #16211C;
  --v-tinta-2: #2F3C36;
  --v-dorado:  #9A6E36;
  --v-dorado-c:#C9A671;
  --v-crema:   #F3EFE7;
  --v-marfil:  #FBF9F5;
  --v-linea:   #D8D1C3;
  --v-texto:   #4E5A54;
  --v-suave:   #8A8073;
  --v-serif:   "Instrument Serif", Georgia, serif;
  --v-sans:    "Archivo", system-ui, -apple-system, sans-serif;
  --v-max:     1360px;
  --v-pad:     clamp(18px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--v-crema);
  color: var(--v-tinta);
  font-family: var(--v-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; }

a { color: var(--v-tinta); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--v-dorado); }

h1, h2, h3, h4 {
  font-family: var(--v-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0 0 .5em;
  text-wrap: pretty;
}
h1 { font-size: clamp(38px, 5.6vw, 88px); line-height: .99; letter-spacing: -0.022em; }
h2 { font-size: clamp(30px, 4vw, 58px); }
h3 { font-size: clamp(24px, 2.8vw, 40px); }
h4 { font-size: clamp(20px, 2vw, 28px); }
p  { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: italic; color: var(--v-dorado); }

.v-contenedor { max-width: var(--v-max); margin: 0 auto; padding-inline: var(--v-pad); }
.v-seccion    { padding-block: clamp(52px, 6.5vw, 110px); }
.v-eyebrow {
  display: block; font-size: 12px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--v-suave); margin-bottom: 14px;
}
.v-lead { font-size: clamp(15.5px, 1.2vw, 19px); line-height: 1.65; color: var(--v-texto); }

/* ---------- Botones: siempre píldora ---------- */
.v-btn,
.wp-block-button__link,
.elementor-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  border-radius: 999px !important;
  padding: 16px 30px;
  font-family: var(--v-sans);
  font-size: 13px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.v-btn--oscuro { background: var(--v-tinta); color: var(--v-crema) !important; }
.v-btn--oscuro:hover { background: var(--v-dorado); color: var(--v-marfil) !important; }
.v-nav__cta { flex: none; white-space: nowrap; }
.v-btn--linea  { background: transparent; color: var(--v-tinta); border-color: var(--v-tinta); }
.v-btn--linea:hover { background: var(--v-tinta); color: var(--v-crema); }
.v-btn--claro  { background: var(--v-crema); color: var(--v-tinta); }
.v-btn--claro:hover { background: var(--v-dorado); color: var(--v-marfil); }

/* ---------- Barra superior ---------- */
.v-topbar {
  background: var(--v-tinta); color: var(--v-crema);
  font-size: 12.5px; letter-spacing: .04em;
}
.v-topbar__in {
  max-width: var(--v-max); margin: 0 auto; padding: 9px var(--v-pad);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px;
  justify-content: space-between;
}
.v-topbar a { color: var(--v-crema); }
.v-topbar a:hover { color: var(--v-dorado-c); }
.v-topbar__datos { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.v-topbar__aviso {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--v-dorado); color: var(--v-marfil);
  border-radius: 999px; padding: 5px 15px;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}

/* ---------- Cabecera ---------- */
.v-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--v-crema); border-bottom: 1px solid var(--v-linea);
  transition: box-shadow .25s ease, padding .25s ease;
}
.v-header.is-stuck { box-shadow: 0 8px 30px rgba(22, 33, 28, .09); }
.v-header__in {
  max-width: var(--v-max); margin: 0 auto; padding: 13px var(--v-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 14px 26px;
}
.v-logo img { display: block; height: clamp(36px, 4vw, 48px); width: auto; }
.v-logo__texto { font-family: var(--v-serif); font-size: 26px; }

.v-nav { display: flex; align-items: center; gap: 8px clamp(13px, 1.6vw, 24px); }
.v-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px clamp(13px, 1.6vw, 24px); list-style: none; margin: 0; padding: 0; }
.v-nav a {
  position: relative; display: block; padding: 6px 0;
  font-size: clamp(11.5px, 1vw, 13px); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--v-texto);
}
.v-nav a:hover { color: var(--v-tinta); }
.v-nav .current-menu-item > a,
.v-nav .current_page_item > a { color: var(--v-tinta); }
.v-nav .current-menu-item > a::after,
.v-nav .current_page_item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--v-dorado); border-radius: 2px;
}

/* Menú móvil a pantalla completa */
.v-burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--v-linea);
  border-radius: 999px; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.v-burger span { display: block; width: 18px; height: 1.5px; background: var(--v-tinta); transition: transform .25s ease, opacity .25s ease; }
.v-movil {
  position: fixed; inset: 0; z-index: 200; background: var(--v-tinta); color: var(--v-crema);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: clamp(28px, 7vw, 80px);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.v-movil.is-open { opacity: 1; visibility: visible; transform: none; }
.v-movil ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.v-movil a { font-family: var(--v-serif); font-size: clamp(28px, 7vw, 46px); color: var(--v-crema); }
.v-movil a:hover { color: var(--v-dorado-c); }
.v-movil__cerrar {
  position: absolute; top: 22px; right: 22px; width: 52px; height: 52px;
  border-radius: 999px; border: 1px solid rgba(243, 239, 231, .45);
  background: transparent; color: var(--v-crema); font-size: 22px; cursor: pointer;
}
.v-movil__pie { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1080px) {
  .v-nav__lista { display: none; }
  .v-burger { display: flex; }
}

/* ---------- Pie ---------- */
.v-cta-final { background: var(--v-tinta); color: var(--v-crema); }
.v-cta-final h2 { color: var(--v-marfil); max-width: 980px; font-size: clamp(32px, 5vw, 78px); line-height: 1.02; }
.v-cta-final p  { color: #D5D1C6; max-width: 660px; }

.v-footer { background: var(--v-crema); border-top: 1px solid var(--v-linea); }
.v-footer__cols {
  max-width: var(--v-max); margin: 0 auto; padding: clamp(40px, 5vw, 76px) var(--v-pad);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(26px, 3.2vw, 52px);
}
.v-footer h4 { font-family: var(--v-sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--v-suave); margin-bottom: 14px; }
.v-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.v-footer__legal {
  max-width: var(--v-max); margin: 0 auto; padding: 0 var(--v-pad);
}
.v-footer__legal-in {
  border-top: 1px solid var(--v-linea); padding: 20px 0 30px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--v-suave);
}
.v-redes { display: flex; flex-wrap: wrap; gap: 8px; }
.v-redes a {
  display: inline-flex; align-items: center; border: 1px solid var(--v-linea);
  border-radius: 999px; padding: 8px 16px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--v-texto);
}
.v-redes a:hover { background: var(--v-tinta); color: var(--v-crema); border-color: var(--v-tinta); }

/* ---------- WhatsApp flotante ---------- */
.v-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  display: flex; align-items: center; gap: 10px;
}
.v-wa__btn {
  width: 58px; height: 58px; border-radius: 999px; background: var(--v-tinta);
  color: var(--v-marfil); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(22, 33, 28, .28); flex: none;
}
.v-wa__btn:hover { background: var(--v-dorado); color: var(--v-marfil); }
.v-wa__btn svg { width: 27px; height: 27px; fill: currentColor; }
.v-wa__globo {
  background: var(--v-marfil); border: 1px solid var(--v-linea);
  border-radius: 999px; padding: 12px 20px; font-size: 14.5px; line-height: 1.3;
  max-width: 250px; box-shadow: 0 10px 30px rgba(22, 33, 28, .14);
  opacity: 0; transform: translateX(10px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.v-wa.is-shown .v-wa__globo { opacity: 1; transform: none; pointer-events: auto; }
.v-wa__cerrar { border: 0; background: transparent; color: var(--v-suave); cursor: pointer; font-size: 16px; margin-left: 6px; }

/* ---------- FAQ ---------- */
.v-faq { max-width: 1100px; margin-inline: auto; }
.v-faq__titulo { margin-bottom: clamp(20px, 2.4vw, 34px); }
.v-faq__lista { display: flex; flex-direction: column; gap: 12px; }
.v-faq__item { background: var(--v-marfil); border: 1px solid var(--v-linea); border-radius: 24px; overflow: hidden; }
.v-faq__q {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: clamp(20px, 2.2vw, 28px) clamp(20px, 2.4vw, 32px);
  font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; line-height: 1.35;
}
.v-faq__q::-webkit-details-marker { display: none; }
.v-faq__q:hover { color: var(--v-dorado); }
.v-faq__icono {
  flex: none; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--v-linea);
  position: relative;
}
.v-faq__icono::before, .v-faq__icono::after {
  content: ""; position: absolute; inset: 50% 10px auto 10px; height: 1.5px;
  background: var(--v-dorado); transform: translateY(-50%); transition: transform .25s ease;
}
.v-faq__icono::after { transform: translateY(-50%) rotate(90deg); }
.v-faq__item[open] .v-faq__icono::after { transform: translateY(-50%) rotate(0); }
.v-faq__a { padding: 0 clamp(20px, 2.4vw, 32px) clamp(22px, 2.4vw, 30px); color: var(--v-texto); }
.v-faq__a p:last-child { margin-bottom: 0; }

/* ---------- Formulario ---------- */
.v-form { display: flex; flex-direction: column; gap: 16px; background: var(--v-marfil); border: 1px solid var(--v-linea); border-radius: 32px; padding: clamp(24px, 3vw, 44px); }
.v-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.v-form__fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.v-field { display: flex; flex-direction: column; gap: 8px; }
.v-field > span { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--v-suave); }
.v-field input, .v-field textarea {
  background: var(--v-crema); border: 1px solid var(--v-linea); border-radius: 16px;
  padding: 15px 18px; font-family: var(--v-sans); font-size: 16px; color: var(--v-tinta);
}
.v-field textarea { border-radius: 18px; resize: vertical; }
.v-field input:focus, .v-field textarea:focus { outline: 2px solid var(--v-dorado); outline-offset: 1px; }
.v-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--v-texto); }
.v-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--v-dorado); flex: none; }
.v-check a { color: var(--v-dorado); text-decoration: underline; }
.v-form button[type="submit"] { align-self: flex-start; margin-top: 6px; }
.v-form__error { background: #FBEDE8; border: 1px solid #E2BFB2; border-radius: 16px; padding: 14px 18px; font-size: 15px; color: #8A3B21; margin: 0; }
.v-form__ok { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.v-form__tick { width: 56px; height: 56px; border-radius: 999px; background: var(--v-tinta); color: var(--v-dorado-c); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.v-form.is-sent > *:not(.v-form__ok) { display: none; }

/* ---------- Blog ---------- */
.v-articulos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 26px); }
.v-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--v-marfil); border: 1px solid var(--v-linea); border-radius: 28px;
  padding: 16px; transition: box-shadow .25s ease, transform .25s ease;
}
.v-card:hover { box-shadow: 0 16px 44px rgba(22, 33, 28, .12); transform: translateY(-2px); }
.v-card img { border-radius: 20px; aspect-ratio: 4/3; object-fit: cover; width: 100%; display: block; }
.v-card h3 { font-size: clamp(21px, 2vw, 28px); margin: 0; padding-inline: 6px; }
.v-card p { color: var(--v-texto); font-size: 15.5px; padding-inline: 6px; margin: 0; }
.v-card__meta { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--v-suave); padding: 0 6px 6px; }

.v-entrada { max-width: 760px; margin-inline: auto; }
.v-entrada h2 { font-size: clamp(26px, 3.2vw, 42px); margin-top: 1.6em; }
.v-entrada h3 { font-size: clamp(21px, 2.4vw, 30px); margin-top: 1.4em; }
.v-entrada p, .v-entrada li { color: var(--v-texto); font-size: 17.5px; line-height: 1.75; }
.v-entrada ul, .v-entrada ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.4em; }
.v-entrada blockquote {
  margin: 1.6em 0; padding: clamp(20px, 2.4vw, 32px);
  background: var(--v-marfil); border: 1px solid var(--v-linea); border-left: 4px solid var(--v-dorado);
  border-radius: 20px; font-family: var(--v-serif); font-size: clamp(19px, 1.8vw, 26px); line-height: 1.4; color: var(--v-tinta);
}
.v-entrada blockquote p { font-family: inherit; font-size: inherit; color: inherit; margin: 0; }

.v-autor {
  margin-top: clamp(36px, 4vw, 60px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
  background: var(--v-marfil); border: 1px solid var(--v-linea); border-radius: 28px; padding: clamp(20px, 2.4vw, 32px);
}
.v-autor__foto { width: 92px; height: 92px; border-radius: 999px; object-fit: cover; flex: none; background: #E6E1D6; }
.v-autor__nombre { font-family: var(--v-serif); font-size: clamp(21px, 2vw, 28px); margin: 0; }
.v-autor__rol { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--v-suave); }
.v-nota-medica {
  margin-top: 22px; padding: 16px 20px; border: 1px dashed var(--v-linea); border-radius: 18px;
  font-size: 14.5px; line-height: 1.6; color: var(--v-suave);
}

/* ---------- Animaciones heredables ----------
   Todo hijo directo de una sección de Elementor entra con fundido y subida.
   Escape: añade la clase «sin-animacion» a la sección.                      */
.vanoa-anim [data-v-anim] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16, .72, .3, 1), transform .8s cubic-bezier(.16, .72, .3, 1);
}
.vanoa-anim [data-v-anim].is-in { opacity: 1; transform: none; }
.sin-animacion [data-v-anim],
.sin-animacion[data-v-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .vanoa-anim [data-v-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Accesibilidad ---------- */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.v-skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 999;
  background: var(--v-tinta); color: var(--v-crema); padding: 12px 20px; border-radius: 999px;
  width: auto; height: auto; clip: auto;
}
:focus-visible { outline: 2px solid var(--v-dorado); outline-offset: 2px; }

/* ---------- Elementor: el contenido va a sangre, sin márgenes añadidos ---------- */
.elementor-section.sin-animacion * { animation: none !important; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* Los widgets HTML traen las secciones completas del diseño: nada que los encaje */
.elementor-widget-html,
.elementor-widget-html > .elementor-widget-container { margin: 0; padding: 0; }
.elementor-widget-html > .elementor-widget-container > section,
.elementor-widget-html > .elementor-widget-container > div { margin: 0; }
.e-con, .e-con-inner { --padding-block-start: 0; --padding-block-end: 0; }

/* Hover suave para los enlaces con estilo en línea del diseño */
.elementor-widget-html a { transition: opacity .2s ease, background-color .22s ease, color .22s ease; }
.elementor-widget-html a:hover { opacity: .86; }

/* El logo de texto, cuando aún no se ha subido el logo real */
.v-logo__texto { line-height: 1.05; max-width: 260px; display: block; }
