/* Estilos Generales - Estética Eco-Futurista / Solarpunk */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f0fbf7; /* Fondo menta pálido regenerativo */
    color: #0f2d24; /* Verde oscuro orgánico para texto */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); /* Efecto cristalino */
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(5, 150, 105, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #059669; /* Verde esmeralda */
}

/* Botón solicitado con el texto exacto */
.btn-sucursal {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    padding: 0.7rem 1.6rem;
    border-radius: 50px; /* Bordes perfectamente redondeados y fluidos */
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
    transition: all 0.3s ease;
}

.btn-sucursal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Sección Hero / Portada */
.hero {
    background: linear-gradient(rgba(240, 251, 247, 0.5), rgba(240, 251, 247, 0.85)), 
                url('https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 8rem 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f2d24;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    color: #059669;
    max-width: 650px;
    margin: 0 auto;
}

/* Sección Historia */
.historia {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(5, 150, 105, 0.1);
    border-radius: 40px; /* Estilo cápsula biológica */
    box-shadow: 0 10px 30px rgba(15, 45, 36, 0.03);
}

.historia h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #0f2d24;
}

.historia p {
    color: #374151;
    font-size: 1rem;
    text-align: justify;
}

/* Sección Catálogo */
.catalogo {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.catalogo h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    color: #0f2d24;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.producto-card {
    background-color: #ffffff;
    border: 1px solid rgba(5, 150, 105, 0.08);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 45, 36, 0.04);
    transition: all 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.12);
}

.producto-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background-color: #e6f7f0;
}

.producto-info {
    padding: 2rem;
}

.producto-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f2d24;
    margin-bottom: 0.5rem;
}

.producto-desc {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    height: 65px;
    overflow: hidden;
}

.producto-precio {
    font-size: 1.4rem;
    font-weight: 700;
    color: #059669;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0fbf7;
    padding-top: 1.2rem;
}

/* Botón Cultivar / Compra */
.btn-comprar {
    background-color: #f0fbf7;
    color: #059669;
    padding: 0.6rem 1.4rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(5, 150, 105, 0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-comprar:hover {
    background-color: #059669;
    color: #ffffff;
}

/* Footer */
footer {
    background-color: #0f2d24;
    color: #a7f3d0;
    text-align: center;
    padding: 3rem;
    margin-top: 6rem;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    font-size: 0.9rem;
}

/* ==========================================================================
   VENTANA MODAL BIOMÉTRICA / CANAL NEGOCIOS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 45, 36, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #ffffff;
    border: 1px solid rgba(5, 150, 105, 0.2);
    padding: 3rem;
    border-radius: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(15, 45, 36, 0.2);
    transform: translateY(15px);
    transition: transform 0.3s ease-out;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.8rem;
    font-size: 1.8rem;
    color: #059669;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: #0f2d24;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #4b5563;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f2d24;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(5, 150, 105, 0.2);
    background-color: #fbfdfc;
    border-radius: 16px;
    font-size: 0.95rem;
    color: #0f2d24;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: #059669;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    padding: 0.9rem;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-submit:hover {
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}