html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    overflow-x: clip;
    max-width: 100%;
    font-family: 'davlight', sans-serif;
}

.legal-lateral p {
    position: absolute;
    top: 280px;
    right: -50px;
    transform: translateY(-50%) rotate(-90deg);
    font-family: 'davlight', sans-serif;
    font-size: .7rem;
    color: #231f20;
    z-index: 100;
}

.site-header {
    padding: 20px 0;
}

.logo-dav img {
    width: 200px;
    display: block;
}

.site-header .navbar {
    flex-grow: 1;
    justify-content: flex-end;
    z-index: 100;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: #231f20;
    font-family: 'davlight', sans-serif;
    font-size: .9rem;
    padding-left: .6rem;
    padding-right: .6rem;
    cursor: pointer;
}

.nav-link:hover {
    font-family: 'davsemibold', sans-serif;
}

.cta-menu {
    background: linear-gradient(54deg, rgba(126, 27, 27, 1) 0%, rgba(201, 48, 48, 1) 100%);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'davsemibold', sans-serif;
    font-size: .9rem;
    transition: background-color .2s ease;
    display: inline-block;
}

.cta-menu:hover {
    background: linear-gradient(54deg, rgb(96, 24, 24) 0%, rgb(210, 60, 60) 100%);
    color: #ffffff;
}

.hero-section {
    padding-top: 20px;
    padding-bottom: 40px;
}

