/*
Theme Name: Puyu Digital
Author: Puyu Digital
Description: Tema a medida de Puyu Digital: planes, portafolio, servicios y asistente con IA, editables desde WordPress.
Version: 2.9.0
Requires PHP: 7.4
Text Domain: puyu-digital
*/
/* Puyu — Editorial Dark Warm */
@property --mesh-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
:root {
  --bg: #0E0B09; --bg-2: #15110E; --bg-3: #1E1813;
  --cream: #F2EBDA; --cream-2: #DDD2BC; --cream-3: #8B7E68;
  --gold: #D8B873; --gold-2: #B8954F;
  --line: color-mix(in srgb, var(--cream) 12%, transparent);
  --wa: #1FAE5B;
  --r: 18px;
  --serif: 'Caveat', system-ui, sans-serif;
  --sans: 'Outfit', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--cream); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold); font-family: var(--serif); font-weight: 500; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 18px clamp(20px, 4vw, 48px); transition: background .4s, padding .4s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.brand img { object-fit: contain; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: .93rem; color: var(--cream-2); }
.nav-links a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; width: 34px; height: 30px; cursor: pointer; flex-direction: column; justify-content: center; gap: 7px; }
.nav-toggle span { display: block; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: .98rem; transition: transform .25s, box-shadow .25s, background .25s; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 82%, white), var(--gold-2)); color: var(--bg); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--gold) 55%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px color-mix(in srgb, var(--gold) 70%, transparent); }
.btn-ghost { border-color: var(--line); color: var(--cream); background: color-mix(in srgb, var(--cream) 4%, transparent); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; margin-top: 34px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px clamp(20px, 5vw, 64px) 90px; overflow: hidden; isolation: isolate; }
.hero-bg, .hero-mesh, .hero-grain { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.05); }
.hero-tint { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 95%, transparent) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 45%, color-mix(in srgb, var(--bg) 35%, transparent) 100%), linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 0%, transparent) 40%); }
.hero-mesh { background: conic-gradient(from var(--mesh-angle) at 70% 40%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 30%, color-mix(in srgb, var(--gold-2) 12%, transparent) 60%, transparent 85%); filter: blur(70px); animation: mesh 18s linear infinite; mix-blend-mode: screen; }
@keyframes mesh { to { --mesh-angle: 360deg; } }
.hero-grain { opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-inner { max-width: 760px; }
.hero-meta { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: 999px; font-size: .85rem; color: var(--gold); letter-spacing: .02em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--gold) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 0%, transparent); } }
.hero-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.7rem, 7.2vw, 6rem); line-height: 1.02; letter-spacing: -.02em; margin: 26px 0 22px; }
.hero-title span { display: block; }
.hero-title em { font-weight: 700; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--cream-2); max-width: 620px; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 40px; margin-top: 38px; }
.hero-price small { display: block; font-size: .82rem; color: var(--cream-3); }
.hero-price strong { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; color: var(--gold); line-height: 1; font-variant-numeric: lining-nums; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll { position: absolute; left: 50%; bottom: 26px; width: 24px; height: 38px; border: 1.5px solid var(--line); border-radius: 14px; translate: -50% 0; }
.hero-scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; background: var(--gold); border-radius: 2px; translate: -50% 0; animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } }

/* secciones */
section { position: relative; }
.concept, .clases, .faq { padding: clamp(90px, 12vw, 150px) 0; }
.kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .22em; color: var(--gold); margin-bottom: 18px; }
.section-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.015em; max-width: 900px; }
.lead { color: var(--cream-2); font-size: 1.12rem; max-width: 640px; margin-top: 20px; }
.concept-fig { position: relative; margin: 56px 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 8; }
.concept-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.concept-fig:hover img { transform: scale(1.04); }
.concept-fig figcaption { position: absolute; right: 14px; bottom: 12px; font-size: .72rem; color: var(--cream-3); background: color-mix(in srgb, var(--bg) 60%, transparent); padding: 3px 10px; border-radius: 999px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { position: relative; padding: 34px 30px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pillar-n { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold); }
.pillar h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 14px 0 10px; }
.pillar p { color: var(--cream-2); font-size: .97rem; }

/* tilt + halo */
.tilt { transform-style: preserve-3d; transition: transform .35s ease, border-color .35s; will-change: transform; }
.tilt::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--gold) 13%, transparent), transparent 45%); opacity: 0; transition: opacity .35s; }
.tilt:hover { border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.tilt:hover::before { opacity: 1; }

/* showcase horizontal */
.showcase { padding: clamp(80px, 10vw, 120px) 0; background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.showcase-head { margin-bottom: 50px; }
.showcase-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; width: min(1180px, 100% - 40px); margin-inline: auto; }
.step { position: relative; min-height: 290px; padding: 32px 26px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; }
.step-n { font-family: var(--serif); font-size: 4.2rem; font-weight: 300; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.step h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin: 40px 0 10px; }
.step p { color: var(--cream-2); }
.step-cta { justify-content: center; align-items: flex-start; gap: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 16%, transparent), var(--bg-3) 70%); }
.step-cta h3 { margin: 0; font-size: 1.9rem; }

/* clases */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.card { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .8s; }
.card:hover .card-img img { transform: scale(1.06); filter: saturate(1.18); }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.card-body p { color: var(--cream-2); font-size: .96rem; flex: 1; }
.price { font-family: var(--serif); font-size: 1.7rem; color: var(--gold); font-variant-numeric: lining-nums; }
.note { margin-top: 26px; color: var(--cream-3); font-size: .88rem; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq details:first-of-type { margin-top: 40px; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-family: var(--serif); font-size: 1.28rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.6rem; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--cream-2); margin-top: 12px; max-width: 680px; }

/* final */
.final { padding: clamp(90px, 12vw, 140px) 0; background: radial-gradient(60% 80% at 50% 100%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%); border-top: 1px solid var(--line); }
.final .section-title { margin-inline: auto; }

