/* Importar estilos base */
@import url('styles.css');

/* Sección Siniestros */
.siniestros-section {
    padding: 140px 0 80px;
    background-color: #FFFFFF;
    min-height: calc(100vh - 140px);
    position: relative;
}

.siniestros-section h1 {
    font-family: 'SUSE', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 49px;
    color: #019C9E;
    text-align: center;
    margin-bottom: 60px;
}

/* Contenedor principal */
.siniestros-content {
    max-width: 1475px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Imagen de cabecera */
.siniestros-header-image {
    width: 100%;
    max-width: 1475px;
    height: 300px;
    border-radius: 113px;
    overflow: hidden;
    margin-bottom: 40px;
}

.siniestros-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texto descriptivo */
.siniestros-description {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #333333;
    margin-bottom: 60px;
    max-width: 800px;
}

/* Estructura base mantenida del info-box */
.line-24 {
    text-align: center;
}

.info-box-icon-24{
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 83px;
    margin-left: 180px;
}

.info-box-title-24 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    margin-bottom: 10px;
    color: #019C9E;
    font-weight: 400;
    line-height: 44.24px;
    align-items: center;
}

.info-box-phone-24 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    color: #F68E2F;
    font-weight: 700;
    line-height: 59px;
    align-items: center;
}

.info-box {
    width: 1479px;
    max-width: calc(100% - 40px);
    margin: 20px auto;
    background: #FEFEFE;
    box-shadow: 0px 4px 7.7px 13px rgba(0, 0, 0, 0.03);
    border-radius: 60px;
    padding: 40px;
    display: flex;
    align-items: center;
    /*gap: 20px;*/
    position: relative;
}

.info-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 73px;
    margin-right: 50px;
    margin-left: 80px;
}

.info-box-icon img {
    width: 73px;
    height: 73px;
    object-fit: contain;
}

.info-box-content {
    display: flex;
    flex: 1;
    min-height: 180px; /* Aseguramos altura mínima consistente */
    align-items: center;
}

.info-box-left {
    flex: 0 0 250px;
    padding-right: 30px;
    position: relative; /* Para poder posicionar la línea */
}

/* Usamos un pseudo-elemento para la línea vertical */
.info-box-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 180px; /* Altura fija igual que el primer info-box */
    background-color: #019C9E;
}

.info-box-title-laboral {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.info-box-title-urgencias {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.info-box-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.info-box-phone {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.info-box-email {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #333;
}

.info-box-right {
    flex: 1;
    margin-right: 80px;
    padding-left: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 29.5px;
    color: #333;
}

.info-box-right strong {
    font-weight: 700;
}

/* Estilos para las compañías de seguros */
.insurance-companies {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 20px;
    padding-left: 40px;
}

.company {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.company-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #333;
}

.company-phone {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #333;
}

/* Estilos para la sección que hacer */
.info-box-que-hacer {
    width: 1230px;
    height: 650px;
    margin: 60px auto;
    background: #FEFEFE;
    padding: 40px 80px;
}

.info-box-que-hacer h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 30px;
    text-align: center;
    line-height: 29.5px;
    color: #019C9E;
    margin-bottom: 40px;
}

.info-box-que-hacer p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #333333;
    margin-bottom: 10px;
}

.info-box-que-hacer strong {
    font-weight: 700;
}

.info-box-que-hacer ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.info-box-que-hacer li {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #333333;
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
}

.info-box-que-hacer li::before {
    content: "•";
    color: #019C9E;
    position: absolute;
    left: 0;
}


/* Final section */
.final-section {
    width: 1479px;
    max-width: calc(100% - 40px);
    margin: 40px auto;
    background: #FEFEFE;
    box-shadow: 0px 4px 7.7px 13px rgba(0, 0, 0, 0.03);
    border-radius: 60px;
    padding: 40px;
    text-align: center;
}

.final-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #F68E2F;
    margin-bottom: 30px;  /* Un poco más de espacio después del título */
}

.final-section p {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    line-height: 29.5px;
    color: #333;
    margin-bottom: 5px;  /* Reducido de 20px a 5px */
}

/* Para el último párrafo, eliminamos el margin-bottom */
.final-section p:last-child {
    margin-bottom: 0;
}

/* Botón back to top modificado */
.back-to-index {
    width: 57px;
    height: 57px;
    border-radius: 50%;
    border: none;
    background: #F68E2F;
    display: none;
    display: flex !important;
    transform: rotate(-90deg);
}

.back-to-index svg {
    transform: rotate(90deg);
}

.back-to-index svg path {
    stroke: #FFFFFF;
    stroke-width: 2.8px;
}

.back-to-index:hover {
    background: #03C59D;
}


