/* ================================================================ */
/* ===========      ESTILOS GENERALES Y VARIABLES     =========== */
/* ================================================================ */
:root {
    --primary-color: #1a7bba;
    --secondary-color: #343a40;
    --background-color: #ffffff;
    --light-gray-color: #f8f9fa;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    color: var(--secondary-color);
    background-color: var(--background-color);
}

main {
    /* Espacio para el header fijo. Ajustado para móvil en las media queries */
    padding-top: 115px; 
}

.btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #218838;
    border-color: #218838;
}

/* ================================================================ */
/* ===========           HEADER Y NAVEGACIÓN          =========== */
/* ================================================================ */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Barra Superior */
.top-bar {
    background-color: #f0f0f0;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #555;
    border-bottom: 1px solid #ddd;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--primary-color);
}

.top-bar i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

/* Barra de Navegación Principal */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 80px;  /* Ajusta esta altura según el diseño de tu logo */
    width: auto;   /* El ancho se ajustará automáticamente */
    vertical-align: middle; /* Ayuda a alinear la imagen verticalmente con los links */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.flag {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 50%;
}

#menu-icon {
    font-size: 2rem;
    cursor: pointer;
    display: none;
}

.language-selector-mobile {
    display: none;
}


/* ================================================================ */
/* ===========         SECCIÓN DE CONTACTO            =========== */
/* ================================================================ */
.contact-hero {
    height: 40vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.pexels.com/photos/1285625/pexels-photo-1285625.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.contact-hero h1 {
    font-size: 3rem;
    margin: 0;
}

.contact-hero a {
    color: white;
    text-decoration: none;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    background-color: #f9f9f9;
}

.info-card {
    background-color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: #e9f7ec;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-circle i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.contact-form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem 5%;
    align-items: flex-start;
}

.get-in-touch h2 { font-size: 2rem; }
.get-in-touch p { line-height: 1.7; }
.form-container { background-color: #f6f9f7; padding: 1.5rem; border-radius: 12px; }
.form-container h3 { font-size: 1.8rem; }
.form-notice { font-size: 0.9rem; color: #777; margin-bottom: 2rem; }
.input-group { position: relative; margin-bottom: 1rem; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }
.input-group input, .input-group textarea { width: 100%; padding: 1rem 1rem 1rem 2.5rem; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; }
.form-container .btn-primary { width: 100%; }


/* ================================================================ */
/* ===========           DISEÑO RESPONSIVE            =========== */
/* ================================================================ */
@media (max-width: 992px) {
    main { padding-top: 115px; }

    .top-bar {
        justify-content: center;
        gap: 1rem;
        padding: 0.4rem 5%;
        font-size: 0.75rem;
    }
    .follow-us, .top-bar-left span:first-child { display: none; }

    .language-selector-desktop { display: none; }
    .language-selector-mobile { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #f0f0f0; }

    .nav-links { position: absolute; top: 100%; left: -100%; width: 100%; background-color: white; flex-direction: column; text-align: center; padding: 1rem 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: left 0.3s ease; }
    .nav-links.active { left: 0; }
    .nav-links li { padding: 0.5rem 0; }
    #menu-icon { display: block; }
    
    .contact-form-section { grid-template-columns: 1fr; }
}

/* ================================================================ */
/* =========== AÑADE ESTOS ESTILOS PARA EL NUEVO FOOTER =========== */
/* ================================================================ */

.site-footer {
    background-color: #222222;
    color: #a9a9a9;
    padding: 4rem 5% 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #444;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.logo-footer {
    color: var(--primary-color) !important;
    font-size: 1.5rem !important;
    font-weight: 700;
}

.logo-footer img {
    height: 40px; /* Puedes hacerlo un poco más pequeño si quieres */
    width: auto;
}

.footer-column p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.footer-column p i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links a {
    color: #a9a9a9;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s, transform 0.3s;
}

.quick-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.1);
}

.newsletter-form {
    display: flex;
    position: relative;
    margin-bottom: 1rem;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    background-color: #333;
    border: 1px solid #555;
    color: white;
    border-radius: 50px;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background-color: var(--primary-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

.terms {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.terms input {
    margin-right: 0.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: #a9a9a9;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.back-to-top {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.5rem;
}


.whatsapp-float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
}

/* ================================================================ */
/* ===========     CORRECCIÓN RESPONSIVE PARA RECAPTCHA     =========== */
/* ================================================================ */

/* AMPLIAMOS EL RANGO para que se active en la mayoría de móviles */
@media (max-width: 400px) {
    .g-recaptcha {
        /* Hacemos el widget un poco más pequeño */
        transform: scale(0.85); 
        
        /* Lo alineamos a la izquierda */
        transform-origin: 0 0; 
    }
}