/* footer */
.footer { padding: 46px 0 120px; border-top: 1px solid var(--line); color: var(--cream-3); font-size: .9rem; }
.footer-in { display: flex; flex-direction: column; gap: 10px; }
.footer .brand { color: var(--cream); font-size: 1.2rem; }
.small { font-size: .78rem; }

/* reveal: visible por defecto; JS solo anima */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.ya { transition: none; }
.js .reveal.in { opacity: 1; transform: none; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(31,174,91,.7); transition: transform .25s; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: waPing 2.4s infinite; }
.wa-float:hover { transform: scale(1.08); }
@keyframes waPing { 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* asistente */
.chat-fab { position: fixed; right: 22px; bottom: 96px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--bg-2) 95%, transparent); color: var(--cream); font: 600 .9rem var(--sans); cursor: pointer; box-shadow: 0 12px 30px -10px rgba(0,0,0,.7); transition: transform .25s, border-color .25s; }
.chat-fab img { width: 40px; height: 40px; border-radius: 50%; }
.chat-fab:hover { transform: translateY(-2px); border-color: var(--gold); }
.chat { position: fixed; right: 22px; bottom: 96px; z-index: 70; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 130px)); display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.85); }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.chat-head img { width: 38px; height: 38px; border-radius: 50%; }
.chat-head strong { display: block; font-size: .98rem; }
.chat-head small { color: var(--gold); font-size: .75rem; }
.chat-close { margin-left: auto; background: none; border: 0; color: var(--cream-2); font-size: 1.7rem; cursor: pointer; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 16px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 82%, white), var(--gold-2)); color: var(--bg); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing { color: var(--cream-3); font-style: italic; }
.msg a { color: var(--gold); text-decoration: underline; }
.chat-sugs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chat-sugs button { background: transparent; border: 1px solid var(--line); color: var(--cream-2); border-radius: 999px; padding: 7px 12px; font: 500 .8rem var(--sans); cursor: pointer; }
.chat-sugs button:hover { border-color: var(--gold); color: var(--gold); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; color: var(--cream); font: .93rem var(--sans); outline: none; }
.chat-form input:focus { border-color: var(--gold); }
.chat-form button { width: 44px; border-radius: 50%; border: 0; background: var(--gold); color: var(--bg); font-size: 1rem; cursor: pointer; }

