/*
Theme Name: Dreams House (clásico)
Theme URI: https://dreamshouse33.com
Author: Agencia TwoArt
Author URI: https://agenciatwoart.com
Description: Tema clásico de Dreams House. Toda la página está en el código y se edita desde Apariencia → Editor de archivos de temas. Página: front-page.php · Textos de cada idioma: carpeta /idiomas · Diseño: este archivo (style.css) · Animaciones, carrusel y videos: assets/js/theme.js.
Version: 2.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dreamshouse-clasico
*/

/* ==========================================================================
   ÍNDICE
   1. Tipografías            6. Por qué elegir          11. Pie de página
   2. Base                   7. Secciones 2 columnas    12. Ventana de video
   3. Encabezado             8. Sustentabilidad         13. Animaciones
   4. Menú del celular       9. Portafolio              14. Páginas internas
   5. Portada               10. Selector de idioma     15. Botón de WhatsApp
   Tamaños: celular primero; @media (min-width: 640px / 768px / 1024px) = pantallas más grandes.
   ========================================================================== */

/* 1. TIPOGRAFÍAS ----------------------------------------------------------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/lato-latin-700-normal.woff2") format("woff2"); }

:root {
	--dh-serif: "Playfair Display", serif;
	--dh-lato: "Lato", sans-serif;
	--dh-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	--dh-slate-50: #f8fafc; --dh-slate-100: #f1f5f9; --dh-slate-200: #e2e8f0; --dh-slate-300: #cbd5e1; --dh-slate-400: #94a3b8;
	--dh-slate-500: #64748b; --dh-slate-600: #475569; --dh-slate-700: #334155; --dh-slate-800: #1e293b; --dh-slate-900: #0f172a;
	--dh-gray-400: #9ca3af; --dh-gray-500: #6b7280;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; border: 0 solid #e5e7eb; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--dh-sans); color: #020617; background: #fff; overflow-x: hidden; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
hr { height: 0; color: inherit; border-top-width: 1px; }
.dh-main { min-height: 100vh; background: #fff; overflow-x: hidden; max-width: 100vw; }
@media (min-width: 768px) { .dh-solo-celular { display: none !important; } }
@media (max-width: 767px) { .dh-solo-compu { display: none !important; } }

/* 3. ENCABEZADO ------------------------------------------------------------ */
.dh-header {
	position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; width: 100%; z-index: 50;
	padding: 1rem; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
@media (max-width: 600px) { .admin-bar .dh-header { top: 0; } }
.dh-header__inner { max-width: 80rem; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.dh-header__logo { display: flex; align-items: center; }
.dh-header__logo img { height: 3rem; width: auto; }
.dh-menu { display: none; }
.dh-menu__link {
	position: relative; padding: .5rem 0; color: var(--dh-slate-600); font-family: var(--dh-lato); font-weight: 300;
	font-size: 1rem; line-height: 1.5rem; transition: color .15s cubic-bezier(.4, 0, .2, 1);
}
.dh-menu__link + .dh-menu__link { margin-left: 2rem; }
.dh-menu__link:hover { color: var(--dh-slate-800); }
.dh-menu__bar { position: absolute; bottom: 0; right: 0; width: 0; height: 1.5px; background: var(--dh-slate-800); transition: all .3s cubic-bezier(.4, 0, .2, 1); }
.dh-menu__link:hover .dh-menu__bar { width: 100%; }
.dh-header__lang { display: none; margin-right: 1rem; }
.dh-header__mobile { display: flex; align-items: center; }
.dh-header__lang-m { margin-right: 1rem; }
.dh-burger { padding: .5rem; color: var(--dh-slate-600); transition: color .15s; }
.dh-burger:hover { color: var(--dh-slate-800); }
.dh-burger svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 768px) {
	.dh-header { padding: 1rem 1.5rem; }
	.dh-menu { display: flex; }
	.dh-header__lang { display: block; }
	.dh-header__mobile { display: none; }
}

/* 4. MENÚ DEL CELULAR ------------------------------------------------------ */
.dh-modal {
	position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column;
	opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.dh-modal.is-open { opacity: 1; visibility: visible; }
.dh-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid var(--dh-slate-200); }
.dh-modal__head img { height: 3rem; width: auto; object-fit: contain; }
.dh-modal__close { padding: .5rem; color: var(--dh-slate-600); }
.dh-modal__close svg { width: 1.5rem; height: 1.5rem; }
.dh-modal__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 1.5rem; }
.dh-modal__link {
	display: block; width: 100%; text-align: left; font-size: 1.5rem; line-height: 2rem; font-weight: 300;
	color: var(--dh-slate-800); padding: .75rem 0; border-bottom: 1px solid var(--dh-slate-100);
	opacity: 0; transform: translateX(-20px);
}
.dh-modal__link + .dh-modal__link { margin-top: 2rem; }
.dh-modal__link:hover { color: var(--dh-slate-600); }
.dh-modal.is-open .dh-modal__link {
	opacity: 1; transform: none;
	transition: opacity .4s ease-out, transform .4s ease-out, color .15s;
	transition-delay: calc(.1s + var(--i) * .07s), calc(.1s + var(--i) * .07s), 0s;
}
.dh-modal__foot { padding: 1.5rem; border-top: 1px solid var(--dh-slate-200); }
.dh-modal__foot p { text-align: center; font-size: .875rem; line-height: 1.25rem; color: var(--dh-slate-500); }
html.dh-bloqueo { overflow: hidden; }
@media (min-width: 768px) { .dh-modal { display: none; } }