.banner-hero {
   background: linear-gradient(135deg, #1F4E79, #163A5C);
    border-radius: 20px;
    padding: 40px 0px 40px 60px;
    margin-top: 120px;
    position: relative;
    width: 100%;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
    z-index: 2;
}

.banner-hero-text {
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.banner-hero h1 {
    font-size: 1.5rem;
    font-family: 'davsemibold', sans-serif;
    color: #fff;
    margin: 8px 0;
}

.banner-hero p {
    font-size: 1.3rem;
    font-family: 'davlight', sans-serif;
    color: #fff;
    margin: 0;
}

.banner-hero-img {
    position: absolute;
    right: 0px;
    bottom: 0;
    z-index: 3;
    line-height: 0;
}

.banner-hero-img img {
    width: 580px;
    display: block;
}

.breadcrumb {
    --bs-breadcrumb-divider-color: #fff;
    font-size: .8rem;
    margin-bottom: 0;
}

.banner-hero .breadcrumb .breadcrumb-item {
    color: #ffffff;
    font-family: 'davsemibold', sans-serif;
}

.banner-hero .breadcrumb .breadcrumb-item a {
    color: #ffffff;
    font-family: 'davlight', sans-serif;
    text-decoration: none;
}

.texto-intro p {
    font-family: 'davlight', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8rem;
}

.texto-intro strong {
    font-family: 'davsemibold', sans-serif;
    font-size: 1.3rem;
    line-height: 1.9rem;
}

.seguros-section {
    padding: 20px 0 70px;
}

.nav-seguros {
    flex-direction: column;
    gap: 14px;
}

.nav-seguros .btn-seguro {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    background-color: #f2f2f2;
    border: 0;
    border-radius: 16px;
    padding: 16px 20px;
    color: #231f20;
    font-family: 'davsemibold', sans-serif;
    font-size: 1rem;
    line-height: 1.3rem;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.btn-seguro .icono-seguro {
    position: relative;
    flex: 0 0 42px;
    width: 30px;
    height: 30px;
}

.btn-seguro .icono-seguro .icono-3d{
    position: relative;
    flex: 0 0 42px;
    width: 65px;
    height: 65px;
    top: -18px;
    left: -15px;
}

.btn-seguro .icono-seguro img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .3s ease, transform .3s ease;
}

.btn-seguro .icono-3d {
    opacity: 0;
    transform: scale(.8);
}

.btn-seguro .icono-2d {
    opacity: 1;
}

.nav-seguros .btn-seguro:hover,
.nav-seguros .btn-seguro.active,
.nav-seguros .btn-seguro:focus-visible {
    background-color: #231f20;
    color: #ffffff;
}

.nav-seguros .btn-seguro:focus-visible {
    outline: 2px solid #c93030;
    outline-offset: 2px;
}

.btn-seguro:hover .icono-2d,
.btn-seguro.active .icono-2d,
.btn-seguro:focus-visible .icono-2d {
    opacity: 0;
    transform: scale(1.1);
}

.btn-seguro:hover .icono-3d,
.btn-seguro.active .icono-3d,
.btn-seguro:focus-visible .icono-3d {
    opacity: 1;
    transform: scale(1);
}

.btn-seguro .texto-seguro{
    font-size: 1.1rem;
}

.panel-seguros {
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    padding: 30px;
}

.card-producto {
    background-color: #f7f7f7;
    border-radius: 20px;
    padding: 30px;
    height: auto;
}

.img-producto {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.img-producto img {
    max-width: 260px;
}

.bajada-producto {
    font-family: 'davlight', sans-serif;
    font-size: 1.3rem;
    line-height: 1.6rem;
    color: #231f20;
    margin-bottom: 10px;
}

.titulo-producto {
    font-family: 'davsemibold', sans-serif;
    font-size: 1.5rem;
    line-height: 2rem;
    color: #231f20;
    margin-bottom: 16px;
}

.desc-producto {
    font-family: 'davlight', sans-serif;
    font-size: 1rem;
    line-height: 1.6rem;
    color: #231f20;
    margin-bottom: 24px;
}

.desc-producto strong {
    font-family: 'davsemibold', sans-serif;
}

.legal-producto {
    font-family: 'davlight', sans-serif;
    font-size: .75rem;
    line-height: 1.2rem;
    color: #231f20;
    margin: 14px 0 0;
}

.legal-producto a {
    color: #231f20;
}

/* Botón rojo reutilizable */
.btn-dav {
    display: inline-block;
    background: linear-gradient(54deg, rgba(126, 27, 27, 1) 0%, rgba(201, 48, 48, 1) 100%);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'davsemibold', sans-serif;
    font-size: 1rem;
    transition: background .2s ease;
}

.btn-dav:hover {
    background: linear-gradient(54deg, rgb(96, 24, 24) 0%, rgb(210, 60, 60) 100%);
    color: #ffffff;
}

.card-beneficios {
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    padding: 26px;
}

.card-beneficios h3 {
    font-family: 'davsemibold', sans-serif;
    font-size: 1.2rem;
    color: #231f20;
    text-align: center;
    margin-bottom: 20px;
}

.lista-beneficios {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-beneficios li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 16px;
    font-family: 'davlight', sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #231f20;
}

.lista-beneficios li:last-child {
    margin-bottom: 0;
}

.lista-beneficios li::before {
    content: "›";
    position: absolute;
    left: 4px;
    top: -2px;
    font-size: 1.2rem;
    color: #231f20;
}

.lista-beneficios .detalle {
    display: block;
}

.lista-beneficios-extra.show,
.lista-beneficios-extra.collapsing {
    margin-top: 16px;
}

.acciones-beneficios {
    text-align: center;
    margin-top: 22px;
}

.btn-coberturas {
    display: inline-block;
    background-color: #231f20;
    border: 0;
    border-radius: 30px;
    color: #ffffff;
    padding: 10px 26px;
    font-family: 'davsemibold', sans-serif;
    font-size: .95rem;
    cursor: pointer;
    transition: background-color .2s ease;
}

.btn-coberturas:hover {
    background-color: #3d3839;
    color: #ffffff;
}

.btn-coberturas:focus-visible {
    outline: 2px solid #c93030;
    outline-offset: 2px;
}

/* El texto del botón cambia según el estado del collapse */
.btn-coberturas .txt-ocultar {
    display: none;
}

.btn-coberturas[aria-expanded="true"] .txt-ver {
    display: none;
}

.btn-coberturas[aria-expanded="true"] .txt-ocultar {
    display: inline;
}

.nota-legal {
    font-family: 'davlight', sans-serif;
    font-size: .7rem;
    line-height: 1.1rem;
    color: #231f20;
    margin: 16px 0 0;
    padding: 0 6px;
}

/* Caja de asistencias con chips */
.card-asistencia {
    background-color: #f7f7f7;
    border-radius: 20px;
    padding: 30px;
    margin-top: 24px;
}

.card-asistencia h3 {
    font-family: 'davsemibold', sans-serif;
    font-size: 1.2rem;
    color: #231f20;
    margin-bottom: 22px;
}

.chips-asistencia {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip {
    display: inline-block;
    max-width: 100%;
    border: 1px solid #cfcfcf;
    border-radius: 12px;
    background-color: #ffffff;
    padding: 10px 16px;
    font-family: 'davlight', sans-serif;
    font-size: .95rem;
    line-height: 1.4rem;
    color: #231f20;
}

.cta-final {
    text-align: center;
    margin-top: 30px;
}

.modal-header img{
    width: 150px;
    
}

/*--- RESPONSIVE SECCIÓN SEGUROS ---*/
@media (max-width: 991px) {

    /* En tablet/móvil los botones se acomodan en dos columnas */
    .nav-seguros {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-seguros .btn-seguro {
        width: calc(50% - 7px);
        font-size: .95rem;
    }
}

@media (max-width: 767px) {
    .legal-lateral p {
        top: 200px;
        right: -65px;
        font-size: .6rem;
    }

    .logo-dav img {
        width: 160px;
    }

    .banner-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        min-height: auto;
        margin-top: 10px;
    }

    .banner-hero-text {
        max-width: 100%;

    }

    .banner-hero-img {
        display: none;
    }

    .banner-hero h1 {
        font-size: 1.3rem;
    }

    .banner-hero p {
        font-size: 1rem;
    }

    .texto-intro p {
        font-size: 1rem;
        line-height: 1.6rem;
    }

    .texto-intro strong {
        font-size: 1rem;
        line-height: 1.6rem;
    }

    /* Seguros */
    .nav-seguros .btn-seguro {
        width: 100%;
        padding: 14px 16px;
        font-size: .9rem;
    }

    .btn-seguro .icono-seguro {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
    }

    .panel-seguros,
    .card-producto,
    .card-asistencia {
        padding: 20px;
    }

    .titulo-producto {
        font-size: 1.2rem;
        line-height: 1.7rem;
    }

    .img-producto img {
        max-width: 180px;
    }

    .chip {
        font-size: .85rem;
        padding: 8px 14px;
    }

    .btn-coberturas {
        font-size: .9rem;
        padding: 10px 22px;
    }
}

/* Accesibilidad: respeta reducción de movimiento */
@media (prefers-reduced-motion: reduce) {

    .nav-seguros .btn-seguro,
    .btn-seguro .icono-seguro img {
        transition: none;
    }
}

.menu-transversal {
    padding: 10px 0 70px;
}

.card-transversal {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
    border-radius: 20px;
    overflow: hidden;
    padding: 20px 5px 0;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease;
}

.card-transversal:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 26px rgba(35, 31, 32, .20);
}

.card-transversal:focus-visible {
    outline: 3px solid #231f20;
    outline-offset: 3px;
}

.titulo-transversal {
    position: relative;
    z-index: 2;
    margin: 0;
    text-align: center;
    color: #ffffff;
    font-family: 'davsemibold', sans-serif;
    font-size: 1.2rem;
    line-height: 2rem;
}

.img-transversal {
    margin-top: auto;
    margin-left: -18px;
    margin-right: -18px;
}
.img-transversal img {
    width: 100%;
    max-width: 100%;
}

.img-transversal img {
    transform-origin: center bottom;
    transition: transform .4s ease;
}
.card-transversal:hover .img-transversal img {
    transform: scale(1.04);
}

.btn-transversal {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 3;
    background-color: #ffffff;
    color: #231f20;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'davsemibold', sans-serif;
    font-size: 1rem;
    white-space: nowrap;
    transition: background-color .2s ease;
}

.card-transversal:hover .btn-transversal {
    background-color: #f2f2f2;
}

/* Paleta reutilizable de las cards */
.card-red {
    background: linear-gradient(135deg, #C93030, #7A1F1F);
}

.card-teal {
    background: linear-gradient(135deg, #4C9B94, #2E6F6A);
}

.card-orange {
    background: linear-gradient(135deg, #D98A3D, #B96A22);
}

.card-blue {
    background: linear-gradient(135deg, #1F4E79, #163A5C);
}

.card-black{
    background: linear-gradient(135deg, #000000, #5e5e5e);
}

.footer p{
    font-family: 'davlight', sans-serif;
    font-size: .8rem;
    color: #231f20;
}

.footer p a{
    font-family: 'davsemibold', sans-serif;
    font-size: .8rem;
    color: #231f20;
    text-decoration: none;
    cursor: pointer;
}

.footer strong{
    font-family: 'davsemibold', sans-serif;
    font-size: .8rem;
    color: #231f20;
    padding-bottom: 25px;
}

@media (max-width: 991px) {
    .titulo-transversal {
        font-size: 1.15rem;
        line-height: 1.5rem;
    }

    .btn-transversal {
        font-size: .9rem;
        padding: 9px 20px;
    }
}

@media (max-width: 767px) {
    .menu-transversal {
        padding-bottom: 50px;
    }

    .card-transversal {
        min-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .card-transversal,
    .btn-transversal {
        transition: none;
    }

    .card-transversal:hover {
        transform: none;
    }
}

/*==========================================
  MODAL FORMULARIO
==========================================*/
.modal-dav .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}

.modal-dav .modal-header {
    border-bottom: 0;
    padding: 14px 20px;
    min-height: 60px;
    align-items: center;
}

.modal-dav .logo-modal img {
    display: block;
}


.modal-dav .modal-body {
    padding: 26px 28px 34px;
}

.titulo-formulario {
    font-family: 'davsemibold', sans-serif;
    text-align: center;
    color: #231f20;
    font-size: 1.3rem;
    line-height: 1.5rem;
    margin-bottom: 26px;
    padding: 0px 10px;
}

/*--- CAMPOS ---*/
.campo-form {
    margin-bottom: 16px;
    padding: 0px 20px;
}

.form-dav .form-label {
    color: #231f20;
    font-family: 'davlight', sans-serif;
    font-size: .95rem;
    margin-bottom: 6px;
}

.form-dav .label-detalle {
    color: #575756;
    font-family: 'davlight', sans-serif;
    font-size: .8rem;
}

.form-dav .form-control,
.form-dav .form-select {
    border: 1px solid #cfcfcf;
    border-radius: 30px;
    padding: 10px 18px;
    font-family: 'davlight', sans-serif;
    font-size: 1rem;
    color: #231f20;
    box-shadow: none;
}

/* Cuando el producto ya viene definido por el boton o por la URL, el campo se
   deja fijo (disabled). Se conserva el aspecto de un campo normal: lo unico que
   cambia es que no se puede desplegar la lista. */
.form-dav .form-select:disabled {
    background-color: #fff;
    color: #231f20;
    opacity: 1;
    cursor: default;
}

.form-dav .form-control:focus,
.form-dav .form-select:focus {
    border-color: #ed1c27;
    box-shadow: 0 0 0 .15rem rgba(201, 48, 48, .18);
}

/*--- AVISO DE PRIVACIDAD (ACORDEÓN) ---*/
.texto-privacidad {
    font-family: 'davlight', sans-serif;
    font-size: .8rem;
    line-height: 1.5rem;
    text-align: center;
    color: #231f20;
    margin: 24px 0 0;
}

.link-privacidad {
    color: #231f20;
    font-family: 'davsemibold', sans-serif;
    text-decoration: underline;
    cursor: pointer;
}

.link-privacidad:hover {
    color: #363636;
}

.contenido-privacidad {
    padding-top: 18px;
}

.contenido-privacidad h3 {
    color: #231f20;
    font-family: 'davsemibold', sans-serif;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.5rem;
    margin-bottom: 16px;
    padding: 0px 15px;
}

.contenido-privacidad p {
    font-family: 'davlight', sans-serif;
    font-size: .8rem;
    line-height: 1.4rem;
    text-align: justify;
    color: #231f20;
    margin: 0;
    padding: 0px 15px;
}

/*--- ACEPTO + ENVIAR ---*/
.acepto-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
}

.acepto-form .form-check-input {
    float: none;
    margin: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #231f20;
    border-radius: 50%;
    cursor: pointer;
}

.acepto-form .form-check-input:checked {
    background-color: #ed1c27;
    border-color: #ed1c27;
}

.acepto-form .form-check-input:focus {
    box-shadow: 0 0 0 .15rem rgba(201, 48, 48, .18);
}

.acepto-form .form-check-label {
    color: #231d20;
    font-family: 'davsemibold', sans-serif;
    font-size: .8rem;
    cursor: pointer;
}

.acciones-form {
    text-align: center;
    margin-top: 22px;
}

.btn-enviar {
    background: linear-gradient(54deg, rgba(126, 27, 27, 1) 0%, rgba(201, 48, 48, 1) 100%);
    border: 0;
    border-radius: 30px;
    color: #ffffff;
    font-family: 'davsemibold', sans-serif;
    font-size: 1.3rem;
    padding: 8px 46px;
    cursor: pointer;
    transition: background .2s ease;
}

.btn-enviar:hover {
    background: linear-gradient(54deg, rgb(96, 24, 24) 0%, rgb(210, 60, 60) 100%);
    color: #ffffff;
}

@media (max-width: 575px) {
    .modal-dav .modal-body {
        padding: 20px 18px 28px;
    }

    .titulo-formulario {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .btn-enviar {
        font-size: 1.15rem;
        padding: 8px 38px;
    }
}
