/* --- Variables y Estilos Generales --- */
:root {
    --primary-color: #2e6930;    /* Verde naturaleza serrana */
    --accent-color: #e67e22;     /* Naranja solar */
    --dark-color: #2c3e50;       /* Gris piedra oscuro */
    --light-color: #f9f9f9;      /* Fondo claro */
    --white: #ffffff;
    --transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Header --- */
.header {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    /* Simulamos la onda inferior con un borde curvado decorativo usando los colores corporativos */
    border-bottom: 6px solid transparent;
    border-image: linear-gradient(to right, #1b4f72, #2471a3, #2ecc71) 1;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px; /* Un poquito más alto para que luzca bien el logo */
}

/* Estilo para el contenedor del logo y el texto */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre el isotipo y el texto */
    text-decoration: none;
}

.logo-img {
    height: 50px; /* Tamaño ideal para el logo en la barra superior */
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.1;
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2e6930;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 20px;
}

/* --- Hero Section --- */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/placeholder.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 70px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.btn-primary, .btn-secondary, .btn-whatsapp {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: #d35400;
}

/* --- Secciones Generales --- */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}

/* --- Productos con Animación Lateral y Círculos Semitransparentes --- */
.products {
    background-color: var(--white);
}

.product-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.product-row.reverse {
    flex-direction: row-reverse;
}

/* El círculo con efecto mitad transparente / semitransparente verde */
.product-circle {
    flex: 0.4;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.product-circle::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(12, 220, 22, 0.65) 12%, rgba(16, 112, 246, 0.65) 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.product-circle img {
    width: 210px;
    height: 210px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 4px solid var(--white); /* Borde blanco para resaltar el producto */
}

.product-info {
    flex: 0.6;
}

.product-info h3 {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.product-quote {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.product-info p {
    color: #666;
    margin-bottom: 20px;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- Clases para la Animación Scroll Reveal (Fade-in con desplazamiento) --- */
.animate-on-scroll {
    opacity: 0;
    transition: var(--transition);
}

.animate-on-scroll.slide-left {
    transform: translateX(-80px);
}

.animate-on-scroll.slide-right {
    transform: translateX(80px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Sección de Presupuesto y WhatsApp --- */
.budget {
    background-color: #f4f7f4;
}

.budget-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.budget-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group select, .form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.btn-whatsapp {
    width: 100%;
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: var(--white);
    font-size: 1.1rem;
    text-align: center;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer p:last-child {
    margin-top: 5px;
    color: #aaa;
}

/* --- Menú Desplegable (Dropdown) para Productos --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    top: 100%;
    left: 0;
    padding: 10px 0;
}

.dropdown-content a {
    color: var(--dark-color) !important;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f4f7f4;
    color: var(--primary-color) !important;
}

/* Mostrar el menú al pasar el cursor */
.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Adaptable para Celulares (Responsive) --- */
@media (max-width: 768px) {
    .product-row, .product-row.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }

    /* Permitimos que el menú se adapte y no desaparezca */
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
        gap: 10px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        font-size: 0.9rem;
    }

    /* Ajustamos el padding superior de la página para que el header más alto no tape el contenido */
    .hero {
        padding-top: 140px;
    }
}