/* --- VARIABLES DEL MANUAL DE MARCA --- */
:root {
    --verde-dark: #006747;    /* Pantone 342 C - Fondo Principal */
    --beige: #C6AA76;         /* Pantone 466 C - Títulos y Logo */
    --terracota: #B15533;     /* Pantone 7592 C - Botones/Acentos */
    --verde-light: #B6CFAE;   /* Pantone 2260 C - Fondos suaves */
    --blanco: #ffffff;
    --texto: #333333;
}

/* GENERAL */
body {
    font-family: 'Montserrat', sans-serif; /* Similar a Rozanova */
    margin: 0;
    padding: 0;
    color: var(--texto);
    background-color: #f4f4f4;
}

h1, h2, h3 { font-weight: 600; margin: 0; }
a { text-decoration: none; }
ul { list-style: none; padding: 0; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.bg-light { background-color: #fff; }

.section-title {
    color: var(--verde-dark);
    font-size: 2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    color: #666;
    margin-bottom: 50px;
}

/* --- HEADER --- */
header {
    background-color: var(--verde-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px; /* Ajusta según tu logo */
}

.nav-links { display: flex; gap: 25px; align-items: center; }

.nav-links a {
    color: var(--beige);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover { color: #fff; }

.btn-cta {
    background-color: var(--terracota);
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-cta:hover { background-color: #964225; }

/* --- HERO SECTION --- */
.hero {
    height: 85vh;
    background-image: url('../uploads/portada.jpg'); /* Sube una foto llamada portada.jpg a uploads */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 103, 71, 0.5); /* Verde oscuro con transparencia */
}

.hero-text {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--beige);
    margin-bottom: 20px;
    line-height: 1.2;
}

.btn-hero {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    border: 2px solid var(--beige);
    color: var(--beige);
    font-weight: 600;
    transition: 0.3s;
}

.btn-hero:hover {
    background-color: var(--beige);
    color: var(--verde-dark);
}

/* --- FEATURES --- */
.features-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s;
}

.feature-card:hover { transform: translateY(-5px); }

.feature-card i {
    font-size: 3rem;
    color: var(--verde-dark);
    margin-bottom: 20px;
}

/* --- GALERÍA GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover { transform: scale(1.02); }

.img-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.overlay-img i { color: white; font-size: 2rem; }
.gallery-item:hover .overlay-img { opacity: 1; }

.desc { padding: 15px; }
.desc h4 { color: var(--verde-dark); margin-bottom: 5px; font-size: 1.1rem; }
.desc span { font-size: 0.85rem; color: #888; text-transform: uppercase; }

/* --- FOOTER --- */
footer {
    background-color: var(--verde-dark);
    color: white;
    padding-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 { color: var(--beige); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col p { color: #ccc; line-height: 1.6; }

.copyright {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* --- MODAL (Lightbox) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 50px; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.2rem;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover, .close:focus { color: var(--terracota); text-decoration: none; cursor: pointer; }

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .nav-links { display: none; } /* Aquí podrías agregar un menú hamburguesa JS */
    .hero-text h1 { font-size: 2rem; }
    .features-grid { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 30px; text-align: center; }
}