/* --- VARIABLES Y ESTILOS BASE --- */
:root {
    /* Nueva Paleta de Colores */
    --oscuro-principal: #4b5320;
    --oscuro-secundario: #556b2f;
    --medio-oliva: #6b8e23;
    --claro-oliva: #8fbc8f;
    --acento-brillante: #12df6e;
    --texto-gris: #708090;
    --fondo1: #b6d3b6;
    --footer:#b6d3b6; 

    /* Colores base para contraste */
    --blanco: #ffffff;
    --gris-muy-claro: #f8f9fa;
    --sombra-suave: rgba(75, 83, 32, 0.1);
    --sombra-fuerte: rgba(75, 83, 32, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--oscuro-secundario);
    background: var(--blanco);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img, svg {
    max-width: 100%;
    display: block;
}

/* --- FUENTES PARA TÍTULOS --- */
.logo, h1, h2, h3, .cta-button, .submit-btn {
    font-family: 'Playfair Display', serif;
}


/* --- HEADER Y NAVEGACIÓN --- */
header {
    background: linear-gradient(135deg, var(--oscuro-principal) 0%, var(--acento-brillante) 100%);
    color: var(--blanco);
    padding: 1rem 0;
    box-shadow: 0 4px 20px var(--sombra-fuerte);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: var(--blanco);
    text-decoration: none;
}

.logo-img {
    height: 40px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--blanco);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--blanco);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- SECCIÓN HERO --- */
.hero {
    background-image: url(./Assets/Fondo2.jpeg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--blanco);
    position: relative;
    overflow: hidden;
}

.hero-content {
    animation: fadeIn 1.5s ease-out;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.6);
    font-weight: 700;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background: var(--acento-brillante);
    color: var(--oscuro-principal);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(18, 223, 110, 0.4);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(18, 223, 110, 0.6);
}

/* --- SECCIONES 1 --- */
.section1 {
    padding: 5rem 0;
    position: relative;
}

.section1:nth-child(even) {
    background: url(./Assets/Fondosec1.jpg);
    background-size: cover;
    background-position: center;
}

.section1-title {
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    margin-bottom: 3rem;
    color: var(--oscuro-principal);
    position: relative;
    /* --- Añadidos --- */
    padding: 0.5em 1em; /* Añade espacio interno para que el fondo sea más grande que el texto. */
    z-index: 1;         /* Asegura que el texto (y sus decoraciones) esté por encima del fondo. */
    
    /* Opcional: para que el fondo se ajuste al ancho del texto y no a todo el contenedor */
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section1-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--medio-oliva), var(--acento-brillante));
    border-radius: 2px;
}

/* --- SECCION 2 --- */
.section2 {
    padding: 5rem 0;
    position: relative;
}

.section2:nth-child(even) {
    background: var(--fondo1);
}

.section2-title {
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    margin-bottom: 3rem;
    color: var(--oscuro-principal);
    position: relative;
}

.section2-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--medio-oliva), var(--acento-brillante));
    border-radius: 2px;
}

/* --- CARDS --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--sombra-suave);
    transition: all 0.3s ease;
    border-left: 5px solid var(--medio-oliva);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--sombra-fuerte);
}

.card h3 {
    color: var(--oscuro-principal);
    margin-bottom: 1rem;
    font-size: 1.7rem;
}

.card p {
    color: var(--texto-gris);
}


/* --- COMODIDADES / FEATURES --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--blanco);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--sombra-suave);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: scale(1.05);
    background: var(--claro-oliva);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--oscuro-secundario);
}

.feature h3 {
     font-size: 1.4rem;
     margin-bottom: 0.5rem;
     color: var(--oscuro-principal);
}

.feature p {
    color: var(--texto-gris);
}

/* --- UBICACIÓN / MAPA --- */
#ubicacion .card {
    padding: 0;
    overflow: hidden;
}
.map-container {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.location-text {
    padding: 2rem;
}


/* --- SECCIÓN DE CONTACTO --- */
.contact {
    background: linear-gradient(135deg, var(--footer) 5%, var(--medio-oliva) 95%);
    color: var(--blanco);
}

.contact .section-title { color: var(--blanco); }
.contact .section-title::after { background: var(--blanco); }

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 600px;
    margin: 0 auto;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: var(--oscuro-principal);
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--blanco);
    box-shadow: 0 0 20px rgba(18, 223, 110, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--acento-brillante);
    color: var(--oscuro-principal);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* --- FOOTER --- */
footer {
    background: var(--oscuro-principal);
    color: var(--blanco);
    padding: 3rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; /* Para que sea responsivo */
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px; /* Ancho mínimo para cada columna */
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--acento-brillante);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-section.about .logo {
    margin-bottom: 1rem;
    font-size: 1.5rem; /* Ajustar tamaño del logo en footer */
}

.footer-remax {
    width: 100px;
    height: 125px;
}

.footer-section p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links img {
    width: 32px;
    height: 32px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    /* ... (los media queries anteriores se mantienen) ... */

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-section {
        min-width: 100%;
    }

    .footer-remax{
        width: 50px;
        height: 62.5px;
        margin: auto;
    }

    .footer-section h3 {
        width: 100%;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--oscuro-principal) 0%, var(--acento-brillante) 100%);
        padding: 1rem 0;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger-menu {
        display: flex;
    }
    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero {
         height: 70vh;
        background-attachment: scroll;
     }
    .section1, .section2 { padding: 3rem 0; }

    
}

/* --- ESTILOS PARA LA GALERÍA (SWIPER) --- */
.gallery-slider {
    width: 100%;
    height: 550px; /* Puedes ajustar esta altura */
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--sombra-fuerte);
    margin-top: 3rem;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio sin deformarse */
}

/* Estilos para los botones de navegación (flechas) */
.swiper-button-next,
.swiper-button-prev {
    color: var(--blanco) !important;
    background-color: rgba(75, 83, 32, 0.6); /* Usa tu color --oscuro-principal con transparencia */
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--oscuro-principal);
}

.swiper-button-next::after, 
.swiper-button-prev::after {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}