/* ==================================
   PAGINA HISTORIA - DECORACIONES LIZAVALA
================================== */

.historia-page,
.historia-page *{
    box-sizing:border-box;
}

.historia-page{
    width:90%;
    max-width:1200px;
    margin:60px auto;
    animation:aparecer .8s ease;
}

/*==================================
TITULO
==================================*/

.historia-header{
    text-align:center;
    margin-bottom:55px;
}

.historia-header h1{
    display:inline-block;
    position:relative;
    color:#d94f93;
    font-size:40px;
    margin-bottom:15px;
}

.historia-header h1::after{

    content:"";

    width:110px;

    height:4px;

    background:#f48fb1;

    position:absolute;

    left:50%;

    bottom:-12px;

    transform:translateX(-50%);

    border-radius:30px;

}

.historia-header p{

    color:#666;

    font-size:17px;

}

/*==================================
HISTORIA
==================================*/

.historia-box{

    display:flex;

    gap:40px;

    align-items:stretch;

    background:#fff7fb;

    border-radius:25px;

    padding:35px;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    margin-bottom:60px;

}

.historia-imagen{

    flex:1;

}

.historia-imagen img{

    width:100%;

    height:100%;

    min-height:420px;

    object-fit:cover;

    border-radius:22px;

    transition:.3s;

}

.historia-imagen img:hover{

    transform:scale(1.02);

}

.historia-contenido{

    flex:1.2;

    display:flex;

    flex-direction:column;

}

.historia-contenido h2{

    color:#d94f93;

    margin-bottom:20px;

    font-size:30px;

}

.historia-contenido p{

    color:#555;

    font-size:17px;

    line-height:1.9;

    text-align:justify;

    white-space:pre-line;

    word-break:break-word;

    overflow-wrap:anywhere;

}

/*==================================
MISION VISION OBJETIVO
==================================*/

.historia-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:30px;

    align-items:stretch;

}

.historia-card{

    display:flex;

    flex-direction:column;

    background:#fff;

    border-top:6px solid #f48fb1;

    border-radius:22px;

    padding:30px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.3s;

}

.historia-card:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 35px rgba(0,0,0,.12);

}

.historia-card h2{

    color:#d94f93;

    text-align:center;

    margin-bottom:20px;

    font-size:28px;

}

.historia-card p{

    flex:1;

    color:#666;

    font-size:16px;

    line-height:1.9;

    text-align:justify;

    white-space:pre-line;

    word-break:break-word;

    overflow-wrap:anywhere;

}

/*==================================
SIN INFORMACION
==================================*/

.sin-info{

    background:#fff7fb;

    border-radius:20px;

    padding:60px;

    text-align:center;

    color:#777;

}

/*==================================
ANIMACIONES
==================================*/

@keyframes aparecer{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*==================================
TABLET
==================================*/

@media(max-width:992px){

    .historia-box{

        flex-direction:column;

    }

    .historia-imagen img{

        min-height:320px;

    }

    .historia-header h1{

        font-size:34px;

    }

}

/*==================================
CELULAR
==================================*/

@media(max-width:768px){

    .historia-page{

        width:94%;

        margin:40px auto;

    }

    .historia-header h1{

        font-size:30px;

    }

    .historia-header p{

        font-size:16px;

    }

    .historia-box{

        padding:20px;

        gap:25px;

    }

    .historia-imagen img{

        min-height:240px;

    }

    .historia-contenido h2{

        font-size:26px;

    }

    .historia-contenido p{

        font-size:16px;

    }

    .historia-grid{

        grid-template-columns:1fr;

    }

    .historia-card{

        padding:25px;

    }

}