/*
 * Portada de Bruxicare — diseño «D · Marca equilibrada» (03/12/2026).
 * Solo aplica a la portada (<body class="home">): el resto del sitio sigue con style.css.
 * Colores de la marca: naranja #FD600F (siempre con letra oscura: la blanca no se lee bien sobre él)
 * y verde #308F91 / #267375 (el oscuro lleva la letra blanca).
 * El diseño original quedó guardado en git con la etiqueta «diseno-original-v2.6.3».
 */

body.home {
    --h-orange: #FD600F;
    --h-orange-text: #B8460A;
    --h-teal: #308F91;
    --h-teal-dark: #267375;
    --h-teal-deep: #1A3F40;
    --h-teal-soft: #F3F9F9;
    --h-teal-line: #E3EEEE;
    --h-cream: #FFF0E5;
    --h-ink: #1A1A1A;
    --h-ink-2: #4A4A4A;
    background: #FFFFFF;
    color: var(--h-ink);
}

.home .h-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- barra de navegación (blanca) ---------- */
.home .navbar {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    border-bottom: 1px solid #EDEDED;
    padding: 14px 0;
}
.home .brand { color: var(--h-ink); font-size: 1.5rem; font-weight: 800; }
.home .brand .text-primary { color: var(--h-teal-dark); }
.home .nav-logo { height: 40px; margin-right: 10px; }
.home .nav-links { gap: 28px; }
.home .nav-links a { color: var(--h-ink-2); font-size: 0.95rem; }
.home .nav-links a:hover { color: var(--h-teal-dark); }
.home .nav-links .h-nav-cta {
    background: var(--h-orange); color: var(--h-ink); font-weight: 700;
    padding: 11px 18px; border-radius: 12px;
}
.home .nav-links .h-nav-cta:hover { color: var(--h-ink); filter: brightness(1.05); }
.home .nav-links .btn-white { background: transparent; color: var(--h-ink-2); padding: 0; box-shadow: none; transform: none; }
.home .nav-links .btn-white:hover { color: var(--h-teal-dark) !important; box-shadow: none; transform: none; }
.home .user-trigger { background: var(--h-teal-soft); }
.home .user-trigger:hover { background: var(--h-teal-line); }
.home .user-alias { color: var(--h-ink); }
.home .user-avatar { border-color: var(--h-teal); }
.home .dropdown-menu { background: var(--h-teal-dark); }
.home .mobile-toggle span { background: var(--h-ink); }
.home .language-select { border-color: var(--h-teal-line); }

/* ---------- portada ---------- */
.home .h-hero { padding: 32px 0 0; }
.home .h-hero-box {
    background: var(--h-teal-dark); border-radius: 32px; padding: 56px;
    display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
}
.home .h-hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.home .h-badge {
    align-self: flex-start; background: var(--h-orange); color: var(--h-ink);
    font-weight: 700; font-size: 0.875rem; padding: 7px 14px; border-radius: 999px;
}
.home .h-hero h1 {
    margin: 0; font-size: 3.6rem; line-height: 1.05; letter-spacing: -1.6px; font-weight: 800; color: #FFFFFF;
}
.home .h-hero p { margin: 0; font-size: 1.2rem; line-height: 1.6; color: #D8ECEC; max-width: 500px; }
.home .h-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.home .h-btn {
    display: inline-block; text-decoration: none; padding: 16px 26px; border-radius: 12px;
    font-weight: 700; font-size: 1.05rem; transition: filter .2s, background-color .2s;
}
.home .h-btn-orange { background: var(--h-orange); color: var(--h-ink); }
.home .h-btn-orange:hover { filter: brightness(1.06); color: var(--h-ink); }
.home .h-btn-ghost { border: 1.5px solid #7FB7B8; color: #FFFFFF; font-weight: 600; }
.home .h-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.home .h-btn-dark { background: var(--h-ink); color: #FFFFFF; }
.home .h-btn-dark:hover { background: #000000; color: #FFFFFF; }
.home .h-hero-img { flex: 1 1 380px; min-width: 0; }
.home .h-hero-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; display: block; }
/* video de bienvenida (vertical 9:16, el original sin recortar) */
.home .h-hero-img { display: flex; justify-content: center; }
.home .h-video { position: relative; height: min(620px, 78vh); aspect-ratio: 9 / 16; max-width: 100%; }
.home .h-video video {
    width: 100%; height: 100%; object-fit: contain; border-radius: 24px; display: block; background: var(--h-teal-deep);
    cursor: pointer;
}
/* [hidden] tiene que ganarle al display del botón */
.home .h-video-sound[hidden] { display: none; }
.home .h-video-sound {
    position: absolute; right: 14px; top: 14px;
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    background: var(--h-orange); color: var(--h-ink); border: none; border-radius: 999px;
    padding: 12px 18px; font: 700 0.95rem Inter, sans-serif; cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.home .h-video-sound:hover { filter: brightness(1.06); }
.home .h-video-sound:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }

/* ---------- beneficios ---------- */
.home .h-benefits {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-top: 28px;
}
.home .h-benefit {
    display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--h-cream);
    border-radius: 16px; font-weight: 600;
}
.home .h-benefit svg { flex: none; }

/* ---------- secciones ---------- */
.home .h-section { padding: 80px 0; }
.home .h-kicker {
    display: block; font-size: 0.875rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--h-orange-text); margin-bottom: 10px;
}
.home .h-section h2 { margin: 0; font-size: 2.5rem; line-height: 1.15; letter-spacing: -0.8px; font-weight: 800; color: var(--h-ink); }
.home .h-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.home .h-step {
    display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--h-teal-line);
    border-radius: 20px; background: var(--h-teal-soft);
}
.home .h-step-num {
    width: 44px; height: 44px; border-radius: 12px; background: var(--h-teal-dark); color: #FFFFFF;
    font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
}
.home .h-step h3 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.home .h-step p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--h-ink-2); }

