/* Brand extras on top of Elementor's global kit. Keep it small: colours and fonts live in
   Elementor Site Settings (so the client can change them). Put here only what Elementor
   can't express: effects, special type treatments, fixes. Project CSS is appended by make_plugin.py. */

.js .fx-ink img { clip-path: circle(0% at 50% 45%); transition: clip-path 1.8s cubic-bezier(.2,.7,.1,1); }
.js .fx-ink.is-in img { clip-path: circle(80% at 50% 45%); }

.fx-parallax { overflow: hidden; }
.fx-parallax img { will-change: transform; transform: scale(1.12); }

.fx-reel { overflow: hidden; }
.fx-reel--on .fx-reel__track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.fx-reel--on .fx-reel__item { margin: 0; flex: 0 0 auto; height: clamp(220px, 34vw, 420px); }
.fx-reel--on .fx-reel__item img { height: 100%; width: auto; object-fit: cover; display: block; transition: filter .3s; }

/* Hide the TranslatePress floating switcher when the header carries its own language links */
.hds-own-switcher #trp-floater-ls, .hds-own-switcher .trp-floating-switcher { display: none !important; }

/* Admin bar must not cover a sticky Elementor header */
.admin-bar .elementor-sticky--active { top: 32px !important; }
@media (max-width: 782px) { .admin-bar .elementor-sticky--active { top: 46px !important; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* GeneratePress boxes the whole page at 1200px even with Elementor's full-width template: let sections go edge to edge */
.page-template-elementor_header_footer .site.grid-container { max-width: none; }

/* ---------- project ---------- */
/* Oel Descamps · dirección "Madera y luz". Colores y fuentes salen del kit de Elementor
   (Site Settings), así que el cliente los cambia desde ahí. --bg = 5523c88, --surface = d302e97. */
:root { --oel-bg: var(--e-global-color-5523c88, #FBF7F1); --oel-surface: var(--e-global-color-d302e97, #EFE3D2);
        --oel-ink: var(--e-global-color-primary, #2B211B); --oel-acc: var(--e-global-color-secondary, #A0522D); }

/* Header de GeneratePress */
body, .site-header, .main-navigation, .main-navigation ul ul { background: var(--oel-bg); }
.site-header .main-title a, .site-header .main-title a:hover { font-family: "Newsreader", serif; font-size: 24px; font-weight: 500; color: var(--oel-ink); }
.main-navigation a, .main-navigation .main-nav ul li a { color: var(--oel-ink) !important; font-family: "Hanken Grotesk", sans-serif; font-size: 15px; }
.main-navigation .main-nav ul li a:hover { color: var(--oel-acc); }

/* Tipografía base */
.elementor-widget-text-editor { font-size: 17px; line-height: 1.65; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-heading h2.elementor-heading-title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.01em; }
.elementor-widget-heading h3.elementor-heading-title { font-size: 24px; line-height: 1.2; }
.elementor-widget-heading p.elementor-heading-title { font-size: 13px; line-height: 1.4; }
.fx-h1 .elementor-heading-title { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.06; letter-spacing: -.01em; }
.fx-lead { font-size: 19px; max-width: 520px; }
.fx-note { font-size: 14px; opacity: .72; }
.fx-small { font-size: 13px !important; letter-spacing: .04em; opacity: .7; margin-bottom: 14px; }

/* Botones: rectos, con ícono de WhatsApp */
.elementor-button { border-radius: 6px; padding: 16px 26px; font-size: 15px; }
.fx-wa .elementor-button-text { display: inline-flex; align-items: center; gap: 10px; }
.fx-wa .elementor-button-text::before { content: ""; width: 18px; height: 18px; background: currentColor; flex: none;
  -webkit-mask: var(--wa) center / contain no-repeat; mask: var(--wa) center / contain no-repeat; }
:root { --wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm4.5 12.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3Z'/%3E%3C/svg%3E"); }

/* Portada a pantalla completa: la foto de la biblioteca de fondo, el texto sobre la pared clara de la izquierda */
.fx-hero { position: relative; overflow: hidden; min-height: min(calc(100svh - 84px), 860px); align-items: center !important;
  --padding-left: 0px; --padding-right: 0px; padding-left: 0 !important; padding-right: 0 !important; }
.fx-hero > .e-con:last-child { position: absolute !important; inset: 0; width: 100% !important; max-width: none !important; z-index: 0;
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; padding: 0; }
.fx-hero > .e-con:last-child::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(251,247,241,.97) 0%, rgba(251,247,241,.92) 36%, rgba(251,247,241,.45) 54%, rgba(251,247,241,0) 66%); }
/* El ancho cuenta el margen izquierdo (que alinea con el logo), así que se suma: el texto siempre tiene ~560px */
.fx-hero > .e-con:first-child { position: relative; z-index: 1; justify-content: center;
  --hero-gut: max(24px, calc((100vw - 1180px) / 2));
  width: calc(var(--hero-gut) + min(680px, 44vw)) !important; max-width: none !important;
  padding: 48px 24px 56px var(--hero-gut); }
.fx-hero-photo { position: absolute !important; inset: 0; width: 100% !important; height: 100%; margin: 0 !important; }
.fx-hero-photo .elementor-widget-container { height: 100%; }
.fx-hero-photo img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-height: none !important;
  object-fit: cover; object-position: 78% 30%; display: block; border-radius: 0 !important; }
.fx-listhead { margin-top: 8px; }

/* ¿Qué estás sintiendo? — la lista de íconos se vuelve botones que se marcan */
.fx-feel .elementor-icon-list-items { display: flex; flex-wrap: wrap; gap: 10px; }
.fx-feel .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
.fx-feel .elementor-icon-list-item::after { display: none !important; }
.fx-feel .elementor-icon-list-icon { display: none !important; }
.fx-feel .elementor-icon-list-text { display: block; padding: 11px 16px !important; border: 1px solid rgba(43, 33, 27, .28); border-radius: 4px;
  font-size: 15px; color: var(--oel-ink); cursor: pointer; user-select: none; transition: background .2s, color .2s, border-color .2s; }
.fx-feel .elementor-icon-list-text:hover { border-color: var(--oel-ink); }
.fx-feel .is-on .elementor-icon-list-text { background: var(--oel-ink); border-color: var(--oel-ink); color: var(--oel-bg); }

/* Del lado del paciente */
.fx-quote .elementor-heading-title { font-size: clamp(32px, 3.6vw, 50px) !important; line-height: 1.12; }
.fx-step { border-top: 1px solid rgba(43, 33, 27, .2); padding-top: 18px; margin-top: 12px; }
.fx-step .elementor-heading-title { font-size: 13px !important; }

/* Listas con punto terracota */
.fx-list .elementor-icon-list-icon { display: none !important; }
.fx-list .elementor-icon-list-item { padding: 12px 0 !important; border-bottom: 1px solid rgba(43, 33, 27, .12); font-size: 16px; }
.fx-list .elementor-icon-list-text::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--oel-acc); margin-right: 12px; vertical-align: middle; }
.fx-creds .elementor-icon-list-item { font-size: 15px; }

/* Tu primera cita: números grandes en serif */
.fx-num .elementor-icon-list-items { counter-reset: oel; }
.fx-num .elementor-icon-list-icon { display: none !important; }
.fx-num .elementor-icon-list-item { counter-increment: oel; display: grid !important; grid-template-columns: 56px 1fr; align-items: baseline;
  padding: 16px 0 !important; border-bottom: 1px solid rgba(43, 33, 27, .12); font-size: 17px; }
.fx-num .elementor-icon-list-item::before { content: counter(oel); font-family: "Newsreader", serif; font-size: 40px; line-height: 1; color: var(--oel-acc); }

/* Fotos */
.fx-photo img { width: 100%; border-radius: 4px; display: block; }
#primera-cita .fx-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
#sobre-mi .fx-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }

/* Valores */
.fx-value { border-top: 2px solid var(--oel-acc); padding-top: 18px; }
#valores .elementor-widget-text-editor { font-size: 15.5px; }

/* Preguntas (acordeón) */
#preguntas .elementor-accordion .elementor-accordion-item { border: 0; border-bottom: 1px solid rgba(43, 33, 27, .15); }
#preguntas .elementor-accordion .elementor-tab-title { padding: 20px 0; font-family: "Hanken Grotesk", sans-serif; font-size: 18px; font-weight: 500; }
#preguntas .elementor-accordion .elementor-tab-title a { color: var(--oel-ink); }
#preguntas .elementor-accordion .elementor-tab-content { padding: 0 0 22px; border: 0; font-size: 16.5px; line-height: 1.65; }

/* Secciones oscuras (contacto y pie) */
.fx-dark, .fx-dark p, .fx-dark .elementor-icon-list-text, .fx-dark a { color: var(--oel-surface) !important; }
.fx-dark .elementor-icon-list-icon i, .fx-dark .elementor-icon-list-icon svg { color: var(--oel-surface) !important; fill: var(--oel-surface) !important; }
.fx-epigraph { font-family: "Newsreader", serif; font-size: 21px; opacity: .8; }
#contacto .elementor-widget-button { margin: 8px 0 12px; }
.fx-contact .elementor-icon-list-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; }
.fx-contact .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; font-size: 15px; }
.fx-contact .elementor-icon-list-item::after { display: none !important; }
.fx-foot .elementor-icon-list-items { justify-content: flex-start; }
.fx-foot .elementor-widget-heading p.elementor-heading-title { font-family: "Newsreader", serif; font-size: 22px; text-transform: none; letter-spacing: 0; }
.fx-foot, .fx-foot p { font-size: 14px; }

