/* Fuente personalizada "The Seasons" */
@font-face {
    font-family: 'The Seasons';
    src: url('TheSeasons-Regular.woff2') format('woff2'),
         url('TheSeasons-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Variables Base */
:root {
    --primary-color: #004d29; 
    --secondary-color: #f7f3f3;
    --bg-color: #f6f3f3;
    --text-dark: #222222;
    --text-light: #ffffff;
    
    /* Tipografía */
    --font-heading: 'The Seasons', 'Playfair Display', serif;
    --font-body: 'The Seasons', 'Inter', sans-serif;
    
    /* Efectos */
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilidades */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.section-padding { padding: 100px 0; }
.bg-light { background-color: #FFFFFF; }

.btn-primary, .btn-primary-outline, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
}

.btn-primary:hover {
    background-color: #55725d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 142, 116, 0.4);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
}

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-img {
    height: 90px; /* Aumentado de 60px a 90px */
    width: auto;
    display: block;
    mix-blend-mode: multiply; /* Ayuda a que el fondo blanco del logo se mezcle con la barra de navegación */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn-primary-outline) {
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn-primary-outline)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-outline):hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('foto-portada.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: var(--text-light); /* Asegura que el texto blanco se lea bien */
}

.hero .subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--text-light); /* Cambio de verde a blanco para contrastar con la foto */
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
    color: var(--text-light);
}

.hero .description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services */
.section-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: #fff;
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Gallery */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.img-wrapper {
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
    box-shadow: var(--box-shadow);
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.img-wrapper:hover .gallery-img {
    transform: scale(1.08);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0 40px;
}

.footer h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer p {
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer .btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}

.footer .btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

/* FAQ Section */
.faq {
    background-color: var(--bg-color); /* #f7f3f3 */
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 77, 41, 0.2);
    margin-bottom: 15px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--primary-color);
    margin-right: 20px;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 600px; /* Suficiente para el contenido largo */
    padding-bottom: 15px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .nav-links { display: none; /* Simplificado para la demostración */ }
    .contact-actions { flex-direction: column; }
    .hero-content { padding-top: 60px; }
}
