/* ============================================================
   HOME - MEJORAS VISUALES SIN TOCAR PARTES EDITABLES SENSIBLES
   ============================================================ */

.home-page {
    background:
        radial-gradient(circle at top right, rgba(0, 61, 123, 0.08), transparent 32%),
        linear-gradient(180deg, #f5f7fb 0%, #f4f6f9 28%, #ffffff 100%);
}

.home-page .main-content {
    overflow: hidden;
}

.home-page .container,
.home-page .galeria-container {
    max-width: 1420px;
}

.home-page .hero-slider .slider-container {
    width: min(98vw, 1820px);
    max-width: none;
    margin: 0 auto;
}

.home-page .section-heading {
    margin-bottom: 28px;
}

.home-page .section-heading-centered {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.home-page .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(0, 61, 123, 0.08);
    color: var(--color-primario);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-page .section-title,
.home-page .resultados-title,
.home-page .referentes-title,
.home-page .cta-title,
.home-page .galeria-title {
    color: #10233d;
    letter-spacing: -0.02em;
    line-height: 1.12;
}

.home-page .section-subtitle,
.home-page .cta-subtitle,
.home-page .galeria-subtitle {
    max-width: 720px;
    color: #607086;
    font-size: 1rem;
    line-height: 1.7;
}

.home-page .hero-slider {
    padding: 18px 12px 0;
    margin-bottom: 0;
}

.home-page .hero-slider .slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #0f1f34;
    box-shadow: 0 18px 60px rgba(8, 24, 49, 0.18);
}

.home-page .hero-slider .slider-track {
    display: flex;
}

.home-page .hero-slider .slide {
    position: relative;
    min-height: 620px;
    flex: 0 0 100%;
}

.home-page .hero-slider .slide > img,
.home-page .hero-slider .video-container,
.home-page .hero-slider .video-container .video-thumbnail,
.home-page .hero-slider .video-container .video-iframe,
.home-page .hero-slider .video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-page .hero-slider .video-container,
.home-page .hero-slider .slide > img {
    position: absolute;
    inset: 0;
}

.home-page .hero-slider .video-iframe iframe {
    border: 0;
}

.home-page .hero-slider .video-overlay,
.home-page .hero-slider .slide-dark::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(100deg, rgba(6, 14, 28, 0.92) 0%, rgba(6, 14, 28, 0.78) 38%, rgba(6, 14, 28, 0.38) 62%, rgba(6, 14, 28, 0.62) 100%),
        radial-gradient(circle at right center, rgba(20, 78, 151, 0.45), transparent 30%);
}

.home-page .hero-slider .slide-content-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: 660px;
    padding: 72px 70px 96px;
}

.home-page .hero-slider .slide-content-inner {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 500px);
    gap: 54px;
    align-items: center;
}

.home-page .hero-slider .slide-caption {
    max-width: 620px;
}

.home-page .hero-slider .slide-kicker {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-page .hero-slider h1,
.home-page .hero-slider h2 {
    color: #fff;
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 1.02;
    font-weight: 700;
    margin-bottom: 18px;
    text-wrap: balance;
}

.home-page .hero-slider p {
    color: rgba(255,255,255,0.88);
    font-size: 1.06rem;
    line-height: 1.8;
    max-width: 590px;
    margin-bottom: 18px;
}

.home-page .slide-mini-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.home-page .slide-mini-features span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
}

.home-page .slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.home-page .btn-slider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.home-page .btn-slider:hover {
    transform: translateY(-2px);
}

.home-page .btn-slider-primary {
    background: #ffffff;
    color: #0a2c56;
    box-shadow: 0 10px 30px rgba(255,255,255,0.18);
}

.home-page .btn-slider-primary:hover {
    box-shadow: 0 14px 34px rgba(255,255,255,0.22);
}

.home-page .btn-slider-secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
}

.home-page .slide-image-right {
    display: flex;
    justify-content: flex-end;
}

