/* =================================== */
/* ==== ESTILOS ORIGINALES (BASE) ==== */
/* =================================== */

.info-seccion {
    padding: 2rem 2rem;
    background: #ffffff;
    text-align: center;
}

.titulo-seccion {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #161718;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    font-family: 'Cormorant Garamond', serif;
}

.tarjetas-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 10px;
}

.tarjeta-info {
    position: relative;
    width: 380px;
    height: 300px;
    background: linear-gradient(145deg, #e6e4ec, #ffffff);
    border-radius: 20px;
    box-shadow: 8px 8px 16px #d1d1d9, -8px -8px 16px #ffffff;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
    perspective: 1000px;
}

.tarjeta-info:hover {
    transform: scale(1.05);
}

.tarjeta-frente,
.tarjeta-detras {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    backface-visibility: hidden;
    transition: transform 0.6s ease;
    display: flex;
    flex-direction: column; /* Para centrar mejor el texto */
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.tarjeta-frente {
    background: #141a45;
    color: #fafafa;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    z-index: 2;
    border: 3px solid #232b78;
}

.tarjeta-detras {
    background: #fefefe;
    color: #403050;
    font-size: 1.4rem;
    border: 3px solid #323032;
    transform: rotateY(180deg);
}

.tarjeta-info:hover .tarjeta-frente {
    transform: rotateY(180deg);
}

.tarjeta-info:hover .tarjeta-detras {
    transform: rotateY(0deg);
    z-index: 3;
}

.contacto-section {
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 18px;
    margin: 30px auto;
    max-width: 700px;
    text-align: center;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}

.contacto-section h2 {
    font-size: 45px;
    margin-bottom: 1rem;
    color: #161718;
    font-family: "Cormorant Garamond", serif;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
}

.contacto-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.9;
    color: #2f3640;
}

.formulario-contacto {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background-color: #141a45;
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.campo {
    margin-bottom: 20px;
}

.campo label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffffff;
}

.campo input,
.campo textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    background: #fefefe;
    color: #333;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campo input:focus,
.campo textarea:focus {
    outline: none;
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(18, 15, 204, 0.6);
}

.btn-enviar {
    background: #7c170d;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    margin-top: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn-enviar:hover {
    background: #da4032;
    transform: scale(1.03);
}

.contacto-botones {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.btn-contacto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e1e1e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-contacto img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.btn-contacto:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-contacto:hover img {
    transform: scale(1.2);
}

.whatsapp2:hover { background: #25D366; }
.telefono:hover { background: #1a73e8; }
.gmail:hover { background: #EA4335; }


.quienes-somos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 60px 30px;
    background: #ffffff;
    gap: 30px;
}

.quienes-somos .contenido {
    flex: 1 1 400px;
}

.quienes-somos .contenido h2 {
    font-size: 3.5rem;
    color: #161718;
    margin-bottom: 20px;
    margin-left: 75px;
}

.quienes-somos .contenido p {
    font-size: 1.2rem;
    color: #2f3640;
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: justify;
}

.quienes-somos .imagen {
    flex: 1 1 400px;
    text-align: center;
}

.quienes-somos .imagen img {
    max-width: 100%;
    height: 450px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}


.valores-contenedor h3 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #161718;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    max-width: 1000px;
    margin: 15px auto 30px auto;
    grid-auto-rows: 120px;
}

.valores-grid li {
    background: #ffffff;
    color: black;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}


.valores-contenedor p{
    text-align: center;
    font-size: 1.4rem;
    padding-bottom: 25px;
    padding-top: 15px;
    color: #2f3640;
}


.valor {
    position: relative;
    background: #caf0f8;
    color: #023e8a;
    padding: 1rem;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.valor:hover {
    transform: scale(1.05);
    background: #ade8f4;
}


.valores-grid li:hover {
    transform: scale(1.05);
    background: #141a45;
    color: white;
}

.valor::after {
    content: attr(data-descripcion);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e1e1e1;
    color: #333333;
    padding: 0.8rem 1rem;
    width: 220px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    z-index: 10;
    border: 1px solid #7c170d;
}

.valor:hover::after {
    opacity: 1;
}

.visit-us {
    display: flex;
    gap: 2rem;
    margin-left: 25px;
    margin-right: 25px;
    margin-top: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.visit-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visit-info h1 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #161718;
    text-align: center;
}

.visit-info p {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #2f3640;
    margin-top: 20px;
}

.visit-map {
    flex: 1;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}


/* ============================================ */
/* ==== 📱 MEDIA QUERIES RESPONSIVAS 📱 ==== */
/* ============================================ */

/* --- Para Tablets (hasta 992px) --- */
@media (max-width: 992px) {
    .valores-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}


/* --- Para Tablets y Móviles (hasta 900px) --- */
@media (max-width: 900px) {
    .quienes-somos {
        flex-direction: column-reverse;
        text-align: center;
    }

    .quienes-somos .contenido, 
    .quienes-somos .imagen {
        flex: 1 1 100%;
    }
    
    .quienes-somos .contenido h2 {
        margin-left: 0; /* Centra el título en móvil */
    }
}


/* --- Para Móviles (hasta 768px) --- */
@media (max-width: 768px) {
    /* Ajustes generales de tipografía */
    .titulo-seccion, .valores-contenedor h3 { font-size: 2.2rem; }
    .contacto-section h2 { font-size: 2rem; }
    .quienes-somos .contenido h2 { font-size: 2.5rem; }
    .visit-info h1 { font-size: 2rem; }

    /* Tarjetas giratorias */
    .tarjeta-info {
        width: 90%; /* Ancho flexible */
        max-width: 350px; /* Ancho máximo para que no se estire demasiado */
    }
    
    .tarjeta-frente { font-size: 2.5rem; }
    .tarjeta-detras { font-size: 1.1rem; }
    
    /* Sección de contacto */
    .contacto-section {
        padding: 1.5rem 1rem;
        margin: 20px;
    }
    
    .formulario-contacto {
        padding: 1.5rem;
    }

    /* Sección Visítanos */
    .visit-us {
        flex-direction: column;
        margin-left: 15px;
        margin-right: 15px;
    }
    .visit-map {
        height: 250px;
    }
}


/* --- Para Móviles Pequeños (hasta 480px) --- */
@media (max-width: 480px) {
    .valores-grid {
        grid-template-columns: 1fr; /* 1 columna en móviles pequeños */
    }
    
    .contacto-botones {
        gap: 25px; /* Menos espacio entre botones */
    }
}