/* Tablet vertical y celular: foto arriba (recortada sobre su cara), texto abajo */
@media (max-width: 900px) {
  .fx-hero { flex-direction: column !important; min-height: 0; align-items: stretch !important; }
  .fx-hero > .e-con:last-child { position: relative !important; order: 1; height: 58vh; min-height: 360px; max-height: 560px; }
  .fx-hero > .e-con:last-child::after { background: none; }
  .fx-hero > .e-con:first-child { order: 2; width: 100% !important; padding: 48px 32px 64px; }
  .fx-hero-photo img { object-position: 66% 25%; }
}
@media (max-width: 767px) {
  .fx-hero > .e-con:first-child { padding: 36px 16px 56px; }
  .fx-hero > .e-con:last-child { height: 48vh; min-height: 300px; }
  .fx-lead { font-size: 17.5px; }
  .fx-num .elementor-icon-list-item { grid-template-columns: 44px 1fr; }
  .fx-foot .elementor-widget-text-editor { text-align: left !important; }
}

/* ===== Ronda de pulido UX/UI (29/10/26) ===== */

/* Header fijo, con línea suave al bajar; botón de agendar y cambio de idioma (los agrega custom.js) */
.site-header { position: sticky; top: 0; z-index: 100; transition: box-shadow .25s; }
.admin-bar .site-header { top: 32px; }
.fx-scrolled .site-header { box-shadow: 0 1px 0 rgba(43, 33, 27, .1), 0 8px 24px -16px rgba(43, 33, 27, .25); }
.main-navigation .main-nav ul li a { position: relative; }
.main-navigation .main-nav > ul > li:not(.fx-hdr-cta-li):not(.fx-lang-li) > a::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 18px;
  height: 1px; background: var(--oel-acc); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-navigation .main-nav > ul > li > a:hover::after { transform: scaleX(1); }