.home-page .slide-image-card {
    position: relative;
    width: min(100%, 560px);
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.home-page .slide-image-card img {
    display: block;
    width: 100%;
    max-height: 540px;
    aspect-ratio: auto;
    object-fit: contain;
    background: transparent;
}

.home-page .slide-floating-badge {
    display: none !important;

    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.home-page .slide-floating-badge strong {
    color: #083a76;
    font-size: 1.35rem;
}

.home-page .slide-floating-badge span {
    color: #516376;
    font-size: 0.92rem;
    line-height: 1.4;
}

.home-page .play-button {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.5rem;
    border: 1px solid rgba(255,255,255,0.22);
}

.home-page .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.home-page .slider-btn:hover {
    background: rgba(255,255,255,0.28);
}

.home-page .prev-btn { left: 22px; }
.home-page .next-btn { right: 22px; }

.home-page .slider-ui {
    position: absolute;
    z-index: 4;
    left: 40px;
    right: 40px;
    bottom: 26px;
}

.home-page .slider-progress {
    height: 5px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.14);
    margin-bottom: 18px;
}

.home-page .slider-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffffff 0%, #a8d5ff 100%);
}

.home-page .slider-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.home-page .slider-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-page .slider-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,0.36);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.home-page .slider-dots .dot.active {
    background: #fff;
    transform: scale(1.18);
}

.home-page .hero-trust-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-page .hero-trust-mini span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    color: rgba(255,255,255,0.88);
    font-size: 0.85rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
}

.home-page .home-highlights {
    margin-top: -38px;
    padding: 0 20px 30px;
    position: relative;
    z-index: 5;
}

.home-page .home-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-page .highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 140px;
    padding: 24px 22px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(9, 33, 70, 0.08);
}

.home-page .highlight-card strong {
    display: block;
    color: #132744;
    font-size: 1rem;
    margin-bottom: 8px;
}

.home-page .highlight-card p {
    color: #5f7086;
    font-size: 0.94rem;
    line-height: 1.65;
}

.home-page .highlight-number {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, #003d7b 0%, #0f5cac 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 12px 24px rgba(0, 61, 123, 0.22);
}

.home-page .highlight-card-accent {
    justify-content: space-between;
    background: linear-gradient(135deg, #003d7b 0%, #0a59a8 100%);
    color: #fff;
}

.home-page .highlight-card-accent strong,
.home-page .highlight-card-accent p {
    color: #fff;
}

.home-page .highlight-card-accent a {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.home-page .servicios-destacados,
.home-page .estadisticas-home,
.home-page .resultados-360,
.home-page .referentes,
.home-page .cta-section,
.home-page .proyectos-galeria {
    padding: 64px 20px;
}

.home-page .servicios-destacados {
    padding-top: 40px;
}

.home-page .servicios-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.home-page .servicio-card-imagen {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(11, 61, 123, 0.08);
    box-shadow: 0 10px 30px rgba(9, 33, 70, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-page .servicio-card-imagen:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(9, 33, 70, 0.11);
}

.home-page .servicio-imagen {
    position: relative;
}

.home-page .servicio-imagen img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.88;
    object-fit: cover;
}

.home-page .servicio-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    color: #0a3f7d;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.home-page .servicio-texto {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 22px 26px;
    flex: 1;
    justify-content: space-between;
}

.home-page .servicio-texto h3 {
    font-size: 1.18rem;
    line-height: 1.3;
    color: #132744;
    min-height: 64px;
}

.home-page .servicio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primario);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.02rem;
}

.home-page .servicio-link::after {
    content: "→";
    transition: transform 0.25s ease;
}

.home-page .servicio-link:hover::after {
    transform: translateX(4px);
}

.home-page .estadisticas-home {
    padding-top: 8px;
}

.home-page .estadisticas-home .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1280px;
    margin: 0 auto;
    align-items: stretch;
}

.home-page .estadisticas-home .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    padding: 32px 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, #0b3f7d 0%, #082e5a 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 16px 40px rgba(3, 44, 91, 0.18);
}

.home-page .estadisticas-home .stat-numero {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.home-page .estadisticas-home .stat-label {
    color: rgba(255,255,255,0.9);
    font-size: 1.12rem;
    line-height: 1.35;
}

.home-page .resultados-grid,
.home-page .cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: center;
}

