/* ========================================
   SEGUROS.CSS - DPI del Perú
   Estilos para la sección Seguros
======================================== */

/* ========================================
   SECCIÓN SEGUROS
======================================== */
.seguros-section {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.seguros-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.seguros-left {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.seguros-right {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.seguros-left-content {
    width: 70%;
}

.seguros-title {
    display: flex;
    justify-content: center;
    margin-bottom: 3.5vh;
}

.seguros-title .title-image {
    width: 100%;
    max-width: 65vh;
    height: auto;
}

.seguros-text {
    color: #ffffff;
    font-size: 4vh;
    line-height: 1.2;
    font-weight: 300;
    text-align: center;
}

.seguros-text b {
    font-weight: 800;
}

.seguros-text p {
    margin: 0;
}

.seguros-text strong {
    font-weight: 800;
}

.personaje-image-container {
    position: relative;
    z-index: 2;
    width: 80vh;
}

.personaje-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   NUBES DECORATIVAS
======================================== */
.nube {
    position: absolute;
    z-index: 1;
}

.nube-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Nube 1 - Detrás del dedo del personaje */
.nube-1 {
    top: 20%;
    right: 2%;
    width: 28vh;
    z-index: 1;
    animation: floatNube1 4s ease-in-out infinite;
}

/* Nube 2 - Delante de la manga del personaje */
.nube-2 {
    right: 55vh;
    bottom: 15%;
    width: 35vh;
    z-index: 3;
    animation: floatNube2 4s ease-in-out infinite reverse;
}

/* ========================================
   ANIMACIONES
======================================== */
@keyframes floatNube1 {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-2vh) translateX(1vh);
    }
}

@keyframes floatNube2 {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-2vh) translateX(-1vh);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-8vh);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(8vh);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVE - SEGUROS SECTION
======================================== */
@media (max-width: 1200px) {
    .seguros-title .title-image {
        max-width: 80vh;
    }

    .seguros-text {
        font-size: 4vh;
        padding: 0 5vh;
    }

    .nube-1 {
        width: 25.5vh;
    }

    .nube-2 {
        width: 32vh;
    }
}

@media (max-width: 990px) {
    .seguros-section {
        height: 100%;
    }

    .seguros-container {
        grid-template-columns: 1fr; /* Cambiar a una columna */
        gap: 10vh;
        text-align: center;
    }

    .seguros-left {
        order: 1;
    }

    .seguros-right {
        order: 2;
    }

    .title-image {
        padding-top: 5vh;
    }

    .seguros-title .title-image {
        max-width: 70vh;
    }

    .nube-1 {
        top: 45%;
        width: 22.5vh;
    }

    .nube-2 {
        bottom: 20%;
        width: 27vh;
    }
}

@media (max-width: 768px) {
    .seguros-title .title-image {
        max-width: 60vh;
    }

    .personaje-image-container {
        width: 65vh;
    }

    .nube-1 {
        top: 50%;
        width: 20vh;
    }

    .nube-2 {
        width: 20vh;
        right: 50vh;
    }

    .seguros-container {
        gap: 0;
    }
}

@media (max-width: 576px) {
    .seguros-container {
        gap: 5vh;
    }

    .seguros-title {
        margin-bottom: 1vh;
    }

    .seguros-text p {
        line-height: 1;
    }

    .seguros-title .title-image {
        max-width: 50vh;
    }

    .seguros-text {
        font-size: 2.5vh;
        padding: 0 2vh;
        line-height: 1.5;
    }

    .seguros-left {
        padding: 5vh 0;
    }

    .personaje-image-container {
        width: 90vw;
    }

    .nube-1 {
        top: 50%;
        right: 5vw;
        width: 25vw;
    }

    .nube-2 {
        right: 65vw;
        width: 30vw;
    }
} 