/* 5. PORTADA --------------------------------------------------------------- */
.dh-hero {
	position: relative; height: 95vh; display: flex; align-items: center; justify-content: center;
	overflow: hidden; padding: 6rem 2rem 0; background: var(--dh-slate-200);
}
.dh-hero__slides { position: absolute; inset: 0; overflow: hidden; }
.dh-hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.dh-hero__slide.is-active { opacity: 1; }
html:not(.dh-js) .dh-hero__slide:first-child { opacity: 1; }
.dh-hero__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); }
.dh-hero__content { position: relative; z-index: 10; text-align: center; color: #fff; }
.dh-hero__logo { margin-bottom: 1.5rem; display: flex; justify-content: center; }
.dh-hero__logo img { height: 4rem; width: auto; }
.dh-hero__text { font-family: var(--dh-serif); font-weight: 300; letter-spacing: .1em; line-height: 1; margin: 0 auto; font-size: 20px; }
.dh-hero__text.dh-solo-compu { font-size: 27px; }
@media (min-width: 768px) {
	.dh-hero { height: 100vh; padding-top: 7rem; }
	.dh-hero__content { padding: 0 1.5rem; }
	.dh-hero__logo img { height: 6rem; }
	.dh-hero__text, .dh-hero__text.dh-solo-compu { font-size: 1.5rem; line-height: 2rem; margin-bottom: 2rem; }
}

/* 6. POR QUÉ ELEGIR -------------------------------------------------------- */
.dh-why { position: relative; display: flex; align-items: center; justify-content: center; height: 200px; background: var(--dh-slate-200); }
.dh-why__inner { position: relative; z-index: 10; text-align: center; color: var(--dh-slate-900); padding: 0 1rem; }
.dh-rule { width: 5rem; margin: 0 auto 1rem; border-color: var(--dh-gray-500); }
.dh-rule--spaced { margin: 1rem auto 1.5rem; }
.dh-why__kicker { font-family: var(--dh-lato); font-weight: 300; text-transform: uppercase; font-size: 1.125rem; line-height: 1.75rem; margin-bottom: .75rem; }
.dh-why__title { font-family: var(--dh-serif); font-weight: 300; text-transform: uppercase; font-size: 1rem; line-height: 1.25; margin: 0 auto 1.5rem; }
.dh-why-image { width: 100%; background: var(--dh-slate-200); }
.dh-why-image img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
	.dh-why { height: 300px; }
	.dh-why__inner { padding: 0 1.5rem; }
	.dh-why__kicker { font-size: 15px; margin-bottom: 1rem; }
	.dh-why__title { font-size: 37px; margin-bottom: 2rem; }
}