.main-navigation .main-nav ul li.fx-lang-li a { font-size: 13px; letter-spacing: .08em; font-weight: 600; opacity: .7; }
.main-navigation .main-nav ul li.fx-hdr-cta-li { display: flex; align-items: center; margin-left: 8px; }
.main-navigation .main-nav ul li.fx-hdr-cta-li a { background: var(--oel-acc); color: #fff !important; border-radius: 6px; line-height: 1;
  padding: 12px 18px; font-weight: 600; font-size: 14px; transition: background .2s; }
.main-navigation .main-nav ul li.fx-hdr-cta-li a:hover { background: var(--oel-ink); }
#trp-floater-ls, .trp-floating-switcher { display: none !important; }   /* el idioma va en el menú: el flotante tapaba contenido en el celular */

/* Portada: título con más presencia y sellos de confianza */
.fx-hero .fx-h1 .elementor-heading-title { font-size: clamp(40px, 4.2vw, 68px); }
.fx-hero .fx-lead { max-width: 580px; }
.fx-hero .fx-lead { font-size: 18px; }
.fx-trust .elementor-icon-list-items { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fx-trust .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; font-size: 14px; }
.fx-trust .elementor-icon-list-item::after { display: none !important; }
.fx-trust .elementor-icon-list-icon i, .fx-trust .elementor-icon-list-icon svg { color: var(--oel-acc) !important; fill: var(--oel-acc) !important; width: 12px; font-size: 12px; }
.fx-note { font-style: italic; }

/* Botones: un poco de vida al pasar el mouse */
.elementor-button { transition: transform .2s, box-shadow .2s, background-color .2s; }
.elementor-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(160, 82, 45, .7); }

/* Selector de síntomas: chips más grandes y con tilde al marcarse */
.fx-feel .elementor-icon-list-text { font-size: 16px !important; padding: 12px 18px !important; background: rgba(251, 247, 241, .6); transition: background .2s, color .2s, border-color .2s, transform .15s; }
.fx-feel .elementor-icon-list-text:hover { transform: translateY(-1px); }
.fx-feel .is-on .elementor-icon-list-text::before { content: "✓"; margin-right: 8px; color: var(--oel-surface); }

