/* Hero de detalle de servicio (tarjeta con imagen diagonal) */


.sd-hero-card {
    background: #fff;
    overflow: hidden;
    height: 100vh;
}

.sd-hero-img {
    position: relative;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    /* borde diagonal hacia el contenido */
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.sd-hero-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.06) 30%, rgba(0, 0, 0, 0.08) 100%);
}

.sd-brand {
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #233159;
    font-weight: 600;
    font-size: .85rem;
}

.sd-brand::after {
    content: "";
    display: inline-block;
    width: 80px;
    height: 2px;
    background: #233159;
    margin-left: 14px;
    transform: translateY(-3px);
    opacity: .6;
}

.sd-title {
    font-size: clamp(28px, 5vw, 54px);
    line-height: 1.05;
    margin: 6px 0 16px;
    font-weight: 800;
    color: #17223d;
}

.sd-title .highlight {
    color: #e02d2d;
}

.sd-desc {
    max-width: 720px;
}

.sd-cta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sd-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1c274c;
    color: #1c274c;
    font-size: 22px;
}


@media (max-width: 991.98px) {
    .sd-hero {
        padding: 20px 0 10px;
    }

    .sd-hero-img {
        clip-path: none;
        min-height: 280px;
    }
}

/* Variantes de enfoque de imagen para el hero */
.sd-hero-img--focus-right {
    background-position: 80% center; /* muestra un poco más la derecha */
}

@media (max-width: 991.98px) {
    /* En móvil también desplazamos hacia la derecha para mantener el enfoque */
    .sd-hero-img--focus-right {
        background-position: 85% center;
    }
}

/* Banner intermedio a ancho completo (full-bleed) */
.sd-banner {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    padding: 100px 40px;
}

/* Tablet */
@media (max-width: 991.98px) {
    .sd-banner {
        padding: 72px 28px;
    }
}

/* Móvil */
@media (max-width: 575.98px) {
    .sd-banner {
        padding: 48px 0;
        /* reduce el padding en móvil */
    }
}

/* Slider de coberturas */
.sd-cov-slider {
    position: relative;
    margin-bottom: 100px;
}

.sd-cov-track {
    --gap: 16px;
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.sd-cov-track::-webkit-scrollbar {
    height: 0;
    width: 0;
}

.sd-cov-track::-webkit-scrollbar-thumb {
    background: transparent;
}

/* Ocultar scrollbars en navegadores comunes */
.sd-cov-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sd-cov-track::-webkit-scrollbar {
    display: none;
}

.sd-cov-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

@media (min-width:768px) {
    .sd-cov-item {
        flex-basis: 340px;
    }
}

@media (min-width:992px) {
    .sd-cov-item {
        flex-basis: 380px;
    }
}

.sd-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sd-nav:hover {
    background: #b1201e;
}

.sd-nav-prev {
    left: -46px;
}

.sd-nav-next {
    right: -46px;
}

@media (max-width: 575.98px) {
    /* Reducir tamaño y recolocar flechas en móvil */
    .sd-nav { width: 34px; height: 34px; }
    .sd-nav-prev { left: -8px; }
    .sd-nav-next { right: -8px; }
    /* Añadir scroll-padding para que el snap deje margen respecto a flechas */
    .sd-cov-track { scroll-padding-left: 44px; scroll-padding-right: 44px; }
}

/* Indicadores (puntos) */
.sd-cov-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
}

.sd-cov-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d1d5db; /* gris base, igual a esencia */
    border: none;
    padding: 0;
    transition: width .2s ease, background-color .2s ease;
}

.sd-cov-dot[aria-current="true"],
.sd-cov-dot.active {
    background: #e11d48; /* acento rojo, igual a esencia */
    width: 20px;
}

/* Accesibilidad y feedback */
.sd-cov-dot:hover { background: #bfc5cf; }
.sd-cov-dot:focus { outline: 2px solid #e11d48; outline-offset: 2px; }

/* Estados de navegación deshabilitada */
.sd-nav[aria-disabled="true"],
.sd-nav:disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}