/* ---------------- SECCION HERO ---------------------------*/

.hero-content h1 {

    font-family:"Playfair Display", serif;

    font-size:3rem;

    margin-bottom:20px;

}

#hero {
    position: relative;

    height: 75vh;
    min-height: 500px;
    max-height: 750px;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: translate(-50%, -50%);
}

.overlay {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.45);

    z-index: 1;
}

.hero-content {
    position: relative;

    z-index: 2;

    text-align: center;
    color: white;

    max-width: 800px;
    padding: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ---------------- NUESTRA ESPECIALIDAD ---------------- */

#especialidad {
    background: #fff;
    padding: 3rem 10%;
}

#especialidad h2 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 2.5rem;
}

.especialidad-container{

    max-width:900px;

    margin:0 auto;

}

.feature {

    display: flex;
    align-items: flex-start;
    gap: 2rem;

    padding: 2rem 0;

    border-bottom: 1px solid #e7e2dc;

}

.feature:last-child{

    border-bottom:none;

}

.feature-icon{

    width:90px;

    flex-shrink:0;

    text-align:center;

}

.feature-icon i{

    font-size:2.3rem;

    color:#8B5E3C;

}

.feature-content {

    flex: 1;

}

.feature-content h3 {

    margin-bottom: .8rem;

    font-size: 1.5rem;

}

.feature-content p {

    line-height: 1.8;
    color: #666;

}

/* ---------------- HISTORIA ---------------- */

#historia {
    padding: 80px 10%;
    background-color: #F5F1EA;
}

.historia-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.historia-imagen {
    flex: 0.8;
}

.historia-imagen img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.historia-content {
    flex: 1.2;
}

.historia-content h2 {
    margin-bottom: 25px;
    font-size: 2.5rem;
}

.historia-content p {
    line-height: 1.8;
    margin-bottom: 20px;
}

/*---------------- CLASE REVEAL UTILIZADA PARA HISTORIA Y PARA ESPECIALIDAD---------------*/

.reveal{

    opacity:0;

    transition:
        opacity 1s ease,
        transform 1s ease;

}

.reveal-left{

    transform:translateX(-60px);

}

.reveal-right{

    transform:translateX(60px);

}

.reveal.active{

    opacity:1;

    transform:translateX(0);

}

/* ---------------- SUCURSALES ---------------- */

#sucursales {
    padding: 80px 10%;
    background-color: #fff;
}

#sucursales h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.sucursales-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.sucursales-info {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sucursal-card {
    background-color: #F5F1EA;

    padding: 25px;

    border-radius: 12px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container {
    flex: 1;
}

.map-container iframe {
    width: 100%;
    height: 100%;

    min-height: 400px;

    border: none;

    border-radius: 12px;
}
/* --------------- CONTACTO ---------------*/
#contacto {
    padding: 80px 10%;
    background-color: #F5F1EA;
}

#contacto h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.contacto-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contacto-info,
.contacto-form {
    flex: 1;
    background:white;

    padding:30px;

    border-radius:12px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.contacto-info h3 {
    margin-bottom: 20px;
}

.contacto-info p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.contacto-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.contacto-info li {
    margin-bottom: 15px;
}

.contacto-info a {
    color: #3A2E2A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-info a:hover {
    color: #D9B382;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto-form input,
.contacto-form textarea {
    padding: 15px;

    border: 1px solid #ddd;
    border-radius: 8px;

    font-family: inherit;
}

.contacto-form textarea {
    resize: vertical;
}

/*-----Otros-------*/
.cards-container .card{
    width: 320px;
}

/* ---------------- MOVILES ---------------- */

@media (max-width: 768px) {
    /* HERO */

    #hero {
        padding-top: 160px;
        height: auto;
        min-height: 550px;
    }

    .hero-content {
        width: 90%;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    /* PRODUCTOS */

    #productos,
    #especialidad,
    #historia,
    #sucursales,
    #contacto {
        padding: 60px 8%;
    }

    /* ESPECIALIDAD */
    .feature {

        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;

    }

    .feature-icon {

        width: 45px;
        flex-shrink: 0;
        text-align: center;

    }

    .feature-content h3 {

        margin-top: 0;

    }

    /* HISTORIA */

    .historia-container {
        flex-direction: column;
    }

    .historia-content {
        text-align: center;
    }

    /* SUCURSALES */

    .sucursales-container {
        flex-direction: column;
    }

    .map-container iframe {
        min-height: 300px;
    }

    /* CONTACTO */

    .contacto-container {
        flex-direction: column;
        gap: 25px;
    }

    .contacto-info,
    .contacto-form {
        width: 100%;
    }

    .contacto-info {
        text-align: center;
    }

    .contacto-info ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contacto-form input,
    .contacto-form textarea {
        width: 100%;
    }

    .contacto-form .btn {
        width: 100%;
    }
}

/* ---------------- TABLETS ---------------- */

@media (max-width: 1024px) {
    .historia-container,
    .sucursales-container,
    .contacto-container {
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

}