/* Responsive desktop and tablets */
@media screen and (max-width: 1536px) {

    .siniestros-section{
        width: 1500px;
        margin: 0;
    }

    #siniestros-titulo{
        font-size: 30px;
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .siniestros-content{
        justify-content: center;
        align-items:center;
    }

    /* Imagen de cabecera */
    .siniestros-header-image {
        width: 90%;
        max-width: 1400px;
    }

    /* Estructura base mantenida del info-box */
    .info-box {
        width: 1300px;
        max-width: calc(100% - 40px);
    }

    .nautico {
        width: 1300px;
        max-width: calc(100% - 40px);
        height: 260px;
    }

    .info-box-icon img {
        width: 63px;
        height: 63px;
        object-fit: contain;
    }

    .info-box-right{
        font-size: 16px;
    }

    .company-name{
        font-size: 18px;
    }

    .company-phone{
        font-size: 18px;
    }

    .info-box-que-hacer h2{
        font-size: 26px;
    }

    /* Final section */
    .final-section {
        width: 1400px;
        padding: 20px;
        max-width: calc(100% - 40px);
    }

    .final-section h2 {
        font-size: 20px;
        margin-bottom: 26px;  /* Un poco más de espacio después del título */
    }

    .final-section p {
        font-size: 20px;
        line-height: 25px;
    }

    .back-to-index {
        width: 45px;
        height: 45px;
    }

}

@media screen and (max-width: 1366px) {

    .siniestros-section{
        width: 1300px;
        margin: 0;
    }

    #siniestros-titulo{
        font-size: 30px;
        margin-top: 0px;
        margin-bottom: 25px;
    }

    .siniestros-content{
        justify-content: center;
        align-items:center;
    }

    /* Imagen de cabecera */
    .siniestros-header-image {
        width: 90%;
        max-width: 1300px;
    }

    .info-box-que-hacer {
        width: 80%;
        height: auto;
        padding: 40px;
    }

    /* Estructura base mantenida del info-box */
    .info-box {
        width: 1200px;
        max-width: calc(100% - 30px);
    }

    .info-box-icon{
        margin-left: 50px;
    }

    .info-box-right{
        margin-right: 20px;
    }

    .nautico {
        width: 1200px;
        max-width: calc(100% - 30px);
        height: 260px;
    }

        /* Final section */
        .final-section {
            width: 1300px;
            padding: 20px;
            max-width: calc(100% - 30px);
        }
    
        .final-section h2 {
            font-size: 20px;
            margin-bottom: 26px;  /* Un poco más de espacio después del título */
        }
    
        .final-section p {
            font-size: 20px;
            line-height: 25px;
        }

    .back-to-index {
        width: 45px;
        height: 45px;
    }
}


/* Tablet landscape */
@media screen and (max-width: 1024px) {
    .siniestros-header-image {
        height: 250px;
        border-radius: 80px;
    }

    .info-box {
        padding: 30px;
        border-radius: 40px;
    }
}

/* Tablet portrait */
@media screen and (max-width: 768px) {
    .siniestros-header-image {
        height: 200px;
        border-radius: 60px;
    }

    .info-box {
        flex-direction: column;
        padding: 20px;
        width: calc(100% - 40px);
    }

    .info-box-content {
        flex-direction: column;
    }
}