/* responsive */
@media (max-width: 1100px) and (min-width: 901px) {
  .showcase-track { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 30px; background: color-mix(in srgb, var(--bg) 98%, transparent); font-size: 1.4rem; font-family: var(--serif); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; margin: 0; }
  .nav.open .nav-links { opacity: 1; visibility: visible; }
  .nav .btn-sm { margin-left: auto; }
  .nav-toggle { display: flex; }
  .nav.open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .pillars, .cards { grid-template-columns: 1fr; }
  .concept-fig { aspect-ratio: 4 / 3; }
  .hero { padding-bottom: 70px; }
  .hero-tint { background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 97%, transparent) 10%, color-mix(in srgb, var(--bg) 70%, transparent) 60%, color-mix(in srgb, var(--bg) 45%, transparent) 100%); }
  .showcase-track { display: flex; overflow-x: auto; width: auto; padding-inline: 20px; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .step { scroll-snap-align: start; flex: 0 0 82%; }
}
@media (max-width: 520px) {
  .nav .btn-sm { display: none; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .wa-float::after, .dot { animation: none; }
}

/* ===== Puyu Digital: planes, portafolio y servicios ===== */
[data-regular] { display: none !important; }
.no-promo [data-promo] { display: none !important; }
.no-promo .hero-meta[data-regular] { display: inline-flex !important; }
.no-promo .hero-price strong[data-regular], .no-promo .plan-price[data-regular] { display: block !important; }
.brand small { font: 500 .62em var(--sans); color: var(--gold); letter-spacing: .04em; }
.btn-block { width: 100%; }
.planes, .portafolio { padding: clamp(90px, 12vw, 140px) 0; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 50px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 22px 24px; }
.plan-top { border-color: var(--gold); background: linear-gradient(170deg, color-mix(in srgb, var(--gold) 14%, transparent), var(--bg-2) 45%); }
.plan-badge { position: absolute; top: -13px; left: 22px; background: var(--gold); color: var(--bg); font: 700 .72rem var(--sans); padding: 5px 12px; border-radius: 999px; }
.plan-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: 8px; }
.plan h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.12; }
.plan-for { color: var(--cream-2); font-size: .9rem; margin: 8px 0 18px; min-height: 2.9em; }
.plan-price { min-height: 92px; }
.plan-price strong { display: block; font: 600 2.4rem/1.1 var(--serif); color: var(--cream); font-variant-numeric: lining-nums; }
.plan-price del { color: var(--cream-3); font-size: .95rem; }
.plan-price small { display: block; color: var(--cream-3); font-size: .76rem; margin-top: 4px; }
.plan-price .plan-from { margin: 0 0 2px; }
.plan ul { list-style: none; display: grid; gap: 9px; margin: 14px 0 18px; font-size: .88rem; color: var(--cream-2); flex: 1; align-content: start; }
.plan li, .checks li { position: relative; padding-left: 22px; }
.plan li::before, .checks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.plan-note { font-size: .78rem; color: var(--cream-3); margin-bottom: 16px; min-height: 4.6em; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.choose > div { border-top: 1px solid var(--line); padding-top: 18px; }
.choose h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 6px; }
.choose p { color: var(--cream-2); font-size: .94rem; }
.portafolio { background: var(--bg-2); border-block: 1px solid var(--line); }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 46px; }
.work { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-3); margin: 0; }
.work-frame { display: flex; gap: 6px; padding: 10px 12px; background: var(--bg-3); }
.work-frame i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--cream) 28%, transparent); }
.work img { display: block; width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; object-position: left top; transition: transform .8s ease; }
.work:hover img { transform: scale(1.04); }
.work figcaption { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 14px 16px; position: relative; background: var(--bg-3); }
.work figcaption strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.work figcaption span { color: var(--cream-3); font-size: .8rem; }
.showcase-track--4 { grid-template-columns: repeat(4, 1fr); }
.step-n + h3 { margin-top: 34px; }
.servicio { padding: clamp(80px, 10vw, 120px) 0; }
.servicio--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.servicio-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.servicio-img { border-radius: var(--r); overflow: hidden; }
.servicio-img img { width: 100%; aspect-ratio: 1 / 1; max-height: 500px; object-fit: cover; }
.checks { list-style: none; display: grid; gap: 10px; margin: 22px 0 28px; color: var(--cream-2); }
.mentors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 42px 0 26px; }
.mentor { display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.mentor h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.mentor p { color: var(--cream-2); font-size: .92rem; flex: 1; }
@media (max-width: 1120px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-for, .plan-note, .plan-price { min-height: 0; }
  .plan-price { margin-bottom: 4px; }
  .nav-links { gap: 16px; font-size: .85rem; }
}
@media (max-width: 900px) {
  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav .brand, .nav .btn-sm, .nav-toggle { position: relative; z-index: 2; }
  .nav-links { z-index: 1; padding: 100px 24px 40px; overflow-y: auto; }
  .nav.open { background: var(--bg); }
  .works, .mentors, .choose, .servicio-in { grid-template-columns: 1fr; }
  .servicio--alt .servicio-in > :first-child { order: 2; }
  .servicio-img img { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
  .showcase-track--4 { grid-template-columns: none; }
}

section[id] { scroll-margin-top: 70px; }
.hero-inner { max-width: 920px; }
.hero-title { font-size: clamp(2.5rem, 5.6vw, 5rem); margin: 20px 0 16px; }
.hero { padding-top: 112px; padding-bottom: 76px; }
.hero-foot { margin-top: 26px; }

@media (max-width: 900px) {
  .nav-links { font-size: 1.35rem; gap: 24px; background: var(--bg); }
  .nav-toggle { margin-left: auto; }
  .nav .btn-sm { margin-left: auto; }
  .nav .btn-sm + .nav-toggle { margin-left: 0; }
  .nav.open ~ .wa-float, .nav.open ~ .chat-fab { display: none; }
}
@media (max-width: 520px) { .nav-toggle { margin-left: auto !important; } }

/* WordPress */
.page-head { padding: 130px 0 30px; }
.page-head h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; }
.prose { color: var(--cream-2); padding-bottom: 90px; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { font-family: var(--serif); color: var(--cream); font-weight: 500; }
.prose a { color: var(--gold); text-decoration: underline; }
.custom-logo { max-height: 42px; width: auto; }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
.faq details p { white-space: normal; }
/* Libro de Reclamaciones */
.rc-proveedor { display: flex; flex-wrap: wrap; gap: 4px 18px; background: var(--bg-3); border-radius: 14px; padding: 16px 20px; margin: 24px 0; font-size: .92rem; }
.rc-proveedor strong { color: var(--cream); }
.rc-form fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 22px; background: var(--bg-2); min-width: 0; }
.rc-form legend { font: 600 1.45rem var(--serif); color: var(--cream); padding: 0 8px; }
.rc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rc-full { grid-column: 1 / -1; }
.rc-form label > span, .rc-radio > span { display: block; font: 700 .72rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 6px; }
.rc-form input:not([type=radio]):not([type=checkbox]), .rc-form select, .rc-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); font: 500 .95rem var(--sans); color: var(--cream-2); outline: none; }
.rc-form input:focus, .rc-form select:focus, .rc-form textarea:focus { border-color: var(--gold); }
.rc-radio label { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; font-weight: 600; }
.rc-tutor { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.rc-legal { font-size: .88rem; color: var(--cream-3); margin-bottom: 22px; }
.rc-legal p { margin-bottom: 10px; }
.rc-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; color: var(--cream-2); }
.rc-check input { margin-top: 4px; flex: none; }
.rc-check a { color: var(--gold); text-decoration: underline; }
.rc-err { background: #3a1a15; border: 1px solid #a2574b; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; color: #ffd9d2; }
.rc-err ul { list-style: disc; padding-left: 20px; margin-top: 6px; }
.rc-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rc-ok { background: var(--bg-2); border: 1px solid var(--gold); border-radius: 18px; padding: 28px; }
.rc-ok h2 { font-size: 2rem; }
.rc-codigo { font: 600 2.2rem var(--serif); color: var(--gold); margin: 8px 0; }
.rc-tabla { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .9rem; }
.rc-tabla th, .rc-tabla td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.rc-tabla th { width: 38%; color: var(--cream-3); font-weight: 700; }
@media (max-width: 720px) { .rc-grid { grid-template-columns: 1fr; } .rc-form fieldset { padding: 18px; } }
@media print { .nav, .footer, .wa-float, .chat-fab, .chat, .page-head, #wpadminbar, .rc-ok .btn { display: none !important; } }

/* Empresa: franja, servicios, compromisos, contacto y pie */
.franja { border-block: 1px solid var(--line); background: var(--bg-2); }
.franja-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 0; }
.franja p { display: flex; gap: 10px; align-items: center; font-size: .88rem; color: var(--cream-2); }
.franja i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.servs, .compromisos { padding: clamp(80px, 10vw, 120px) 0; }
.srv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.srv { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px 26px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.srv span { font: italic 500 1rem var(--serif); color: var(--gold); }
.srv h3 { font: 600 1.55rem var(--serif); }
.srv p { color: var(--cream-2); font-size: .95rem; flex: 1; }
.srv b { color: var(--gold); font-size: .88rem; margin-top: 8px; }
.compromisos { border-top: 1px solid var(--line); }
.com-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 42px; }
.com-grid > div { border-top: 2px solid var(--gold); padding-top: 16px; }
.com-grid h3 { font: 600 1.2rem var(--serif); margin-bottom: 6px; }
.com-grid p { color: var(--cream-2); font-size: .92rem; }
.contacto { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 70px); padding-bottom: 90px; align-items: start; }
.contacto .prose { padding-bottom: 0; }
.datos { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.datos li { border-top: 1px solid var(--line); padding-top: 12px; }
.datos strong { display: block; color: var(--gold); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.rc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-form .note a, .rc-legal a { color: var(--gold); text-decoration: underline; }
.page-prose { padding-bottom: 20px; }
.prose ul { padding-left: 1.2em; }
.prose .lead { font: 500 1.35rem/1.45 var(--serif); color: var(--cream); max-width: none; }
.footer { padding-bottom: 40px; }
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-cols > div > a, .foot-cols > div > span { display: block; margin-bottom: 8px; color: var(--cream-2); font-size: .9rem; }
.foot-cols a:hover, .foot-legal a:hover { color: var(--gold); }
.foot-cols p { margin-top: 12px; font-size: .9rem; }
.foot-h { color: var(--cream) !important; font-weight: 700; font-size: .78rem !important; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px !important; }
.foot-soc a { margin-right: 12px; color: var(--gold); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 34px; padding: 18px 0 90px; }
.foot-legal a { margin-left: 16px; color: var(--cream-2); }
.foot-legal .foot-libro { border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
@media (max-width: 900px) {
  .franja-in, .com-grid, .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srv-grid, .contacto { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .franja-in, .com-grid, .foot-cols, .rc-grid--2 { grid-template-columns: 1fr; }
  .foot-legal a { margin: 0 14px 0 0; display: inline-block; }
}

/* Ajustes tras la prueba en WordPress */
.prose ul.datos { padding-left: 0; }
.plan h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 520px) {
  .wa-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .wa-float svg { width: 27px; height: 27px; }
  .chat-fab { right: 14px; bottom: 72px; padding: 5px; }
  .chat-fab img { width: 38px; height: 38px; }
}

/* ===== Elementor: colores y letras de Ajustes del sitio para toda la web ===== */
body {
  --gold: var(--e-global-color-primary, #D8B873);
  --bg: var(--e-global-color-secondary, #0E0B09);
  --cream: var(--e-global-color-text, #F2EBDA);
  --gold-2: var(--e-global-color-accent, #B8954F);
  --bg-2: color-mix(in srgb, var(--bg) 94%, var(--cream));
  --bg-3: color-mix(in srgb, var(--bg) 88%, var(--cream));
  --cream-2: color-mix(in srgb, var(--cream) 85%, var(--bg));
  --cream-3: color-mix(in srgb, var(--cream) 52%, var(--bg));
  --line: color-mix(in srgb, var(--cream) 12%, transparent);
  --serif: var(--e-global-typography-primary-font-family, 'Caveat'), system-ui, sans-serif;
  --sans: var(--e-global-typography-text-font-family, 'Outfit'), system-ui, sans-serif;
  background: var(--bg); color: var(--cream); font-family: var(--sans);
}
body.elementor-editor-active .reveal, body.elementor-editor-preview .reveal { opacity: 1; transform: none; }

/* Contenedores de la portada: lo que cambies en Elementor sigue teniendo prioridad */
body.pd-con-elementor .e-con { --container-default-padding-top: 0px; --container-default-padding-right: 0px; --container-default-padding-bottom: 0px; --container-default-padding-left: 0px; --widgets-spacing: 0px; --widgets-spacing-row: 0px; --widgets-spacing-column: 0px; }
body.pd-con-elementor .wrap.e-con { --width: min(1180px, 100% - 40px); --margin-left: auto; --margin-right: auto; max-width: none; }
body.pd-con-elementor .narrow.e-con { --width: min(820px, 100% - 40px); }
body.pd-con-elementor .servs.e-con, body.pd-con-elementor .compromisos.e-con { --padding-top: clamp(80px, 10vw, 120px); --padding-bottom: clamp(80px, 10vw, 120px); }
body.pd-con-elementor .planes.e-con, body.pd-con-elementor .portafolio.e-con { --padding-top: clamp(90px, 12vw, 140px); --padding-bottom: clamp(90px, 12vw, 140px); }
body.pd-con-elementor .clases.e-con, body.pd-con-elementor .faq.e-con { --padding-top: clamp(90px, 12vw, 150px); --padding-bottom: clamp(90px, 12vw, 150px); }
body.pd-con-elementor .servicio.e-con, body.pd-con-elementor .showcase.e-con { --padding-top: clamp(80px, 10vw, 120px); --padding-bottom: clamp(80px, 10vw, 120px); }
body.pd-con-elementor .final.e-con { --padding-top: clamp(90px, 12vw, 140px); --padding-bottom: clamp(90px, 12vw, 140px); }
body.pd-con-elementor .hero.e-con { --min-height: 100svh; --flex-direction: row; --align-items: flex-end; --padding-top: 112px; --padding-bottom: 76px; --padding-left: clamp(20px, 5vw, 64px); --padding-right: clamp(20px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.hero.e-con::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 95%, transparent) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 45%, color-mix(in srgb, var(--bg) 35%, transparent) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
body.pd-con-elementor .hero-inner.e-con { --width: min(920px, 100%); position: relative; z-index: 1; }
body.pd-con-elementor .hero-foot.e-con { --flex-direction: row; --flex-wrap: wrap; --align-items: flex-end; --row-gap: 28px; --column-gap: 40px; --margin-top: 26px; --container-widget-width: auto; }
body.pd-con-elementor .hero-actions.e-con { --width: auto; --flex-direction: row; --flex-wrap: wrap; --row-gap: 14px; --column-gap: 14px; --container-widget-width: auto; }
body.pd-con-elementor .franja-in.e-con { display: grid; grid-template-columns: repeat(4, 1fr); --row-gap: 18px; --column-gap: 18px; --padding-top: 22px; --padding-bottom: 22px; }
.franja-item p { display: flex; gap: 10px; align-items: center; font-size: .88rem; color: var(--cream-2); }
.franja-item p::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
body.pd-con-elementor .srv-grid.e-con { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); --row-gap: 18px; --column-gap: 18px; --margin-top: 44px; }
body.pd-con-elementor .srv.e-con { --row-gap: 10px; --padding-top: 30px; --padding-bottom: 30px; --padding-left: 26px; --padding-right: 26px; display: flex; }
.srv .elementor-widget-text-editor { flex: 1; }
.srv .srv-mas .elementor-heading-title { color: var(--gold); font: 700 .88rem var(--sans); }
body.pd-con-elementor .srv-mas { padding-top: 8px; }
body.pd-con-elementor .choose.e-con { display: grid; grid-template-columns: 1fr 1fr; --row-gap: 16px; --column-gap: 16px; --margin-top: 28px; }
body.pd-con-elementor .choose.e-con > .e-con { --padding-top: 18px; border-top: 1px solid var(--line); }
body.pd-con-elementor .showcase-track.e-con { display: grid; grid-template-columns: repeat(4, 1fr); --row-gap: 18px; --column-gap: 18px; --width: min(1180px, 100% - 40px); --margin-left: auto; --margin-right: auto; max-width: none; }
body.pd-con-elementor .step.e-con { --min-height: 290px; --padding-top: 32px; --padding-bottom: 32px; --padding-left: 26px; --padding-right: 26px; }
body.pd-con-elementor .showcase-head.e-con { --margin-bottom: 50px; }
body.pd-con-elementor .com-grid.e-con { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); --row-gap: 24px; --column-gap: 24px; --margin-top: 42px; }
body.pd-con-elementor .com.e-con { --padding-top: 16px; border-top: 2px solid var(--gold); }
body.pd-con-elementor .servicio-in.e-con { display: grid; grid-template-columns: 1fr 1fr; --row-gap: clamp(36px, 6vw, 80px); --column-gap: clamp(36px, 6vw, 80px); align-items: center; }
body.pd-con-elementor .mentors.e-con { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); --row-gap: 16px; --column-gap: 16px; --margin-top: 42px; --margin-bottom: 26px; }
body.pd-con-elementor .mentor.e-con { --row-gap: 8px; --padding-top: 24px; --padding-bottom: 24px; --padding-left: 24px; --padding-right: 24px; }
.mentor .elementor-widget-text-editor { flex: 1; }

/* Los títulos toman el estilo del diseño; si los cambias en Elementor, manda tu cambio */
.section-title .elementor-heading-title, .hero-title .elementor-heading-title, .kicker .elementor-heading-title, .step-n .elementor-heading-title, .price .elementor-heading-title, .srv-n .elementor-heading-title { font: inherit; color: inherit; letter-spacing: inherit; line-height: inherit; text-transform: inherit; -webkit-text-stroke: inherit; }
body.pd-con-elementor .kicker.elementor-widget { padding-bottom: 18px; }
body.pd-con-elementor .hero-title.elementor-widget { padding: 20px 0 16px; margin: 0; }
.srv-n { font: italic 500 1rem var(--serif); color: var(--gold); }
.com h3 { font: 600 1.2rem var(--serif); margin-bottom: 6px; }
.com p { color: var(--cream-2); font-size: .92rem; }
.step-n .elementor-heading-title { display: block; }
.section-title em, .hero-title em { font-style: italic; }
.hero-title em { display: block; }
.checks ul { list-style: none; display: grid; gap: 10px; }
body.pd-con-elementor .checks.elementor-widget { margin: 22px 0 0; padding-bottom: 28px; }
.lead p, .note p { margin: 0; }
.servicio-img.elementor-widget img { width: 100%; }

/* Botones de Elementor con el estilo del diseño */
body .pd-btn .elementor-button { display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border-radius: 999px; font: 600 .98rem var(--sans); border: 1px solid transparent; line-height: 1.3; transition: transform .25s, box-shadow .25s, background-color .25s, color .25s; }
body .pd-btn-p .elementor-button { background-color: var(--gold); color: var(--bg); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--gold) 55%, transparent); }
body .pd-btn-p .elementor-button:hover { background-color: var(--gold); color: var(--bg); transform: translateY(-2px); }
body .pd-btn-g .elementor-button { background-color: color-mix(in srgb, var(--cream) 4%, transparent); color: var(--cream); border-color: var(--line); }
body .pd-btn-g .elementor-button:hover { background-color: transparent; color: var(--gold); border-color: var(--gold); }
.final .section-title { align-self: center; }
.final .pd-btn { padding-top: 34px; text-align: center; }
.final .elementor-button-wrapper { text-align: center; }
.servicio-txt .pd-btn { align-self: flex-start; }

@media (max-width: 900px) {
  body.pd-con-elementor .franja-in.e-con, body.pd-con-elementor .com-grid.e-con { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.pd-con-elementor .srv-grid.e-con, body.pd-con-elementor .choose.e-con, body.pd-con-elementor .servicio-in.e-con, body.pd-con-elementor .mentors.e-con { grid-template-columns: 1fr; }
  body.pd-con-elementor .hero.e-con { --padding-bottom: 70px; }
  .hero.e-con::after { background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 97%, transparent) 10%, color-mix(in srgb, var(--bg) 70%, transparent) 60%, color-mix(in srgb, var(--bg) 45%, transparent) 100%); }
  body.pd-con-elementor .showcase-track.e-con { display: flex; --flex-direction: row; --flex-wrap: nowrap; --width: 100%; --margin-left: 0px; --margin-right: 0px; overflow-x: auto; --padding-left: 20px; --padding-right: 20px; --padding-bottom: 12px; scroll-snap-type: x mandatory; }
  body.pd-con-elementor .step.e-con { --width: 82%; flex: 0 0 82%; scroll-snap-align: start; }
}
@media (max-width: 560px) {
  body.pd-con-elementor .franja-in.e-con, body.pd-con-elementor .com-grid.e-con { grid-template-columns: 1fr; }
}

/* ===== Mejora de diseño: contraste, ritmo y sección clara ===== */
body { --cream-3: color-mix(in srgb, var(--cream) 66%, var(--bg)); }
.btn-primary { background: var(--gold); }
.btn-primary:hover { background: var(--gold); }

/* Secciones más juntas y alternadas para que la página no se sienta infinita */
body.pd-con-elementor .servs.e-con, body.pd-con-elementor .compromisos.e-con, body.pd-con-elementor .servicio.e-con, body.pd-con-elementor .showcase.e-con,
body.pd-con-elementor .planes.e-con, body.pd-con-elementor .portafolio.e-con, body.pd-con-elementor .clases.e-con, body.pd-con-elementor .faq.e-con { --padding-top: clamp(68px, 8vw, 108px); --padding-bottom: clamp(68px, 8vw, 108px); }
body.pd-con-elementor .final.e-con { --padding-top: clamp(76px, 9vw, 120px); --padding-bottom: clamp(76px, 9vw, 120px); }
body.pd-con-elementor .showcase.e-con { background: var(--bg); border-block: 0; }
body.pd-con-elementor .step.e-con { background: var(--bg-2); }
body.pd-con-elementor .compromisos.e-con { border-top: 0; }
body.pd-con-elementor .faq.e-con { background: var(--bg-2); border-block: 1px solid var(--line); }

/* Foto de inicio más visible, sin perder lectura del texto */
.hero.e-con::after { background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 62%, transparent) 52%, color-mix(in srgb, var(--bg) 8%, transparent) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 32%); }
.hero-title, .section-title { font-weight: 400; }
.hero-title em, .section-title em { font-weight: 600; }