/* 7. SECCIONES A DOS COLUMNAS (Sobre nosotros, Sistema, Estilo de vida) ------ */
.dh-split { padding: 2.5rem 1rem; overflow: hidden; }
.dh-bg-light { background: var(--dh-slate-50); }
.dh-bg-white { background: #fff; }
.dh-split__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.dh-split--about .dh-split__media, .dh-split--life .dh-split__media { order: 2; }
.dh-split--about .dh-split__text, .dh-split--life .dh-split__text { order: 1; }
.dh-split--life .dh-split__text { overflow: hidden; }
.dh-split__media { position: relative; height: 16rem; }
.dh-split__media img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.dh-line { width: 2rem; height: 1px; background: var(--dh-gray-400); margin: 0 auto 1rem; }
.dh-title { font-family: var(--dh-serif); font-weight: 500; color: var(--dh-slate-800); font-size: 1.5rem; line-height: 1.25; text-align: center; margin-bottom: 1rem; }
.dh-title--light { font-weight: 300; font-size: 1.125rem; overflow-wrap: break-word; }
.dh-text { font-family: var(--dh-lato); color: var(--dh-slate-600); font-size: 1rem; line-height: 1.625; text-align: center; margin-bottom: 1.5rem; overflow-wrap: break-word; overflow: hidden; }
.dh-text--life { font-size: .875rem; }
.dh-badges { display: flex; justify-content: center; align-items: center; }
.dh-badges--pair { gap: 2rem; }
.dh-badge { height: 2.5rem; width: auto; object-fit: contain; }
.dh-badge--qh { height: 6rem; }
@media (min-width: 640px) { .dh-line { width: 3rem; margin-bottom: 1.25rem; } }
@media (min-width: 768px) {
	.dh-split { padding: 5rem 3rem; }
	.dh-split__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
	.dh-split--about .dh-split__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.dh-split--about .dh-split__media { grid-column: span 3 / span 3; }
	.dh-split--about .dh-split__text { grid-column: span 2 / span 2; }
	.dh-split--about .dh-split__media, .dh-split--life .dh-split__media { order: 1; height: 100%; }
	.dh-split--about .dh-split__text, .dh-split--life .dh-split__text { order: 2; }
	.dh-split--system .dh-split__media { height: 450px; }
	.dh-line { width: 4rem; margin-bottom: 1.5rem; }
	.dh-title { font-size: 3rem; line-height: 1; text-align: left; margin-bottom: 1.5rem; }
	.dh-text { font-size: 1.125rem; line-height: 1.75rem; text-align: left; }
	.dh-text--about { margin-bottom: 1rem; }
	.dh-text--system { margin-bottom: 3rem; }
	.dh-text--life { margin-bottom: 2.5rem; }
	.dh-badges { justify-content: flex-start; }
	.dh-badges--end { justify-content: flex-end; }
	.dh-badge--qh { height: 7rem; }
	.dh-badges--pair .dh-badge { height: 4rem; }
}
@media (min-width: 1024px) { .dh-line { margin-left: 0; margin-right: 0; } }

/* 8. SUSTENTABILIDAD -------------------------------------------------------- */
.dh-sust {
	position: relative; overflow: hidden; padding: 2.5rem 1rem;
	background-image: linear-gradient(to bottom right, var(--dh-slate-100), #eff6ff, var(--dh-slate-200));
}
.dh-sust__inner { position: relative; z-index: 10; padding: 0 .5rem; }
.dh-sust__head { text-align: center; margin-bottom: 2rem; }
.dh-section-title { font-family: var(--dh-serif); font-weight: 300; color: var(--dh-slate-800); font-size: 1.5rem; line-height: 2rem; }
.dh-section-title--wide { text-transform: uppercase; letter-spacing: .05em; }
.dh-section-title--pf { margin-bottom: 1rem; }
.dh-sust__subtitle { font-family: var(--dh-lato); color: var(--dh-slate-600); font-size: 1rem; line-height: 1.625; max-width: 56rem; margin: 0 auto; padding: 0 1rem; }
.dh-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.dh-card-wrap { width: 100%; max-width: 20rem; }
.dh-card {
	position: relative; overflow: hidden; height: 20rem; border-radius: .5rem; color: #020617;
	background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
	transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.dh-card:hover { transform: scale(1.05); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.dh-card__body { height: 100%; padding: 1.5rem; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.dh-card__icon {
	width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center;
	background-image: linear-gradient(to bottom right, var(--dh-slate-500), var(--dh-slate-600)); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.dh-card:hover .dh-card__icon { transform: scale(1.1); }
.dh-card__icon svg { width: 2rem; height: 2rem; color: #fff; }
.dh-card__title { font-family: var(--dh-serif); font-weight: 600; color: var(--dh-slate-800); font-size: 1.125rem; line-height: 1.75rem; margin-bottom: .75rem; }
.dh-card__line { width: 3rem; height: 2px; background: var(--dh-slate-500); margin: 0 auto .75rem; }
.dh-card__text { font-family: var(--dh-lato); color: var(--dh-slate-600); font-size: .75rem; line-height: 1.625; }
@media (min-width: 768px) {
	.dh-sust { padding: 5rem 1.5rem; }
	.dh-sust__head { margin-bottom: 3.5rem; padding-top: 2rem; }
	.dh-section-title { font-size: 3rem; line-height: 1; }
	.dh-section-title--pf { margin-bottom: 1.5rem; }
	.dh-sust__subtitle { font-size: 1.125rem; line-height: 1.75rem; padding: 0; }
	.dh-cards { gap: 3rem; }
	.dh-card__title { font-size: 1.25rem; }
	.dh-card__text { font-size: .875rem; line-height: 1.25rem; }
}

/* 9. PORTAFOLIO ------------------------------------------------------------- */
.dh-portfolio { padding: 2.5rem 1rem; background: var(--dh-slate-50); }
.dh-portfolio__inner { max-width: 64rem; margin: 0 auto; }
.dh-portfolio__head { text-align: center; margin-bottom: 2rem; }
.dh-portfolio__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.dh-pf-card {
	position: relative; overflow: hidden; border-radius: .5rem; border: 1px solid var(--dh-slate-200);
	background: #fff; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05); transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.dh-pf-card:hover { transform: scale(1.02); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1); }
.dh-pf-card[data-video] { cursor: pointer; }
.dh-pf-card:focus-visible { outline: 2px solid var(--dh-slate-800); outline-offset: 3px; }
.dh-pf-card__img { height: 14rem; background-size: cover; background-position: center; }
.dh-pf-card__title, .dh-pf-card__meta { position: absolute; left: 1rem; padding: .5rem 1rem; color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dh-pf-card__title { top: 1rem; background: rgba(51, 65, 85, .8); }
.dh-pf-card__meta { bottom: 1rem; background: rgba(15, 23, 42, .9); }
.dh-partners-wrap { width: 100%; padding: 0 1rem; }
.dh-partners { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem; max-width: 100%; opacity: .7; }
.dh-partner { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dh-partner img { height: 2.5rem; width: auto; object-fit: contain; }
@media (min-width: 768px) {
	.dh-portfolio { padding: 5rem 1.5rem; }
	.dh-portfolio__head { margin-bottom: 4rem; }
	.dh-portfolio__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
	.dh-pf-card__img { height: 20rem; }
	.dh-partners-wrap { padding: 0 1.5rem; }
	.dh-partners { margin-top: 6rem; margin-bottom: 1rem; justify-content: space-evenly; gap: 3rem; }
	.dh-partner img { height: 4rem; }
}

/* 10. SELECTOR DE IDIOMA ---------------------------------------------------- */
.dh-lang { position: relative; }
.dh-lang__btn {
	display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border: 1px solid var(--dh-slate-300);
	border-radius: .5rem; background: #fff; transition: border-color .15s;
}
.dh-lang__btn:hover { border-color: var(--dh-slate-400); }
.dh-lang__flag { font-size: 1.125rem; line-height: 1.75rem; }
.dh-lang__name { display: none; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--dh-slate-700); }
.dh-lang__chev { width: 1rem; height: 1rem; color: var(--dh-slate-600); transition: transform .15s; }
.dh-lang.is-open .dh-lang__chev { transform: rotate(180deg); }
.dh-lang__menu {
	position: absolute; right: 0; top: 100%; margin-top: .25rem; z-index: 50; min-width: 180px;
	background: #fff; border: 1px solid var(--dh-slate-300); border-radius: .5rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
	opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s, transform .2s, visibility .2s;
}
.dh-lang--up .dh-lang__menu { top: auto; bottom: 100%; margin: 0 0 .25rem; transform: translateY(10px); }
.dh-lang.is-open .dh-lang__menu { opacity: 1; visibility: visible; transform: none; }
.dh-lang__item { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; text-align: left; transition: background-color .15s; }
.dh-lang__item:first-child { border-radius: .5rem .5rem 0 0; }
.dh-lang__item:last-child { border-radius: 0 0 .5rem .5rem; }
.dh-lang__item:hover { background: var(--dh-slate-50); }
.dh-lang__item.is-current { background: var(--dh-slate-100); }
.dh-lang__text { display: block; }
.dh-lang__iname { display: block; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--dh-slate-800); }
.dh-lang__country { display: block; font-size: .75rem; line-height: 1rem; color: var(--dh-slate-500); }
.dh-lang__check { width: 1rem; height: 1rem; color: #059669; margin-left: auto; }
@media (min-width: 768px) { .dh-lang__name { display: block; } }

/* 11. PIE DE PÁGINA ---------------------------------------------------------- */
.dh-footer { background: var(--dh-slate-900); color: #fff; padding: 2rem 1rem; }
.dh-footer__inner { max-width: 80rem; margin: 0 auto; }
.dh-footer__row { display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.dh-footer__brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 2rem; }
.dh-footer__logo { margin-bottom: 1.5rem; }
.dh-footer__logo img { width: 9rem; height: 9rem; object-fit: contain; }
.dh-footer__contact { text-align: center; }
.dh-footer__phone { color: #fff; font-weight: 500; margin-bottom: .25rem; cursor: pointer; }
.dh-footer__link { color: var(--dh-slate-300); margin-bottom: .25rem; cursor: pointer; }
.dh-footer__link:last-child { margin-bottom: 0; }
.dh-footer__credit { margin-top: 2rem; text-align: center; font-size: 13px; color: var(--dh-slate-400); }
.dh-footer__credit a:hover { text-decoration: underline; }
@media (min-width: 768px) {
	.dh-footer { padding: 3rem 1.5rem; }
	.dh-footer__row { flex-direction: row; }
	.dh-footer__brand { align-items: flex-start; margin-bottom: 0; }
	.dh-footer__contact { text-align: left; }
}

/* 12. VENTANA DE VIDEO (portafolio) ------------------------------------------ */
.dhv { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.dhv.is-open { opacity: 1; visibility: visible; }
.dhv__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dhv__box { position: relative; width: min(1100px, 100%, calc((100vh - 7rem) * 16 / 9)); transform: scale(.96); transition: transform .3s ease; }
.dhv.is-open .dhv__box { transform: none; }
.dhv__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: .5rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5); }
/* El reproductor es más alto que la caja: así la barra de título y el logo de YouTube quedan ocultos */
.dhv__frame iframe, .dhv__frame .dhv__player { position: absolute; left: 0; top: -72px; width: 100%; height: calc(100% + 144px); border: 0; }
.dhv__shield { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: #000; cursor: pointer; transition: background-color .3s ease; }
.dhv__shield.is-playing { background: transparent; }
.dhv__shield.is-paused { background: rgba(0, 0, 0, .78); }
.dhv__icon { width: 4.5rem; height: 4.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); color: #fff; transition: opacity .25s ease, transform .25s ease; }
.dhv__icon svg { width: 1.75rem; height: 1.75rem; }
.dhv__shield.is-playing .dhv__icon, .dhv__shield.is-loading .dhv__icon { opacity: 0; transform: scale(.9); }
.dhv__spinner { position: absolute; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: dhv-spin .8s linear infinite; opacity: 0; }
.dhv__shield.is-loading .dhv__spinner { opacity: 1; }
.dhv__muted { position: absolute; right: .75rem; bottom: .75rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.dhv__muted svg { width: 1.1rem; height: 1.1rem; }
.dhv__shield.is-muted .dhv__muted { opacity: 1; }
@keyframes dhv-spin { to { transform: rotate(360deg); } }
.dhv__close { position: absolute; top: -3.25rem; right: 0; z-index: 3; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .2s ease; }
.dhv__close:hover, .dhv__close:focus-visible { background: rgba(255, 255, 255, .25); outline: none; }
.dhv__close svg { width: 1.5rem; height: 1.5rem; }
@media (max-width: 767px) {
	.dhv { padding: .75rem; }
	.dhv__frame { border-radius: .375rem; }
	.dhv__frame iframe, .dhv__frame .dhv__player { top: -60px; height: calc(100% + 120px); }
	.dhv__icon { width: 3.5rem; height: 3.5rem; }
	.dhv__icon svg { width: 1.4rem; height: 1.4rem; }
}

/* 13. ANIMACIONES DE ENTRADA (data-anim="...") -------------------------------- */
html.dh-js [data-anim] {
	opacity: 0;
	translate: var(--dh-x, 0) var(--dh-y, 0);
	scale: var(--dh-s, 1);
	transition:
		opacity var(--dh-t, .8s) var(--dh-e, cubic-bezier(.25, .1, .25, 1)) var(--dh-w, 0s),
		translate var(--dh-t, .8s) var(--dh-e, cubic-bezier(.25, .1, .25, 1)) var(--dh-w, 0s),
		scale var(--dh-t, .8s) var(--dh-e, cubic-bezier(.25, .1, .25, 1)) var(--dh-w, 0s);
}
html.dh-js [data-anim].is-visible { opacity: var(--dh-o, 1); translate: 0 0; scale: 1; }
@media (prefers-reduced-motion: reduce) {
	html.dh-js [data-anim] { opacity: var(--dh-o, 1); translate: none; scale: none; transition: none; }
	.dh-hero__slide, .dh-modal, .dh-modal__link { transition: none !important; }
}

/* 14. PÁGINAS INTERNAS (entradas, páginas, 404) -------------------------------- */
.dh-page { padding: 8rem 1.5rem 4rem; font-family: var(--dh-lato); min-height: 60vh; }
.dh-page__inner { max-width: 860px; margin: 0 auto; }
.dh-page__title { font-family: var(--dh-serif); font-size: 2.25rem; line-height: 1.2; color: var(--dh-slate-800); margin-bottom: 1.5rem; }
.dh-content { margin-bottom: 3rem; color: var(--dh-slate-600); line-height: 1.7; }
.dh-content > * + * { margin-top: 1.25em; }
.dh-content h2 { font-size: 1.75rem; } .dh-content h3 { font-size: 1.375rem; }
.dh-content h2, .dh-content h3 { font-family: var(--dh-serif); color: var(--dh-slate-800); }
.dh-content a { text-decoration: underline; }
.dh-404 { text-align: center; }
.dh-404__code { font-family: var(--dh-serif); font-size: 4rem; margin-bottom: 1rem; color: var(--dh-slate-800); }
.dh-button { display: inline-block; margin-top: 1.5rem; background: var(--dh-slate-800); color: #fff; border-radius: .5rem; padding: .75rem 1.5rem; }

/* 15. BOTÓN DE WHATSAPP ------------------------------------------------------- */
.dh-wa { position: fixed; right: calc(1.25rem + env(safe-area-inset-right, 0px)); bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 55; font-family: var(--dh-sans); }
html.dh-bloqueo .dh-wa { display: none; }
.dh-wa__btn {
	position: relative; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: #25d366; color: #fff; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .3); transition: transform .25s ease, background-color .2s ease;
}
.dh-wa__btn:hover { transform: scale(1.06); background: #20bd5a; }
.dh-wa__btn:focus-visible { outline: 3px solid rgba(37, 211, 102, .45); outline-offset: 3px; }
.dh-wa__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: dh-wa-pulse 2.6s ease-out infinite; }
.dh-wa.is-open .dh-wa__btn::before { animation: none; }
@keyframes dh-wa-pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.dh-wa__icon { position: absolute; display: flex; transition: opacity .2s ease, transform .25s ease; }
.dh-wa__icon svg { width: 1.9rem; height: 1.9rem; }
.dh-wa__icon--x svg { width: 1.5rem; height: 1.5rem; }
.dh-wa__icon--x { opacity: 0; transform: rotate(-90deg); }
.dh-wa.is-open .dh-wa__icon--wa { opacity: 0; transform: rotate(90deg); }
.dh-wa.is-open .dh-wa__icon--x { opacity: 1; transform: none; }

/* Burbuja de saludo */
.dh-wa__teaser {
	position: absolute; right: 0; bottom: calc(100% + .9rem); width: max-content; max-width: min(17rem, calc(100vw - 2.5rem));
	opacity: 0; visibility: hidden; transform: translateY(8px) scale(.96); transform-origin: bottom right;
	transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.dh-wa.is-teasing .dh-wa__teaser { opacity: 1; visibility: visible; transform: none; }
.dh-wa__teaser-text {
	display: block; text-align: left; background: #fff; color: var(--dh-slate-800); font-size: .9375rem; line-height: 1.4;
	padding: .75rem 1rem; border-radius: 1rem 1rem .25rem 1rem; box-shadow: 0 10px 30px -8px rgba(15, 23, 42, .35);
}
.dh-wa__teaser-x {
	position: absolute; top: -.6rem; left: -.6rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
	background: var(--dh-slate-700); color: #fff; font-size: 1rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.dh-wa__teaser .dh-wa__typing { display: inline-flex; }
.dh-wa__teaser-msg { display: none; }
.dh-wa.is-typed .dh-wa__teaser .dh-wa__typing { display: none; }
.dh-wa.is-typed .dh-wa__teaser-msg { display: inline; }

/* Ventanita de chat */
.dh-wa__panel {
	position: absolute; right: 0; bottom: calc(100% + .9rem); width: min(20.5rem, calc(100vw - 2.5rem));
	background: #efeae2; border-radius: 1rem; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, .45);
	opacity: 0; visibility: hidden; transform: translateY(12px) scale(.97); transform-origin: bottom right;
	transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.dh-wa.is-open .dh-wa__panel { opacity: 1; visibility: visible; transform: none; }
.dh-wa.is-open .dh-wa__teaser { opacity: 0; visibility: hidden; }
.dh-wa__head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; background: #075e54; color: #fff; }
.dh-wa__avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dh-wa__avatar img { width: 1.9rem; height: auto; }
.dh-wa__who { flex: 1; min-width: 0; }
.dh-wa__who strong { display: block; font-size: .95rem; font-weight: 600; }
.dh-wa__who span { display: flex; align-items: center; gap: .35rem; font-size: .75rem; opacity: .85; }
.dh-wa__online { width: .5rem; height: .5rem; border-radius: 50%; background: #25d366; flex-shrink: 0; }
.dh-wa__x { width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; opacity: .85; }
.dh-wa__x:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.dh-wa__x svg { width: 1.25rem; height: 1.25rem; }
.dh-wa__body { padding: 1.1rem 1rem 1.25rem; min-height: 6.5rem; }
.dh-wa__body .dh-wa__typing, .dh-wa__msg {
	display: inline-block; background: #fff; border-radius: 0 .75rem .75rem .75rem; box-shadow: 0 1px .5px rgba(0, 0, 0, .13);
}
.dh-wa__body .dh-wa__typing { padding: .8rem 1rem; }
.dh-wa__msg { display: none; padding: .6rem .85rem; font-size: .9375rem; line-height: 1.45; color: #111b21; max-width: 90%; }
.dh-wa__msg p + p { margin-top: .15rem; }
.dh-wa.is-replied .dh-wa__body .dh-wa__typing { display: none; }
.dh-wa.is-replied .dh-wa__msg { display: inline-block; animation: dh-wa-in .3s ease; }
@keyframes dh-wa-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.dh-wa__typing { gap: .3rem; align-items: center; }
.dh-wa__typing i { width: .45rem; height: .45rem; border-radius: 50%; background: #94a3b8; display: inline-block; animation: dh-wa-dot 1.2s infinite ease-in-out; }
.dh-wa__typing i:nth-child(2) { animation-delay: .15s; }
.dh-wa__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dh-wa-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.dh-wa__cta {
	display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0 1rem 1rem; padding: .75rem 1rem;
	border-radius: 999px; background: #25d366; color: #fff; font-weight: 600; font-size: .95rem; transition: background-color .2s ease;
}
.dh-wa__cta:hover { background: #20bd5a; }
.dh-wa__cta svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 767px) {
	.dh-wa { right: calc(1rem + env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
	.dh-wa__btn { width: 3.25rem; height: 3.25rem; }
}
@media (prefers-reduced-motion: reduce) {
	.dh-wa__btn::before, .dh-wa__typing i { animation: none; }
}
