/* --- Variables y Estilos Globales --- */
:root {
    --primary-green: #116b13;
    --accent-yellow: #ffc107;
    --dark-color: #222;
    --light-color: #f4f4f4;
    --font-title: 'Merriweather', serif;
    --font-subtitle: 'Tinos', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background: #fff;
    color: var(--dark-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
    overflow: hidden;
}

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

p.section-subtitle {
    font-family: var(--font-subtitle);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
}

.content-section {
    padding: 6rem 0;
}

/* --- Clases para preparar animaciones GSAP --- */
/* Ocultamos los elementos antes de que JS los anime para evitar parpadeos */
.hero-anim, .section-title-anim, .service-card, .map-anim, .map-image, .testimonial-card {
    opacity: 0;
    visibility: hidden;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--dark-color);
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: #fff;
}


/* --- Header --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    transition: color 0.4s ease;
}

#main-header.scrolled .logo {
    color: var(--primary-green);
}

#main-header ul {
    list-style: none;
    display: flex;
}

#main-header ul li a {
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#main-header.scrolled ul li a {
    color: var(--dark-color);
}

#main-header ul li a:hover {
    color: var(--accent-yellow);
}


/* --- Hero Section --- */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* --- Map Teaser Section --- */
#map-teaser {
    background: var(--light-color);
    overflow: hidden; /* Importante para las animaciones */
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.map-text h2 {
    text-align: left;
}

.map-image-wrapper {
    overflow: hidden;
    border-radius: 10px;
}

.map-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: scale(1.1);
    display: block;
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--light-color);
    padding: 2rem;
    border-left: 5px solid var(--primary-green);
    border-radius: 5px;
}

.testimonial-card blockquote {
    font-family: var(--font-subtitle);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card cite {
    font-weight: bold;
    color: var(--primary-green);
}

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    
    #main-header { padding: 0.5rem 0; }
    #main-header ul { display: none; }

    .services-grid, 
    .map-container, 
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .map-text h2 { text-align: center; }
    .map-container { text-align: center; }
    
    .map-text { order: 2; }
    .map-image-wrapper { order: 1; }
}