/* Planes sobre fondo claro: es la parte donde el cliente decide */
body.pd-con-elementor .planes.e-con {
  --bg: var(--e-global-color-pdclaro, #F7F5F0);
  --cream: var(--e-global-color-pdoscuro, #15120E);
  --gold: color-mix(in srgb, var(--e-global-color-primary, #D8B873) 45%, #1B1508);
  --bg-2: color-mix(in srgb, var(--bg) 35%, white);
  --bg-3: color-mix(in srgb, var(--bg) 70%, white);
  --cream-2: color-mix(in srgb, var(--cream) 84%, var(--bg));
  --cream-3: color-mix(in srgb, var(--cream) 68%, var(--bg));
  --line: color-mix(in srgb, var(--cream) 16%, transparent);
  background-color: var(--bg); color: var(--cream);
}
.planes .plan { box-shadow: 0 18px 40px -30px color-mix(in srgb, var(--cream) 45%, transparent); }
.planes .plan-top { background: var(--bg-2); border-width: 2px; box-shadow: 0 26px 60px -30px color-mix(in srgb, var(--gold) 70%, transparent); }
.planes .plan-badge { color: #fff; }
.planes .btn-primary { color: #fff; }
.planes .btn-primary:hover { box-shadow: 0 14px 30px -14px var(--gold); }
.planes .btn-ghost { color: var(--cream); background: transparent; border-color: color-mix(in srgb, var(--cream) 30%, transparent); }
.planes .btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

/* ===== Rediseño empresa: página clara, letra moderna, hero con muestras ===== */
body .claro.e-con, body:not(.home) main {
  --bg: var(--e-global-color-pdclaro, #F7F5F0);
  --cream: var(--e-global-color-pdoscuro, #15120E);
  --gold: color-mix(in srgb, var(--e-global-color-primary, #D8B873) 45%, #15120E);
  --bg-2: color-mix(in srgb, var(--bg) 25%, white);
  --bg-3: color-mix(in srgb, var(--bg) 60%, white);
  --cream-2: color-mix(in srgb, var(--cream) 80%, var(--bg));
  --cream-3: color-mix(in srgb, var(--cream) 64%, var(--bg));
  --line: color-mix(in srgb, var(--cream) 13%, transparent);
  background-color: var(--bg); color: var(--cream);
}
body .claro-b.e-con { --bg: #fff; --bg-2: var(--e-global-color-pdclaro, #F7F5F0); }
body .oscuro.e-con, .page-head {
  --bg: var(--e-global-color-secondary, #0E0B09);
  --cream: var(--e-global-color-text, #F2EBDA);
  --gold: var(--e-global-color-primary, #D8B873);
  --bg-2: color-mix(in srgb, var(--bg) 92%, var(--cream));
  --bg-3: color-mix(in srgb, var(--bg) 86%, var(--cream));
  --cream-2: color-mix(in srgb, var(--cream) 85%, var(--bg));
  --cream-3: color-mix(in srgb, var(--cream) 66%, var(--bg));
  --line: color-mix(in srgb, var(--cream) 14%, transparent);
  background-color: var(--bg); color: var(--cream);
}
body .final.e-con, body .final {
  --bg: var(--e-global-color-primary, #D8B873);
  --cream: var(--e-global-color-pdoscuro, #15120E);
  --gold: var(--e-global-color-pdoscuro, #15120E);
  --cream-2: var(--cream);
  background: var(--bg); color: var(--cream); border: 0;
}

/* Cabecera fija y sólida */
.nav, .nav.scrolled { background: var(--bg); border-bottom: 1px solid var(--line); padding-block: 12px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-links { font-weight: 500; }

/* Títulos */
.hero-title, .section-title, .page-head h1, .pd-h1 { font-family: var(--serif); font-weight: 800; letter-spacing: -.028em; }
.hero-title { font-size: clamp(2.3rem, 4.5vw, 3.95rem); line-height: 1.07; }
.section-title { font-size: clamp(1.8rem, 3.3vw, 2.8rem); line-height: 1.14; max-width: 780px; }
.hero-title em, .section-title em { font-family: inherit; font-style: normal; font-weight: 800; color: var(--gold); }
.final .section-title { margin-inline: auto; }
.kicker { font-size: .76rem; font-weight: 700; letter-spacing: .15em; }
.pd-h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; }
.pd-h1 .elementor-heading-title { font: inherit; letter-spacing: inherit; line-height: inherit; color: inherit; }
.lead { font-size: 1.08rem; }

/* Botones y tarjetas más sobrios */
.btn, body .pd-btn .elementor-button { border-radius: 10px; font-weight: 700; }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-dark { background: var(--cream); color: var(--bg); }
:root { --r: 14px; }
body .claro .srv, body .claro .mentor, body .claro .plan, body .claro .work { box-shadow: 0 16px 36px -28px color-mix(in srgb, var(--cream) 55%, transparent); }

/* Hero con muestras de diseño */
body.pd-con-elementor .hero.e-con { --min-height: min(100svh, 780px); --flex-direction: column; --align-items: center; --justify-content: center; --padding-top: 118px; --padding-bottom: 76px; --padding-left: 20px; --padding-right: 20px; background-image: radial-gradient(60% 70% at 88% 20%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%); }
.hero.e-con::after { display: none; }
body.pd-con-elementor .hero-grid.e-con { display: grid; grid-template-columns: 1.08fr .92fr; --column-gap: clamp(30px, 5vw, 72px); --row-gap: 44px; align-items: center; --width: min(1180px, 100%); max-width: none; }
body.pd-con-elementor .hero-inner.e-con { --width: 100%; }
body.pd-con-elementor .hero-visual.e-con { display: flex; --flex-direction: column; --width: 100%; --row-gap: 0px; }
.hv { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 26px 50px -24px rgba(0,0,0,.85); transition: transform .4s ease; }
.hv img { display: block; width: 100%; height: auto; }
.hv:hover { transform: translateY(-4px); z-index: 4; }
body.pd-con-elementor .hv1 { width: 86%; z-index: 1; }
body.pd-con-elementor .hv2 { width: 86%; margin-top: -30px; margin-left: 14%; z-index: 2; }
body.pd-con-elementor .hv3 { width: 86%; margin-top: -30px; margin-left: 4%; z-index: 3; }
.hv-nota { padding-top: 12px; text-align: right; font-size: .76rem; color: var(--cream-3); }

/* Franja */
.franja.e-con { border-block: 1px solid var(--line); }
.franja-item p { font-weight: 600; color: var(--cream); }
.franja-item p::before { width: 18px; height: 18px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; border-radius: 0; }

/* Íconos, servicios y compromisos */
.pd-ic .elementor-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; font-size: 22px; color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.pd-ic .elementor-icon svg { width: 1em; height: 1em; fill: currentColor; }
.pd-ic .elementor-icon i { color: inherit; }
.pd-ic .elementor-icon-wrapper { text-align: left; line-height: 0; }
.srv { transition: transform .25s, box-shadow .25s, border-color .25s; }
.srv:hover { transform: translateY(-4px); border-color: var(--gold); }
.srv h3 { font: 700 1.25rem var(--serif); letter-spacing: -.01em; }
body.pd-con-elementor .srv.e-con { --row-gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.srv .srv-mas .elementor-heading-title { font-weight: 700; }
body.pd-con-elementor .com.e-con { border-top: 0; --padding-top: 0px; --row-gap: 10px; }
.com h3 { font: 700 1.08rem var(--serif); margin: 4px 0 0; }

/* Pasos */
.step-n { font: 800 1rem var(--serif); color: var(--bg); -webkit-text-stroke: 0; line-height: 1; }
body.pd-con-elementor .step-n.elementor-widget { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); }
body.pd-con-elementor .step-n .elementor-heading-title { color: var(--bg); -webkit-text-stroke: 0; }
.step h3 { font: 700 1.2rem var(--serif); margin: 22px 0 8px; }
body.pd-con-elementor .step.e-con { --min-height: 0px; border: 1px solid var(--line); border-radius: var(--r); }
.plan h3 { font: 700 1.25rem/1.2 var(--serif); letter-spacing: -.01em; }
.plan-price strong { font: 800 2.15rem/1.1 var(--serif); letter-spacing: -.02em; }
.hero-price strong { font-weight: 800; letter-spacing: -.02em; }
.choose h3, .mentor h3 { font: 700 1.15rem var(--serif); }
.price { font-weight: 800; }
.faq summary { font: 600 1.05rem var(--serif); }
body.pd-con-elementor .mentor.e-con { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
body.pd-con-elementor .step.e-con { background: var(--bg-2); }

/* Páginas interiores */
.page-head { padding: 130px 0 56px; }
body.pd-con-elementor .page-head.e-con { --padding-top: 124px; --padding-bottom: 52px; background-image: radial-gradient(50% 120% at 90% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%); }
body:not(.pd-con-elementor) .prose, body:not(.pd-con-elementor) .contacto { padding-top: 54px; }
body.pd-con-elementor .pagina-cuerpo.e-con { --padding-top: clamp(50px, 6vw, 80px); --padding-bottom: clamp(60px, 7vw, 96px); }
.prose h2 { margin-top: 1.5em; font: 700 1.35rem var(--serif); letter-spacing: -.01em; }
.prose.elementor-widget { padding-bottom: 0; }
.prose .lead { font: 600 1.2rem/1.5 var(--serif); }
body.pd-con-elementor .dos-col.e-con { display: grid; grid-template-columns: 1.15fr .85fr; --column-gap: clamp(30px, 6vw, 70px); --row-gap: 30px; align-items: start; }
body.pd-con-elementor .contacto.e-con { display: grid; grid-template-columns: .8fr 1.2fr; --column-gap: clamp(30px, 6vw, 70px); --row-gap: 30px; align-items: start; padding-bottom: 0; }
.contacto-form .rc-form fieldset { background: var(--bg-2); }
.rc-form input:not([type=radio]):not([type=checkbox]), .rc-form select, .rc-form textarea { color: var(--cream); }

@media (max-width: 960px) {
  body.pd-con-elementor .hero-grid.e-con, body.pd-con-elementor .dos-col.e-con, body.pd-con-elementor .contacto.e-con { grid-template-columns: 1fr; }
  body.pd-con-elementor .hero.e-con { --min-height: 0px; --padding-top: 104px; --padding-bottom: 56px; }
  body.pd-con-elementor .hv3 { display: none; }
  .hv-nota { text-align: left; }
}

/* Ajustes del rediseño */
.hero-title { font-size: clamp(2.1rem, 3.75vw, 3.4rem); }
body.pd-con-elementor .hero-grid.e-con { grid-template-columns: 1.22fr .78fr; }
body.pd-con-elementor .hero-visual.e-con { --row-gap: 12px; }
body.pd-con-elementor .hv1, body.pd-con-elementor .hv2, body.pd-con-elementor .hv3 { width: 88%; margin-top: 0; }
body.pd-con-elementor .hv1 { margin-left: 0; }
body.pd-con-elementor .hv2 { margin-left: 12%; }
body.pd-con-elementor .hv3 { margin-left: 4%; }
body.pd-con-elementor .pd-ic.elementor-widget { width: auto; align-self: flex-start; text-align: left; }
.final .section-title, .final .section-title .elementor-heading-title { width: 100%; text-align: center; }
body.pd-con-elementor .final .pd-btn { width: 100%; }
@media (max-width: 960px) {
  body.pd-con-elementor .hero-grid.e-con { grid-template-columns: minmax(0, 1fr); }
  body.pd-con-elementor .hv1, body.pd-con-elementor .hv2 { width: 100%; margin-left: 0; }
  .hero-title { font-size: clamp(2.1rem, 8.6vw, 3.2rem); }
}
.rc-form legend { font: 700 1.1rem/1.25 var(--serif); }

/* Letras de acento: se cambian en Elementor > Ajustes del sitio > Fuentes globales */
.hero-title em, .section-title em { font-family: var(--e-global-typography-accent-font-family, inherit); font-weight: var(--e-global-typography-accent-font-weight, 800); letter-spacing: 0; }
.kicker, .kicker .elementor-heading-title { font-family: var(--e-global-typography-secondary-font-family, var(--sans)); }
.srv h3, .com h3, .step h3, .mentor h3, .choose h3, .plan h3 { font-family: var(--e-global-typography-secondary-font-family, var(--serif)); }
.plan-price strong, .hero-price strong, .price, .price .elementor-heading-title, .faq summary, .step-n, body.pd-con-elementor .step-n .elementor-heading-title { font-family: var(--sans); }
body.pd-letra-manuscrita .hero-title { font-size: clamp(2.8rem, 5.2vw, 4.7rem); line-height: 1.02; letter-spacing: 0; }
body.pd-letra-manuscrita .section-title, body.pd-letra-manuscrita .pd-h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: 0; }
body.pd-letra-manuscrita .hero-title em, body.pd-letra-manuscrita .section-title em { line-height: 1.15; }
body.pd-letra-manuscrita .kicker { font-size: 1.35rem; letter-spacing: .06em; text-transform: none; }
body.pd-letra-manuscrita .srv h3, body.pd-letra-manuscrita .com h3, body.pd-letra-manuscrita .step h3, body.pd-letra-manuscrita .mentor h3, body.pd-letra-manuscrita .choose h3, body.pd-letra-manuscrita .plan h3 { font-size: 1.75rem; line-height: 1.1; letter-spacing: .01em; }

/* Mejoras de la lista */
.plan-price { min-height: 118px; }
.plan-price .plan-renov { color: var(--cream-2); font-weight: 600; }
.chat-fab::after { content: attr(data-t); }
.nav-sub { position: relative; }
.nav-sub > a::after { content: ' ▾'; font-size: .8em; }
.nav-sub-menu { position: absolute; top: 100%; left: -16px; min-width: 200px; margin-top: 8px; padding: 8px; display: grid; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 22px 44px -22px rgba(0,0,0,.85); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.nav-sub::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-sub:hover .nav-sub-menu, .nav-sub:focus-within .nav-sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-sub-menu a { padding: 9px 12px; border-radius: 8px; white-space: nowrap; }
.nav-sub-menu a:hover { background: var(--bg-3); }
.nosotros-foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.nosotros-foto figcaption, .nosotros-foto .widget-image-caption { margin-top: 10px; font-size: .88rem; color: var(--cream-3); text-align: left; }
@media (max-width: 900px) {
  .nav-sub { display: grid; justify-items: center; gap: 8px; }
  .nav-sub > a::after { content: ''; }
  .nav-sub-menu { position: static; min-width: 0; margin: 0; padding: 0; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; justify-items: center; font-size: 1rem; font-family: var(--sans); color: var(--cream-3); }
  .nav-sub-menu a { padding: 3px 8px; }
  .plan-price { min-height: 0; }
}
@media (max-width: 520px) { .chat-fab::after { content: none; } }
.prose .lead { font-family: var(--sans); font-weight: 500; }
body.pd-letra-manuscrita .prose h2 { font-size: 1.9rem; line-height: 1.15; letter-spacing: 0; }
body.pd-letra-manuscrita .rc-form legend { font-size: 1.5rem; }

/* Portafolio de cuatro */
.works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .works { grid-template-columns: 1fr; } }