/* Responsive mobile */
@media screen and (max-width: 430px) {
    .siniestros-section {
        padding: 80px 20px 40px;
        width: 100%;
    }

    #siniestros-titulo {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .siniestros-content {
        width: 100%;
        padding: 0;
    }

    /* Ajuste de la imagen de cabecera */
    .siniestros-header-image {
        width: 100%;
        height: 103px;
        border-radius: 15px;
        margin: 0 0 30px 0;
    }

    .siniestros-header-image img {
        width: 100%;
        height: 103px;
        object-fit: fill;
    }

    /* Ajuste de los info-box */

    /* Estilos para la nueva info-box 24hs */
    .info-box-title-24 {
        font-size: 18px;
        line-height: 1.3;
    }

    .info-box-phone-24 {
        font-size: 24px;
    }

    .info-box-icon-24 {
        margin-left: 0;
        margin-bottom: 15px;
        width: 60px;
    }

    .info-box {
        width: 100%;
        padding: 20px;
        margin: 15px auto;
        border-radius: 25px;
        flex-direction: column;
    }

    .info-box.nautico {
        width: 100%;
        height: auto;
        padding: 20px;
        margin: 15px auto;
        border-radius: 25px;
        flex-direction: column;
    }

    .info-box-icon {
        margin: 0 0 15px 0;
        width: 50px;
    }


    .info-box-content {
        width: 100%;
        min-height: auto;
        flex-direction: column;
        align-items: center;
        gap: 0; /* Eliminamos el gap entre elementos */
    }

    .info-box-left {
        width: 100%;
        height: auto; /* Eliminamos la altura fija */
        padding: 0;
        margin: 15px; /* Eliminamos el margen */
        text-align: center;
        flex: none;  /* Anulamos el flex del desktop */
        min-height: 0;  /* Anulamos la altura mínima */
    }

    .info-box-left::after {
        display: none; /* Ocultamos la línea vertical en móvil */
    }

    .info-box-right {
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .info-box-right.laboral{
        display: none;
    }

    /* Sección de compañías aseguradoras */
    .insurance-companies {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }

    .company {
        text-align: center;
    }

    .company-name {
        font-size: 16px;
    }

    .company-phone {
        font-size: 14px;
    }

    /* Sección qué hacer */
    .info-box-que-hacer {
        width: 100%;
        height: auto;
        padding: 20px;
        margin: 30px 0;
    }

    .info-box-que-hacer h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .info-box-que-hacer p,
    .info-box-que-hacer li {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Sección final ART */
    .final-section {
        width: 100%;
        padding: 20px;
        border-radius: 25px;
        margin: 30px 0;
    }

    .final-section h2 {
        margin-top: 15px;
        font-size: 18px;
        color: #F68E2F;
    }

    .final-section p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 428px) {
    .siniestros-section {
        padding: 80px 20px 40px;
        width: 100%;
    }

    #siniestros-titulo {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .siniestros-content {
        width: 100%;
        padding: 0;
    }

    /* Ajuste de la imagen de cabecera */
    .siniestros-header-image {
        width: 100%;
        height: 103px;
        border-radius: 15px;
        margin: 0 0 30px 0;
    }

    .siniestros-header-image img {
        width: 100%;
        height: 103px;
        object-fit: fill;
    }

    /* Ajuste de los info-box */

    /* Estilos para la nueva info-box 24hs */
    .info-box-title-24 {
        font-size: 18px;
        line-height: 1.3;
    }

    .info-box-phone-24 {
        font-size: 24px;
    }

    .info-box-icon-24 {
        margin-left: 0;
        margin-bottom: 15px;
        width: 60px;
    }

    .info-box {
        width: 100%;
        padding: 20px;
        margin: 15px auto;
        border-radius: 25px;
        flex-direction: column;
    }

    .info-box.nautico {
        width: 100%;
        height: auto;
        padding: 20px;
        margin: 15px auto;
        border-radius: 25px;
        flex-direction: column;
    }

    .info-box-icon {
        margin: 0 0 15px 0;
        width: 50px;
    }


    .info-box-content {
        width: 100%;
        min-height: auto;
        flex-direction: column;
        align-items: center;
        gap: 0; /* Eliminamos el gap entre elementos */
    }

    .info-box-left {
        width: 100%;
        height: auto; /* Eliminamos la altura fija */
        padding: 0;
        margin: 15px; /* Eliminamos el margen */
        text-align: center;
        flex: none;  /* Anulamos el flex del desktop */
        min-height: 0;  /* Anulamos la altura mínima */
    }

    .info-box-left::after {
        display: none; /* Ocultamos la línea vertical en móvil */
    }

    .info-box-right {
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .info-box-right.laboral{
        display: none;
    }

    /* Sección de compañías aseguradoras */
    .insurance-companies {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }

    .company {
        text-align: center;
    }

    .company-name {
        font-size: 16px;
    }

    .company-phone {
        font-size: 14px;
    }

    /* Sección qué hacer */
    .info-box-que-hacer {
        width: 100%;
        height: auto;
        padding: 20px;
        margin: 30px 0;
    }

    .info-box-que-hacer h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .info-box-que-hacer p,
    .info-box-que-hacer li {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Sección final ART */
    .final-section {
        width: 100%;
        padding: 20px;
        border-radius: 25px;
        margin: 30px 0;
    }

    .final-section h2 {
        margin-top: 15px;
        font-size: 18px;
        color: #F68E2F;
    }

    .final-section p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 414px) {
    .siniestros-section {
        min-height: auto; /* O un valor que se ajuste a tu contenido */
        height: fit-content;
        padding: 80px 20px 40px;
        width: 100%;
    }


    .siniestros-description{
        font-size: 16px;
    }

}

@media screen and (max-width: 412px) {
    .siniestros-section {
        min-height: auto; /* O un valor que se ajuste a tu contenido */
        height: fit-content;
        padding: 80px 20px 40px;
        width: 100%;
    }


    .siniestros-description{
       font-size: 16px;
    }

}