.home-page .referentes-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1.08fr) minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
}

.home-page .resultados-content,
.home-page .referentes-content,
.home-page .cta-content {
    background: #fff;
    border-radius: 26px;
    padding: 32px;
    box-shadow: 0 14px 34px rgba(9, 33, 70, 0.07);
}

.home-page .resultados-list,
.home-page .referentes-list {
    display: grid;
    gap: 16px;
}

.home-page .resultado-item,
.home-page .referente-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(11, 61, 123, 0.07);
}

.home-page .resultado-item span,
.home-page .referente-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(0, 61, 123, 0.09);
    font-size: 1.3rem;
}

.home-page .resultado-item h3,
.home-page .referente-item h3 {
    color: #132744;
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 6px;
}

.home-page .resultado-item p,
.home-page .referente-item p {
    color: #607086;
    font-size: 0.95rem;
    line-height: 1.7;
}

.home-page .image-panel {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(9, 33, 70, 0.1);
}

.home-page .image-panel img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-page .referentes-image,
.home-page .referentes-image .image-panel,
.home-page .referentes-image .image-panel-soft {
    height: 100%;
}

.home-page .referentes-image .image-panel-soft {
    display: flex;
    align-items: stretch;
    padding: 16px;
}

.home-page .referentes-image .image-panel-soft img {
    width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.home-page .referentes-content {
    min-height: 100%;
}

.home-page .image-panel-soft {
    background: linear-gradient(180deg, #eff4fa 0%, #ffffff 100%);
    padding: 14px;
}

.home-page .image-panel-soft img {
    border-radius: 22px;
}

.home-page .cta-content {
    background: linear-gradient(145deg, #ffffff 0%, #f5f8fc 100%);
}

.home-page .cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.home-page .cta-btn-moderno {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 16px;
    text-decoration: none;
    background: linear-gradient(135deg, #003d7b 0%, #0d5eb0 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 14px 30px rgba(0, 61, 123, 0.18);
}

.home-page .cta-link-secondary {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0 10px;
    color: #0b4a90;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.02rem;
}

.home-page .image-panel-cta {
    padding: 14px;
    background: linear-gradient(180deg, #eff4fa 0%, #ffffff 100%);
}

.home-page .image-panel-cta img {
    border-radius: 22px;
}

.home-page .proyectos-galeria {
    padding-top: 26px;
}

.home-page .proyectos-galeria .galeria-container {
    width: min(98vw, 1820px);
    max-width: none;
    margin: 0 auto;
}

.home-page .proyectos-galeria .galeria-grid {
    margin-top: 10px;
}

.home-page .galeria-footer-action {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.home-page .loading-proyectos {
    min-height: 220px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    border: 1px dashed rgba(0, 61, 123, 0.18);
}

@media (max-width: 1180px) {
    .home-page .servicios-grid-5 {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }

    .home-page .hero-slider .slide-content-inner {
        grid-template-columns: 1fr;
    }

    .home-page .slide-image-right {
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {
    .home-page .hero-slider {
        padding: 12px 8px 0;
    }

    .home-page .hero-slider .slide,
    .home-page .hero-slider .slide-content-wrapper {
        min-height: 700px;
    }

    .home-page .hero-slider .slide-content-wrapper {
        padding: 60px 26px 96px;
    }

    .home-page .referentes-grid {
        grid-template-columns: 1fr;
    }

    .home-page .prev-btn,
    .home-page .next-btn {
        width: 44px;
        height: 44px;
    }

    .home-page .slider-ui {
        left: 24px;
        right: 24px;
        bottom: 18px;
    }

    .home-page .estadisticas-home .stats-grid,
    .home-page .resultados-grid,
    .home-page .referentes-grid,
    .home-page .cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .home-page .hero-slider .slide,
    .home-page .hero-slider .slide-content-wrapper {
        min-height: 720px;
    }

    .home-page .hero-slider h1,
    .home-page .hero-slider h2 {
        font-size: 2rem;
    }

    .home-page .hero-slider p {
        font-size: 0.97rem;
        line-height: 1.7;
    }

    .home-page .slide-actions,
    .home-page .cta-actions,
    .home-page .hero-trust-mini,
    .home-page .slider-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-page .btn-slider,
    .home-page .cta-btn-moderno {
        width: 100%;
    }

    .home-page .servicios-grid-5,
    .home-page .estadisticas-home .stats-grid {
        grid-template-columns: 1fr;
    }

    .home-page .resultados-content,
    .home-page .referentes-content,
    .home-page .cta-content {
        padding: 24px 18px;
    }

    .home-page .resultado-item,
    .home-page .referente-item {
        grid-template-columns: 42px 1fr;
        gap: 12px;
        padding: 16px 14px;
    }

    .home-page .resultado-item span,
    .home-page .referente-item span {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .home-page .servicios-destacados,
    .home-page .estadisticas-home,
    .home-page .resultados-360,
    .home-page .referentes,
    .home-page .cta-section,
    .home-page .proyectos-galeria {
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 42px;
        padding-bottom: 42px;
    }
}

/* ============================================================
   HOME v1.4 - VIDEO DE FONDO + AJUSTES MÓVILES DEL HERO
   ============================================================ */
.home-page .hero-slider .video-container {
    overflow: hidden;
    background: #06101f;
}

.home-page .hero-slider .video-thumbnail {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-page .hero-slider .video-iframe {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Hace que un iframe 16:9 cubra todo el hero como background,
   incluso en pantallas verticales donde debe recortarse lateralmente. */
.home-page .hero-slider .video-iframe iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 177.78vh);
    height: max(100%, 56.25vw);
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.home-page .hero-slider .video-container.playing .video-thumbnail {
    opacity: 1;
}

.home-page .hero-slider .play-button {
    display: none !important;
}

@media (max-width: 767px) {
    .home-page .hero-slider {
        padding: 8px 6px 0;
    }

    .home-page .hero-slider .slider-container {
        width: calc(100vw - 12px);
        border-radius: 20px;
    }

    .home-page .hero-slider .slide,
    .home-page .hero-slider .slide-content-wrapper {
        min-height: 620px;
    }

    .home-page .hero-slider .slide-content-wrapper {
        align-items: center;
        padding: 48px 24px 86px;
    }

    .home-page .hero-slider .slide-content-inner {
        display: block;
    }

    .home-page .hero-slider .slide-caption {
        max-width: 100%;
        padding-right: 0;
    }

    /* En móvil la imagen lateral se elimina: el video/fondo ocupa todo el slide
       y el contenido queda limpio y legible. */
    .home-page .hero-slider .slide-image-right {
        display: none !important;
    }

    .home-page .hero-slider .slide-kicker {
        margin-bottom: 14px;
        padding: 8px 11px;
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .home-page .hero-slider h1,
    .home-page .hero-slider h2 {
        max-width: 92%;
        margin-bottom: 14px;
        font-size: clamp(2rem, 10vw, 2.7rem);
        line-height: 1.03;
    }

    .home-page .hero-slider p {
        max-width: 96%;
        margin-bottom: 16px;
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .home-page .slide-mini-features {
        gap: 8px;
        margin-bottom: 20px;
    }

    .home-page .slide-mini-features span {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .home-page .slide-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: min(100%, 330px);
    }

    .home-page .slide-actions .btn-slider {
        min-height: 46px;
        width: 100%;
        padding: 0 16px;
        border-radius: 12px;
        font-size: 0.88rem;
    }

    .home-page .slider-btn {
        top: auto;
        bottom: 72px;
        width: 38px;
        height: 38px;
        transform: none;
        font-size: 0.95rem;
    }

    .home-page .prev-btn {
        left: auto;
        right: 58px;
    }

    .home-page .next-btn {
        right: 14px;
    }

    .home-page .slider-ui {
        left: 18px;
        right: 18px;
        bottom: 22px;
    }

    .home-page .slider-progress {
        margin-bottom: 12px;
        height: 4px;
    }

    .home-page .hero-trust-mini {
        display: none !important;
    }

    .home-page .slider-bottom-row {
        display: block;
    }

    .home-page .slider-dots {
        justify-content: flex-start;
    }

    /* En móvil el video debe cubrir el hero vertical; se recorta a ambos lados. */
    .home-page .hero-slider .video-iframe iframe {
        width: max(100%, 177.78vh);
        height: max(100%, 56.25vw);
    }

    .home-page .hero-slider .video-overlay,
    .home-page .hero-slider .slide-dark::after {
        background:
            linear-gradient(90deg, rgba(5, 13, 26, 0.93) 0%, rgba(5, 13, 26, 0.82) 62%, rgba(5, 13, 26, 0.58) 100%),
            linear-gradient(180deg, rgba(5, 13, 26, 0.12) 0%, rgba(5, 13, 26, 0.30) 100%);
    }
}

@media (max-width: 420px) {
    .home-page .hero-slider .slide,
    .home-page .hero-slider .slide-content-wrapper {
        min-height: 640px;
    }

    .home-page .hero-slider .slide-content-wrapper {
        padding: 42px 20px 88px;
    }

    .home-page .hero-slider h1,
    .home-page .hero-slider h2 {
        font-size: 2.15rem;
    }
}

/* ============================================================
   HOME v1.5 - VISIBILIDAD REAL DEL VIDEO DE FONDO
   ============================================================ */
.home-page .hero-slider .video-container .video-thumbnail {
    z-index: 0;
    opacity: 1;
    transition: opacity .55s ease;
}

.home-page .hero-slider .video-container .video-iframe {
    z-index: 1;
    opacity: 0;
    transition: opacity .55s ease;
}

.home-page .hero-slider .video-container.video-ready .video-iframe {
    opacity: 1;
}

.home-page .hero-slider .video-container.video-ready .video-thumbnail {
    opacity: 0;
}

.home-page .hero-slider .video-iframe iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

@supports (aspect-ratio: 16 / 9) {
    .home-page .hero-slider .video-iframe iframe {
        width: auto;
        height: auto;
        min-width: 100%;
        min-height: 100%;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 767px) {
    .home-page .hero-slider .video-iframe iframe {
        width: auto;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        aspect-ratio: 16 / 9;
    }
}

/* ============================================================
   HOME v1.6 - Compatibilidad real del autoplay YouTube
   Corrige reglas heredadas de style.css que ocultaban la miniatura
   demasiado pronto y dejaban el fondo vacío mientras cargaba el player.
   ============================================================ */
.home-page .hero-slider .video-container.playing:not(.video-ready) .video-thumbnail {
    display: block !important;
    opacity: 1 !important;
}

.home-page .hero-slider .video-container.video-ready .video-thumbnail {
    display: none !important;
    opacity: 0 !important;
}

.home-page .hero-slider .video-container .video-iframe,
.home-page .hero-slider .video-container .youtube-bg-player,
.home-page .hero-slider .video-container .youtube-bg-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-page .hero-slider .video-container .youtube-bg-player iframe {
    display: block !important;
    border: 0;
    pointer-events: none;
}

.home-page .hero-slider .video-container.video-ready .video-iframe {
    display: block !important;
    opacity: 1 !important;
}

/* ============================================================
   HOME v1.7 - YOUTUBE BACKGROUND SIN IFRAME API
   ============================================================ */
.home-page .hero-slider .video-container {
    background: #06101f;
}

.home-page .hero-slider .video-thumbnail {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 0;
}

.home-page .hero-slider .video-iframe {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-page .hero-slider .video-container.video-mounted .video-iframe {
    display: block !important;
}

.home-page .hero-slider .video-container.video-mounted .video-thumbnail,
.home-page .hero-slider .video-container.video-ready .video-thumbnail {
    display: block !important;
}

.home-page .hero-slider .youtube-bg-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 177.7778vh);
    height: max(100%, 56.25vw);
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

@media (max-width: 767px) {
    .home-page .hero-slider .youtube-bg-frame {
        width: max(100%, 177.7778vh);
        height: max(100%, 56.25vw);
    }
}
