/* Reseteo básico y configuración de fuentes */
:root {
    --primary-color: #2c5e3f; /* Verde oscuro para el bosque */
    --secondary-color: #f4a261; /* Naranja para acentos y botones */
    --text-color: #333;
    --bg-light: #fdfdfd;
    --bg-alt: #f1f1f1;
}

html {
    scroll-behavior: smooth; /* La magia para el scroll suave */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-light);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

h1, h2 {
    font-family: 'Montserrat', sans-serif;
}

/* Header y Navegación */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?q=80&w=2560&auto=format&fit=crop') no-repeat center center/cover;
    padding-top: 60px; /* Para compensar el header fijo */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Secciones de Contenido */
.content-section {
    padding: 5rem 0;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.alt-bg {
    background-color: var(--bg-alt);
}

/* Formulario de Contacto */
.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.btn-submit {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #e76f51; /* Un naranja más oscuro */
}

/* Botón para volver al inicio */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    border-radius: 50%;
    text-decoration: none;
    display: none; /* Oculto por defecto */
    transition: opacity 0.4s, visibility 0.4s;
    z-index: 100;
}

#back-to-top:hover {
    background-color: #e76f51;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}
