/* --- CONFIGURACIÓN GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d321d; /* Un tono verde pino oscuro más exacto a la maqueta */
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- BARRA DE NAVEGACIÓN (CORREGIDA CON COLOR DE MAQUETA) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5rem; 
    background-color: #14492b; /* Verde más claro para contrastar con el fondo body */
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar .logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f7ebd3; /* El color crema/dorado suave de las letras de tu maqueta */
}

/* Fuerza a que el menú se desplace completamente a la derecha */
.nav-links {
    display: flex;
    gap: 2rem; 
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.75;
    transition: opacity 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
}

/* --- SECCIÓN PRINCIPAL --- */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5rem;
    flex-grow: 1;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    max-width: 50%;
}

/* --- IMAGEN Y ANIMACIÓN DE REBOTE/FLOTACIÓN --- */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    width: 520px;
    height: auto;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.4);
    animation: bounceEffect 3s ease-in-out infinite;
}

/* Definición del efecto de rebote sutil */
@keyframes bounceEffect {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* --- DETALLES DEL TEXTO --- */
.badge {
    background-color: #27442d;
    color: #c9e2b1;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.serif-text {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
}

.light-green-text {
    color: #6d8b67;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 400;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
}

/* --- BOTONES --- */
.buttons-container {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    min-width: 140px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    transform: scale(1.03);
}

.btn-dark-green {
    background-color: #3f593f;
    color: #ffffff;
    border: 1px solid #4a6f51;
}

.btn-light-green {
    background-color: #d1e4c9;
    color: #2b4632;
}

/* --- CONTADOR DE VISITAS ESTILO MAQUETA --- */
.visitor-counter {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding-bottom: 2rem;
    width: 100%;
}

.visitor-counter .digit {
    background: linear-gradient(180deg, #444 0%, #222 50%, #111 100%);
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace; /* Tipografía tipo odómetro */
    font-size: 1.3rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #555;
    box-shadow: inset 0px 1px 3px rgba(255,255,255,0.3), 0px 2px 4px rgba(0,0,0,0.5);
    text-shadow: 0px 1px 2px rgba(0,0,0,0.8);
}

/* --- RESPONSIVO --- */
@media (max-width: 968px) {
    .navbar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .hero-container {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        gap: 2rem;
    }
    .hero-text {
        max-width: 100%;
    }
    h1 {
        font-size: 3rem;
    }
    .buttons-container {
        justify-content: center;
    }
    .hero-image {
        justify-content: center;
    }
    .counter-box {
    display: flex;
    gap: 5px;
}
}