/* Mi historia: línea de tiempo */
.fx-step { position: relative; padding-left: 26px; }
.fx-step::before { content: ""; position: absolute; left: 0; top: 23px; width: 9px; height: 9px; border-radius: 50%; background: var(--oel-acc); }

/* Valores numerados */
#valores { counter-reset: val; }
.fx-value { counter-increment: val; }
.fx-value .elementor-heading-title::before { content: "0" counter(val); display: block; font-family: "Newsreader", serif; font-size: 15px;
  color: var(--oel-acc); margin-bottom: 10px; letter-spacing: .05em; }

/* Fotos: esquinas suaves y sombra cálida */
.fx-photo img { border-radius: 8px; box-shadow: 0 30px 60px -36px rgba(43, 33, 27, .55); }

/* Preguntas: la abierta en terracota */
#preguntas .elementor-accordion .elementor-tab-title.elementor-active a, #preguntas .elementor-accordion .elementor-tab-title:hover a { color: var(--oel-acc); }

/* Aparición suave al bajar (custom.js marca y revela; sin JS todo se ve) */
.js .fx-rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.js .fx-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .fx-rv { opacity: 1; transform: none; transition: none; } }

/* Barra fija de WhatsApp en el celular (aparece después de la portada) */
.fx-sticky { display: none; }
@media (max-width: 767px) {
  .fx-sticky { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
    justify-content: center; align-items: center; gap: 10px; padding: 15px 18px; border-radius: 10px; background: var(--oel-acc); color: #fff;
    font: 600 16px/1 "Hanken Grotesk", sans-serif; text-decoration: none; box-shadow: 0 12px 30px -10px rgba(43, 33, 27, .5);
    transform: translateY(140%); transition: transform .3s ease; }
  .fx-sticky::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--wa) center / contain no-repeat; mask: var(--wa) center / contain no-repeat; }
  .fx-sticky.is-on { transform: none; }
  .fx-sticky:hover, .fx-sticky:focus { color: #fff; }
  .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .main-navigation .main-nav ul li.fx-hdr-cta-li { display: none; }   /* en el celular está la barra de abajo */
}

/* Pie de GeneratePress con el crédito */
.site-info { background: var(--oel-ink); color: rgba(239, 227, 210, .7); font-size: 13px; }
.site-info a { color: var(--oel-surface); }

/* Valores: 2 x 2 en tablet (en 4 columnas se cortaba «Profesionalismo») */
@media (min-width: 768px) and (max-width: 1100px) {
  #valores > .e-con-inner { flex-wrap: wrap !important; row-gap: 40px !important; }
  #valores > .e-con-inner > .e-con { width: calc(50% - 36px) !important; --width: calc(50% - 36px); }
}
/* Celular: la portada muestra foto, título y botón sin tener que bajar tanto */
@media (max-width: 767px) {
  .fx-hero > .e-con:last-child { height: 40vh; min-height: 260px; }
  .fx-hero .fx-h1 .elementor-heading-title { font-size: 33px; line-height: 1.1; }
  .fx-hero > .e-con:first-child { padding-top: 28px; }
  .fx-hero .fx-lead { font-size: 16.5px; }
}

/* Fotos de Unsplash (29/10/26) */
.fx-photo-tre img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%; margin-top: 8px; }
.fx-photo-online img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 50%; margin-top: 24px; }
.fx-caption p { font-size: 14px; opacity: .75; margin-top: -4px; }
/* Contacto: el cielo estrellado con un velo cálido en vez de negro puro */

/* Foto de la fuente bajo «Mi historia»: apaisada y con aire arriba */
.fx-photo-fuente { margin-top: 32px; }
.fx-photo-fuente img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* SEO: la línea chica de arriba es el H1 (con las palabras que se buscan); la frase grande es un H2 con el mismo estilo de siempre */
.fx-eyebrow .elementor-heading-title { font-family: "Hanken Grotesk", sans-serif !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.4 !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: #A0522D !important; }

/* Páginas EMDR y terapia en inglés: fotos verticales y de naturaleza */
.fx-photo-tall img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.fx-photo-nature img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 767px) { .fx-photo-tall img, .fx-photo-nature img { aspect-ratio: 4 / 3; } }
/* Enlaces del pie (GeneratePress) */
.site-info a { text-decoration: underline; text-underline-offset: 3px; }
