/* Imagen de fondo responsive para el hero principal */
.hero-bg-responsive {
    background: url('../assets/img/banners/banner1.JPG') center center/cover no-repeat;
    min-height: 564px;
}

@media (max-width: 767.98px) {
    .hero-bg-responsive {
        background: url('../assets/img/banners/movil.jpg') center center/cover no-repeat;
        min-height: 300px;
    }

    .hero-section {
        margin-top: 105px !important;
    }
}

@media (max-width: 767.98px) {
    .hero-bar {
        text-align: left !important;
        padding-left: 10px;
        max-width: 305px !important;
    }
}

/* Botón principal móvil */
.btn-cotiza-movil {
    width: 100%;
    background: #0D4C9F;
    color: #fff;
    border-radius: 30px;
    padding: 0.85rem 0;
    font-size: 1rem;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: bold;
    border: none;
    box-shadow: 0 2px 8px 0 rgba(13, 110, 253, 0.08);
    transition: background 0.2s, color 0.2s;
    margin-bottom: 0.5rem;
}

.btn-cotiza-movil:hover {
    background: #084298;
    color: #fff;
}

/* Botón enlace móvil */
.btn-servicios-movil {
    width: 100%;
    display: block;
    background: none;
    color: #010924;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.85rem 0;
    border-radius: 30px;
    border: none;
    text-align: center;
    transition: background 0.2s, color 0.2s;
}

.btn-servicios-movil:hover {
    background: #e3f2fd;
    color: #084298;
    text-decoration: underline;
}

/* Botones personalizados del hero-section */
.hero-section .hero-btn-main {
    background: #0D4C9F;
    color: #fff;
    border-radius: 30px;
    padding: 0.85rem 2.2rem;
    font-size: 16px;
    font-family: 'Segoe UI';
    font-weight: bold;
    border: none;
    box-shadow: 0 2px 8px 0 rgba(13, 110, 253, 0.08);
    transition: background 0.2s, color 0.2s;
}

.hero-section .hero-btn-main:hover {
    background: #084298;
    color: #fff;
}

.hero-section .hero-btn-link {
    color: #010924;
    font-family: 'Segoe UI';
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    border-radius: 30px;
    transition: background 0.2s, color 0.2s;
}

.hero-section .hero-btn-link:hover {
    background: #e3f2fd;
    color: #084298;
    text-decoration: underline;
}

/* Barra superior personalizada del hero */
.hero-bar {
    position: relative;
    background: transparent linear-gradient(270deg, #084DA1 0%, #EA1C22 100%) 0% 0% no-repeat padding-box;
    color: #fff;
    padding: 3px 0;
    max-width: 500px;
    margin-bottom: 1rem;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    margin-top: 40px;
    transform: matrix(-1, 0, 0, -1, 0, 0);
}

.hero-bar small {
    transform: matrix(-1, 0, 0, -1, 0, 0);
    display: inline-block;
}

.hero-bar small {
    font-size: 16px;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: bold;
}

/* Solo estilos para ajustar tamaño de letras en hero-section */
.hero-section {
    margin-top: 129px;
}


.hero-section h1,
.hero-section .display-4 {
    font-size: 40px;
    font-family: 'Mulish', sans-serif;
    font-weight: 900;
}

.hero-section h2,
.hero-section .h2 {
    font-size: 2rem;
}

.hero-section p,
.hero-section .lead {
    font-size: 16px;
    font-family: 'Mulish';
    font-weight: 300;
    color: #010924;
    opacity: 1;
    max-width: 510px;
}

@media (max-width: 767.98px) {

    .hero-section h1,
    .hero-section .display-4 {
        font-size: 1.7rem;
        text-align: left;
        font-weight: 900;
        margin-bottom: 1rem;
    }

    .hero-section h2,
    .hero-section .h2 {
        font-size: 1.3rem;
        text-align: left;
        font-weight: 900;
    }

    .hero-section p,
    .hero-section .lead {
        font-size: 1rem;
        text-align: left;
        color: #222;
        margin-bottom: 1.2rem;
    }

    .hero-section .hero-btn-main {
        width: 100%;
        font-size: 1rem;
        padding: 0.85rem 0;
        border-radius: 30px;
        margin-bottom: 0.5rem;
        font-family: 'Segoe UI', Arial, sans-serif;
        font-weight: bold;
    }

    .hero-section .hero-btn-link {
        width: 100%;
        display: block;
        background: none;
        color: #010924;
        font-family: 'Segoe UI', Arial, sans-serif;
        font-weight: bold;
        font-size: 1rem;
        text-decoration: none;
        padding: 0.85rem 0;
        border-radius: 30px;
        border: none;
        text-align: center;
        transition: background 0.2s, color 0.2s;
    }

    .hero-section .hero-btn-link:hover {
        background: #e3f2fd;
        color: #084298;
        text-decoration: underline;
    }

    .hero-section .d-flex.flex-wrap.gap-3.align-items-center {
        flex-direction: column !important;
        gap: 0.7rem !important;
        align-items: stretch !important;
        margin-bottom: 1.2rem;
    }
    .hero-bar small {
        font-size: 16px;
        font-family: 'Segoe UI', Arial, sans-serif;
        font-weight: bold;
        padding-left: 15px;
    }
}