/* Variables de Color basadas en el Mockup */
:root {
    --bg-dark: #0f1c15; /* Verde muy oscuro casi negro */
    --primary-green: #1a4d2e; /* Verde botón */
    --accent-gold: #eebb5d; /* Dorado */
    --text-light: #f4f4f4;
    --bg-paper: #fdfbf7; /* Fondo textura papel */
    --text-dark: #2c2c2c;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: rgba(15, 28, 21, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Botones */
.btn {
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #c05838; /* Color terracota botón header */
    color: white;
}

.btn-gold {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

.btn-green {
    background-color: var(--primary-green);
    color: white;
}

.btn-green-lg {
    background-color: var(--primary-green);
    color: white;
    font-size: 1.2rem;
    padding: 15px 40px;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding-top: 120px; /* Espacio navbar */
    padding-bottom: 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero-text h1 span {
    color: var(--accent-gold);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image img {
    max-width: 100%;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.1);
    width: 450px;
    height: 450px;
    object-fit: cover;
    display: none; /* Oculto en móviles muy pequeños, visible en desktop */
}

@media (min-width: 768px) {
    .hero-image img { display: block; }
}

/* Welcome Section */
.welcome {
    background-color: var(--bg-paper);
    padding: 80px 0;
    text-align: center;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.07' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

.welcome h2, .services h2 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.divider {
    height: 2px;
    width: 100px;
    background-color: var(--accent-gold);
    margin: 0 auto 30px auto;
}

.welcome p {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

/* Services / Menu */
.services {
    background-color: var(--bg-paper);
    padding-bottom: 80px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-card {
    padding: 20px;
}

.img-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-gold);
}

.img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .img-circle img {
    transform: scale(1.1);
}

.link-styled {
    display: inline-block;
    margin-top: 10px;
    color: #c05838;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.link-styled:hover {
    border-bottom-color: #c05838;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to right, #0f1c15 60%, rgba(15,28,21,0.8)), url('https://images.unsplash.com/photo-1544148103-0773bf10d330?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    color: white;
    padding: 80px 0;
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta-text {
    flex: 1;
    padding-right: 40px;
}

.cta-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.cta-image img {
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Footer & Map */
footer {
    background-color: #0b120e;
    color: #ccc;
    padding-top: 60px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-nav {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.footer-nav a {
    color: var(--accent-gold);
    text-decoration: none;
}

/* --- ESTILOS DEL MAPA OPTIMIZADO --- */
.map-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
}

.map-container {
    width: 100%;
    height: 350px;
    max-width: 600px;
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    position: relative; /* Para el placeholder */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Elimina espacio blanco inferior */
}

.map-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    z-index: 1;
    transition: opacity 0.5s;
}

.copyright {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #222;
    font-size: 0.9rem;
}

/* Responsive */

/* Responsive - MÓVIL */
@media (max-width: 768px) {
    .hero-content, .cta-container, .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .cta-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .map-wrapper {
        justify-content: center;
        width: 100%;
    }

    /* Lógica del Menú Hamburguesa Corregida */
    .menu-toggle {
        display: block; /* Asegura que el icono se vea */
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--text-light);
    }

    .nav-links {
        display: none; /* Oculto por defecto */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Justo debajo de la barra */
        left: 0;
        width: 100%;
        background-color: var(--bg-dark); /* Fondo oscuro del tema */
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
    }

    /* Esta clase la activará el JS */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }
    @media (max-width: 768px) {

        /* Reducir espacio general */
        .services {
            padding-bottom: 40px;
        }

        .services h2 {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        /* Banner horizontal */
        .services-grid {
            display: flex;
            overflow-x: auto;
            gap: 16px;
            margin-top: 20px;
            padding-bottom: 10px;
            scroll-snap-type: x mandatory;
        }

        .services-grid::after {
            content: "← desliza →";
            font-size: 0.8rem;
            color: #999;
            display: block;
            margin-top: 10px;
        }


        .service-card {
            min-width: 260px;
            padding: 16px;
            scroll-snap-align: center;
            background: white;
            border-radius: 12px;
            box-shadow: 0 6px 15px rgba(0,0,0,0.08);
        }

        /* Imagen más pequeña */
        .img-circle {
            width: 120px;
            height: 120px;
            margin-bottom: 12px;
        }

        .service-card h3 {
            font-size: 1.1rem;
            margin-bottom: 6px;
        }

        .service-card p {
            font-size: 0.9rem;
            line-height: 1.4;
        }
    }

}