.home .h-cream { background: var(--h-cream); }
.home .h-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.home .h-split-img { flex: 1 1 360px; min-width: 0; }
.home .h-split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; display: block; }
.home .h-split-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.home .h-split-text p { margin: 0; font-size: 1.06rem; line-height: 1.7; color: var(--h-ink-2); }
.home .h-note { font-size: 0.875rem !important; background: #FFFFFF; border-radius: 12px; padding: 14px 16px; }

/* ---------- testimonios ---------- */
.home .h-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.home .h-testimonial {
    margin: 0; padding: 26px; border-radius: 20px; border: 1px solid var(--h-teal-line);
    display: flex; flex-direction: column; gap: 18px;
}
.home .h-testimonial blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--h-ink); }
.home .h-author { display: flex; align-items: center; gap: 14px; }
.home .h-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.home .h-author h4 { margin: 0; font-size: 1rem; color: var(--h-teal-dark); }
.home .h-author span { font-size: 0.875rem; color: var(--h-ink-2); }

/* ---------- cierre y pie ---------- */
.home .h-final { background: var(--h-orange); }
.home .h-final .h-wrap {
    padding-top: 60px; padding-bottom: 60px; display: flex; flex-wrap: wrap; gap: 24px;
    align-items: center; justify-content: space-between;
}
.home .h-final h2 { margin: 0 0 8px; font-size: 2.1rem; line-height: 1.15; font-weight: 800; color: var(--h-ink); }
.home .h-final p { margin: 0; font-size: 1.06rem; color: #2B1405; }
.home .h-footer { background: var(--h-teal-deep); color: #CFE3E3; }
.home .h-footer .h-wrap {
    padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 20px;
    justify-content: space-between; font-size: 0.875rem;
}
.home .h-footer a { color: #CFE3E3; }

/* ---------- celular ---------- */
@media (max-width: 968px) {
    .home .nav-links { background: #FFFFFF; border-top: 1px solid #EDEDED; }
    .home .nav-links a { color: var(--h-ink) !important; }
    .home .nav-links .h-nav-cta { display: inline-block; }
    .home .h-hero-box { padding: 32px 24px; border-radius: 24px; }
    .home .h-hero h1 { font-size: 2.4rem; letter-spacing: -0.8px; }
    .home .h-section { padding: 56px 0; }
    .home .h-section h2 { font-size: 1.9rem; }
    .home .h-final h2 { font-size: 1.6rem; }
}

/* ---------- carrusel de «¿Qué es el bruxismo?» (03/12) ---------- */
/* todas las diapositivas en la misma celda: se cruzan con un fundido y la altura no salta */
.home .h-slides { display: grid; }
.home .h-slide {
    grid-area: 1 / 1; opacity: 0; visibility: hidden;
    transition: opacity .5s ease, visibility 0s linear .5s;
}
.home .h-slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.home .h-slide h2 .text-primary { color: var(--h-teal-dark); }
.home .h-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.home .h-list li { position: relative; padding-left: 28px; font-size: 1.02rem; line-height: 1.5; color: var(--h-ink-2); }
.home .h-list li::before {
    content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50%;
    background: var(--h-teal-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.home .h-slider-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; }
.home .h-slider-arrow {
    width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #E9C9B0; background: #FFFFFF;
    color: var(--h-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.home .h-slider-arrow:hover { border-color: var(--h-orange); color: var(--h-orange-text); }
.home .h-slider-dots { display: flex; gap: 4px; }
.home .h-dot {
    width: 28px; height: 28px; border: none; background: transparent; cursor: pointer; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.home .h-dot::after {
    content: ""; width: 10px; height: 10px; border-radius: 999px; background: #E2C3AA; transition: width .3s, background .3s;
}
.home .h-dot.is-active::after { width: 26px; background: var(--h-orange); }
.home .h-slider-arrow:focus-visible, .home .h-dot:focus-visible { outline: 3px solid var(--h-teal-dark); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .home .h-slide, .home .h-slide.is-active { transition: none; } }
