/*
Theme Name: HdB · Editorial
Description: Comparativa, carta, prensa y movimiento para el tema HdB existente.
Template: hdb
Version: 0.8.2
Text Domain: hdb-editorial
*/
:root{--ed-wine:#b0003a;--ed-warm:#faeae0;--ed-ink:#262229;--ed-line:#e9d9d9}
.hdb-enter{animation:none!important}
/* Speech-bubble shape: no positional shift on hover or focus. */
.hdb-form-cta.hdb-form-cta,.hdb-header-cta,.ed-button{border-radius:28px 28px 28px 5px!important;transition:border-radius .25s ease,background-color .25s ease,color .25s ease!important}
.hdb-form-cta.hdb-form-cta:focus-visible,.ed-button:focus-visible{outline:3px solid var(--ed-wine);outline-offset:5px}
@media(hover:hover){.hdb-form-cta.hdb-form-cta:hover,.hdb-header-cta:hover,.ed-button:hover{border-radius:28px 28px 5px 28px!important;background:#892137!important;color:white!important}}
.ed-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:13px 24px;text-decoration:none!important;background:var(--ed-warm);color:var(--ed-wine)!important;font-weight:600}
.ed-button:hover,.ed-button:focus-visible{background:var(--ed-wine)!important;color:white!important;border-radius:28px 28px 5px 28px!important}
.ed-kicker{display:block;color:var(--ed-wine)!important;letter-spacing:.13em;text-transform:uppercase;font-size:12px!important;font-weight:600!important;margin-bottom:16px!important}
.hdb-home .ed-service-list,.hdb-services-page .ed-service-list{list-style:none;padding:0;margin:20px 0 28px;font-size:16px;line-height:1.6}
.ed-service-list li{position:relative;padding-left:21px;margin:10px 0}
.ed-service-list li:before{content:'';position:absolute;left:0;top:.6em;width:8px;height:8px;border-radius:5px 5px 5px 1px;background:var(--ed-wine)}
.ed-comparison{margin:32px auto 0;padding:clamp(22px,4vw,48px);background:#fff;border:1px solid var(--ed-line);border-radius:32px 32px 8px 32px}
.ed-comparison summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:48px;font-size:clamp(20px,2.4vw,30px);color:var(--ed-ink)}
.ed-comparison summary::-webkit-details-marker{display:none}.ed-comparison summary:after{content:'+';color:var(--ed-wine);font-size:30px}.ed-comparison[open] summary:after{content:'−'}
.ed-comparison summary:focus-visible{outline:3px solid var(--ed-wine);outline-offset:8px}
.ed-comparison table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.5;margin-top:28px;table-layout:fixed}
.ed-comparison caption{text-align:left;font-size:16px;margin-bottom:20px;color:#534949}
.ed-comparison th,.ed-comparison td{padding:20px 16px;border-bottom:1px solid var(--ed-line);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.ed-comparison thead th{color:var(--ed-wine);font-size:17px;background:#fff7f3;font-weight:600}
.ed-comparison tbody th{font-weight:500;width:25%}.ed-comparison tbody tr:last-child td{font-size:23px;color:var(--ed-wine)}
.ed-common{margin-top:24px;padding:24px;background:#fff7f3;border-radius:16px;font-size:16px;line-height:1.6}.ed-common p:last-child{margin-bottom:0}
.ed-note{font-size:14px!important;line-height:1.6!important;color:#534949;margin:18px 0 0!important}
/* Own story, with the material quality of a letter. */
.hdb-story-page #antes-de-hdb{padding:clamp(24px,5vw,64px);background:var(--ed-warm)}
.hdb-story-page #antes-de-hdb .hdb-story-reading{max-width:840px!important;padding:clamp(24px,5vw,60px)!important;margin:auto;background:#fff;border:1px solid #eee0da;border-radius:6px 30px 30px 30px;box-shadow:0 18px 42px #67443b0d;position:relative}
.hdb-story-page #antes-de-hdb .hdb-story-reading:after{content:'';position:absolute;right:10px;bottom:-7px;left:10px;height:12px;background:#fff;border:1px solid #eee0da;border-top:0;border-radius:0 0 24px 24px;z-index:-1}
.hdb-story-page #antes-de-hdb p{max-width:65ch;line-height:1.85!important}
.hdb-story-page #antes-de-hdb h2+p:first-letter{float:left;color:var(--ed-wine);font-size:58px;line-height:1;margin:6px 10px 0 0}
.ed-signature{margin-top:30px;padding-top:22px;border-top:1px solid var(--ed-line)}.ed-signature strong{display:block;font-size:26px;font-weight:500;color:var(--ed-wine)}.ed-signature span{font-size:14px;color:#534949}
.ed-press{position:relative;max-width:960px;margin:52px auto 24px;padding:clamp(26px,4vw,48px);background:#fffdf9;border:1px solid #e9dfd4;box-shadow:0 12px 32px #4533260b;border-radius:3px}
.ed-press:before{content:'';position:absolute;top:-13px;left:calc(50% - 48px);width:96px;height:28px;background:#e8b69ec9;transform:rotate(-3deg)}
.ed-press .ed-kicker{padding-bottom:16px;border-bottom:3px double #d8c4bb}.ed-press h3{max-width:32ch;font-size:clamp(24px,3vw,34px)!important;line-height:1.25}.ed-press p{max-width:60ch}.ed-press a{min-height:44px;display:inline-flex;align-items:center}
/* The image is a scene, not a card which shrinks to a thumbnail. */
.hdb-home .ed-scene{height:auto;margin:0;position:relative}.hdb-home .ed-stage{overflow:hidden}
.hdb-home .ed-photo{margin:0!important;max-width:none!important;width:100%!important;border:0!important;padding:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important}
.hdb-home .ed-photo img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:0}
.hdb-home .ed-scene.ed-motion{height:140svh}.hdb-home .ed-motion .ed-stage{position:sticky;top:var(--ed-top,80px);height:80svh}
.hdb-home .ed-motion .ed-photo{height:100%}.hdb-home .ed-motion img{height:100%;aspect-ratio:auto;transform:scale(var(--ed-zoom,1));will-change:transform;object-position:50% 50%}
.hdb-home .ed-motion+.hdb-work{position:relative;z-index:2;margin-top:-20svh;padding-top:24px;border-radius:36px 36px 0 0;background:#fff}
.hdb-home .ed-motion+.hdb-work .hdb-work-intro h2{margin-bottom:24px}
@media(max-width:760px){.ed-comparison{padding:22px 18px}.ed-comparison thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.ed-comparison table,.ed-comparison tbody,.ed-comparison tr{display:block}.ed-comparison tr{padding:16px 0;border-bottom:1px solid var(--ed-line)}.ed-comparison th,.ed-comparison td{display:block;width:auto!important;border:0;padding:7px 0}.ed-comparison tbody th{font-size:18px;margin-bottom:8px}.ed-comparison td:before{content:attr(data-label);display:block;font-size:12px;letter-spacing:.03em;color:var(--ed-wine);font-weight:600;margin-bottom:2px}.ed-comparison tbody tr:last-child td{font-size:19px}.hdb-home .ed-scene.ed-motion{height:120svh}.hdb-home .ed-motion .ed-stage{height:75svh}.hdb-home .ed-motion+.hdb-work{margin-top:-18svh;border-radius:26px 26px 0 0}.ed-press{margin-top:40px}.hdb-story-page #antes-de-hdb{padding:24px 16px}}
/* A restrained opacity reveal, only for below-the-fold groups. */
.ed-reveal{transition:opacity .7s ease}.ed-reveal.ed-wait{opacity:.08}.ed-reveal:focus-within{opacity:1!important}
@media(prefers-reduced-motion:reduce){.ed-reveal,.ed-wait{opacity:1!important;transition:none!important}.hdb-form-cta,.ed-button{transition:none!important}.hdb-home .ed-scene.ed-motion{height:auto}.hdb-home .ed-motion .ed-stage{position:static;height:auto}.hdb-home .ed-motion img{transform:none;height:auto}.hdb-home .ed-motion+.hdb-work{margin-top:0}}
@media print{.ed-wait{opacity:1!important}.hdb-home .ed-scene.ed-motion{height:auto}.hdb-home .ed-motion .ed-stage{position:static;height:auto}.hdb-home .ed-motion img{transform:none;height:auto}.hdb-home .ed-motion+.hdb-work{margin-top:0}.ed-comparison{break-inside:avoid}}

.hdb-form-cta.ed-button.hdb-form-cta{background:var(--ed-warm)!important;color:var(--ed-wine)!important}.hdb-form-cta.ed-button.hdb-form-cta:hover,.hdb-form-cta.ed-button.hdb-form-cta:focus-visible{background:var(--ed-wine)!important;color:white!important}
.hdb-home ul.ed-service-list>li,.hdb-services-page ul.ed-service-list>li{padding-left:22px!important;list-style:none;position:relative}
.hdb-home ul.ed-service-list>li:before,.hdb-services-page ul.ed-service-list>li:before{left:0!important;top:.6em!important;width:8px;height:8px;content:''}
@media(max-width:760px){.ed-comparison caption{display:block;width:100%;max-width:none}}

.ed-context-comparison{padding-block:32px}
.ed-comparison .ed-current{background:#fff4ed}
.ed-current-label{display:block;margin-top:8px;font-size:12px;font-weight:400}
.ed-comparison tbody tr:last-child td{font-size:15px;color:inherit}
.ed-alternatives{display:flex;gap:24px;flex-wrap:wrap;margin-top:24px}.ed-alternatives a{min-height:44px;display:inline-flex;align-items:center;color:#b0003a}
/* 0.8.2: short paths to consultation, optional depth and unobstructed mobile forms. */
.ed-contact-hint{font-size:14px!important;line-height:1.5!important;max-width:42ch;margin:12px 0 0!important}
.ed-consult{background:var(--ed-wine)!important;color:white!important}
.ed-compare-picker{display:none;margin-top:24px;gap:10px;align-items:center}
.ed-compare-picker select{font:inherit;max-width:100%;min-height:48px;border:1px solid var(--ed-line);border-radius:8px;background:white;padding:10px;color:var(--ed-ink)}
.ed-comparison [hidden]{display:none!important}
.ed-context-comparison>h2{margin-bottom:16px}.ed-comparison-intro{max-width:65ch;line-height:1.65}
.ed-service-detail{border-block:1px solid var(--ed-line);padding:20px 0}
.ed-service-detail>summary{cursor:pointer;font-size:clamp(20px,2.4vw,28px);line-height:1.4;min-height:44px;color:var(--ed-ink)}
.ed-service-detail[open]>summary{margin-bottom:24px}
.ed-service-detail>summary:focus-visible{outline:3px solid var(--ed-wine);outline-offset:6px}
#comparar-servicios{scroll-margin-top:120px}
#hdb-floating-whatsapp[hidden]{display:none!important}
@media(max-width:760px){
 .ed-compare-picker{display:flex;flex-direction:column;align-items:stretch}
 .ed-context-comparison{padding-block:24px}.ed-comparison{margin-top:20px}
 .ed-comparison summary{font-size:19px;gap:12px}
 #hdb-floating-whatsapp{width:52px!important;height:52px!important;min-width:52px!important;padding:13px!important;justify-content:center!important;bottom:calc(14px + env(safe-area-inset-bottom))!important;right:14px!important}
 #hdb-floating-whatsapp span{display:none!important}
 #hdb-floating-whatsapp svg{width:26px!important;height:26px!important;flex-shrink:0}
 .ed-service-detail{padding:16px 0}
}
@media print{.ed-compare-picker{display:none!important}}
.hdb-hero-links:has(.ed-consult),.hdb-actions:has(.ed-consult){display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.hdb-form-cta.ed-secondary.hdb-form-cta{background:transparent!important;color:var(--ed-wine)!important;border:0!important;box-shadow:none!important;padding:10px 0!important;text-decoration:underline!important;border-radius:0!important;font-weight:400!important}

/* 0.8.2 — hierarchy, shorter scenes and immediate interaction. */
:root{--ed-wine:#892137}
:root .hdb-home .hdb-hero{background:#fffaf6;overflow:hidden;max-width:90rem}
:root .hdb-home #hdb-title{font-size:clamp(.95rem,1.4vw,1.15rem)!important;line-height:1.5!important;letter-spacing:.02em;color:var(--ed-wine);margin-bottom:20px}
:root .hdb-home .hdb-hero .hdb-claim{font-size:clamp(2.15rem,4.6vw,4.25rem)!important;line-height:1.08;letter-spacing:-.045em;max-width:19ch;margin-bottom:24px}
:root .hdb-home .hdb-hero-description{max-width:43ch;font-size:1.05rem;line-height:1.7}
:root .hdb-home .hdb-hero-copy{padding-block:clamp(30px,5vw,76px)}
:root .hdb-home .hdb-hero-photo.hdb-photo-frame{border:0;padding:0;box-shadow:none;border-radius:100px 8px 8px 8px;overflow:hidden}
:root .hdb-home .hdb-hero-photo img{border-radius:0;aspect-ratio:4/5;object-position:50% 40%}
:root .hdb-home .hdb-service-grid{gap:20px}
:root .hdb-home .hdb-service{padding:26px!important;border:1px solid var(--ed-line)!important;border-radius:26px 26px 6px 26px;background:#fffaf6;min-width:0}
:root .hdb-home .hdb-service:nth-child(2){background:#fff}
:root .hdb-home .hdb-service .ed-situation{font-size:clamp(1.4rem,2.2vw,1.85rem);line-height:1.22;letter-spacing:-.025em;color:var(--ed-ink);margin:0 0 20px;max-width:22ch}
:root .hdb-home .hdb-service h3{font-size:1rem!important;min-height:0!important;color:var(--ed-wine);margin:0 0 16px}
:root .hdb-home .hdb-service-footer{padding-top:22px}
:root .hdb-home .hdb-service .ed-service-list{font-size:.96rem;margin:12px 0 18px}
:root .ed-mobile-service{border:0}
:root .ed-mobile-service>summary{cursor:pointer;min-height:44px;align-items:center;justify-content:space-between;gap:16px;font-size:.95rem;color:var(--ed-wine)}
:root .hdb-home .hdb-work{background:var(--ed-wine)!important;color:#fff;border-radius:0!important}
:root .hdb-home .hdb-work h2,:root .hdb-home .hdb-work h3,:root .hdb-home .hdb-work p{color:#fff}
:root .hdb-home .hdb-work .hdb-pad{padding-block:clamp(36px,5vw,64px)}
:root .hdb-home .hdb-work-detail{border-color:#ffffff40;margin-bottom:22px}
:root .hdb-home .hdb-work-detail:last-child{margin-bottom:0}
:root .hdb-home .hdb-work-intro h2{font-size:clamp(1.8rem,3vw,2.8rem);max-width:21ch;line-height:1.15}
:root .hdb-home .hdb-person{padding-block:clamp(40px,7vw,90px);gap:clamp(24px,5vw,70px)}
:root .hdb-home .hdb-start{background:#fff7f1}
:root .hdb-home .hdb-start-list>li{border-top:2px solid #d9a8b3;padding-top:22px}
:root .hdb-home .ed-scene.ed-motion{height:88svh}
:root .hdb-home .ed-motion .ed-stage{height:70svh}
:root .hdb-home .ed-motion+.hdb-work{margin-top:-5svh}
:root .ed-reveal{transition:opacity .3s ease,transform .3s ease;transform:translateY(0)}
:root .ed-reveal.ed-wait{opacity:.55;transform:translateY(10px)}
:root .ed-reveal:focus-within{transform:none!important}
:root .hdb-form-cta.hdb-form-cta,:root .ed-button,:root .hdb-service-footer>a{transition:background-color .18s ease,color .18s ease,transform .15s ease,box-shadow .18s ease!important}
:root .hdb-form-cta.hdb-form-cta,:root .ed-button{border-radius:28px 28px 28px 5px!important}
@media(hover:hover){:root .hdb-form-cta.hdb-form-cta:hover,:root .ed-button:hover{border-radius:28px 28px 28px 5px!important;box-shadow:0 6px 18px #89213722;transform:translateY(-2px)}:root .hdb-service-footer>a:hover{color:#68172a!important;text-decoration-thickness:2px!important}}
:root .hdb-form-cta.hdb-form-cta:active,:root .ed-button:active,:root .hdb-service-footer>a:active{transform:translateY(1px) scale(.985);box-shadow:none}
:root .hdb-home a:focus-visible,:root main summary:focus-visible,:root main select:focus-visible{outline:3px solid var(--ed-wine);outline-offset:5px}
:root .hdb-work a:focus-visible{outline-color:#fff}
:root .hdb-faq details{border:1px solid var(--ed-line);border-radius:12px;margin:12px 0;padding:0 20px;background:#fff;transition:background-color .18s,border-color .18s}
:root .hdb-faq details[open],:root .ed-service-detail[open]{background:#fff7f1;border-color:#bb7888}
:root .hdb-faq summary,:root .ed-service-detail>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:60px;padding:14px 0;list-style:none;cursor:pointer;line-height:1.45}
:root .hdb-faq summary::-webkit-details-marker,:root .ed-service-detail>summary::-webkit-details-marker,:root .ed-mobile-service>summary::-webkit-details-marker{display:none}
:root .hdb-faq summary::after,:root .ed-service-detail>summary::after,:root .ed-mobile-service>summary::after{content:'+';flex:none;font-size:26px;color:var(--ed-wine)}
:root .hdb-faq details[open]>summary::after,:root .ed-service-detail[open]>summary::after,:root .ed-mobile-service[open]>summary::after{content:'−'}
:root .hdb-faq details p{margin:0;padding:0 0 20px;max-width:72ch;line-height:1.7}
:root .ed-service-detail[open]{padding-inline:18px;border-radius:12px}
:root .ed-disclosure-body{min-width:0}
:root #hdb-servicios{scroll-margin-top:100px}
@media(min-width:761px){:root .ed-mobile-service>summary{display:none}:root .ed-mobile-service:not([open])>.ed-service-list,:root .ed-mobile-service:not([open])>.ed-disclosure-body{display:block;content-visibility:visible}:root .ed-mobile-service::details-content{display:block;content-visibility:visible}}
@media(max-width:760px){
 :root .hdb-home .hdb-hero-photo.hdb-photo-frame{max-width:100%;margin-bottom:28px;border-radius:70px 6px 6px 6px}
 :root .hdb-home .hdb-hero-photo img{aspect-ratio:4/3}
 :root .hdb-home .hdb-service{padding:22px!important}
 :root .ed-mobile-service>summary{display:flex}
 :root .hdb-home .ed-scene.ed-motion{height:auto}
 :root .hdb-home .ed-motion .ed-stage{position:relative;top:auto;height:auto}
 :root .hdb-home .ed-motion .ed-photo img{height:auto;aspect-ratio:4/3;transform:none;will-change:auto}
 :root .hdb-home .ed-motion+.hdb-work{margin-top:0}
 :root .hdb-faq details{padding-inline:16px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:0s!important;transition-duration:0s!important}:root .ed-reveal,:root .ed-reveal.ed-wait{opacity:1!important;transform:none!important}:root .hdb-home .ed-scene.ed-motion{height:auto}:root .hdb-home .ed-motion .ed-stage{position:static;height:auto}:root .hdb-home .ed-motion+.hdb-work{margin-top:0}}
@media print{:root .ed-reveal.ed-wait{opacity:1;transform:none}:root .hdb-home .hdb-work{background:white!important}:root .hdb-home .hdb-work h2,:root .hdb-home .hdb-work h3,:root .hdb-home .hdb-work p{color:black}:root .hdb-faq details::details-content,:root .ed-mobile-service::details-content{display:block;content-visibility:visible}}
/* Override page-local parent rules, including its positioned FAQ icons. */
:root .hdb-faq.hdb-faq.hdb-faq details{border:1px solid var(--ed-line);border-radius:12px;margin:12px 0;padding:0 20px;background:#fff}
:root .hdb-faq.hdb-faq.hdb-faq details[open]{background:#fff7f1;border-color:#bb7888}
:root .hdb-faq.hdb-faq.hdb-faq summary{display:flex;position:relative;align-items:center;justify-content:space-between;gap:18px;min-height:60px;padding:14px 0;list-style:none}
:root .hdb-faq.hdb-faq.hdb-faq summary::after{position:static;top:auto;right:auto;content:'+';flex:none;font-size:26px;color:var(--ed-wine)}
:root .hdb-faq.hdb-faq.hdb-faq details[open]>summary::after{content:'−'}
:root .hdb-faq.hdb-faq.hdb-faq details p{margin:0;padding:0 0 20px;line-height:1.7}
@media(max-width:760px){:root .hdb-faq.hdb-faq.hdb-faq details{padding-inline:16px}}
@media(prefers-reduced-motion:reduce){:root .hdb-form-cta.hdb-form-cta:hover,:root .hdb-form-cta.hdb-form-cta:active,:root .ed-button:hover,:root .ed-button:active,:root .hdb-service-footer>a:active{transform:none!important}}

/* Conditions have a stable destination for direct arrivals from service pages. */
:root #ed-condiciones-servicios,:root #ed-cambios-fecha{scroll-margin-top:110px}
:root .ed-faq-followup a{display:inline-flex;align-items:center;min-height:44px;color:var(--ed-wine);text-underline-offset:.2em}
:root .ed-faq-followup a:focus-visible{outline:3px solid var(--ed-wine);outline-offset:4px}
