:root {
    --color-primary: #2D5016;
    --color-secondary: #8BC34A;
    --color-tres: #348033;    
    --color-accent: #FF6B35;
    --color-success: #4CAF50;
    --color-dark: #1A2E22;
    --color-light-bg: #F8F9FA;
    --color-warm: #FFF8E1;
    --color-earth: #8D6E63;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --shadow-card: 0 8px 25px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body { 
    font-family: var(--font-sans); 
    padding-bottom: 120px;
    background: linear-gradient(135deg, var(--color-light-bg) 0%, #FFFFFF 100%);
    line-height: 1.6;
    color: #333;
}

/* =============================== */
/* == CABECERA ESTILO V-CARD    == */
/* =============================== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 70%, #0d1a10 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M50 50c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10-10-4.5-10-10zM30 30c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10-10-4.5-10-10z"/></g></g></svg>');
    opacity: 0.4;
}
.hero-vcard-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    will-change: transform;
}
.producer-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid var(--color-secondary);
    object-fit: cover;
    display: block;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: var(--transition);
}
.hero-logo-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}
.hero-qr-code {
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}
.hero-qr-code:hover { transform: scale(1.1); }
.hero-qr-code i { font-size: 1.5rem; color: var(--color-dark); }
.hero-vcard-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}
.btn-vcf {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none !important;
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 2px solid var(--color-accent);
}
.btn-vcf:hover {
    background-color: transparent;
    border-color: white;
    color: white;
    transform: translateY(-3px);
}
.hero-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}
.hero-cta-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-decoration: none !important;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--color-secondary);
    box-shadow: 0 10px 25px rgba(139, 195, 74, 0.4);
    border-color: var(--color-secondary);
}
.hero-cta-button i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* =============================== */
/* == CONTENIDO PRINCIPAL       == */
/* =============================== */
.main-content {
    position: relative;
    z-index: 3;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-light-bg) 100%);
    margin-top: -50px;
    border-radius: 50px 50px 0 0;
    padding-top: 3rem;
}
.section-wrapper { margin-bottom: 5rem; }
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-dark);
    position: relative;
}
.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    display: block;
    margin: 1rem auto;
    border-radius: 2px;
}
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================== */
/* == SECCIÓN HISTORIA          == */
/* =============================== */
.historia-content {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-left: 5px solid var(--color-secondary);
}
.historia-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--color-secondary);
    font-family: var(--font-serif);
    opacity: 0.3;
}
.historia-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}

/* =============================== */
/* == SECCIÓN PRODUCTOS         == */
/* =============================== */
.productos-section {
    background: var(--color-warm);
    padding: 4rem 0;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}
.productos-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23FF6B35" fill-opacity="0.03"><circle cx="30" cy="30" r="3"/></g></g></svg>');
}
.productos-grid { position: relative; z-index: 2; }
.product-item {
    margin-bottom: 2rem;
    transition: var(--transition);
}
.product-gallery-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 3px solid white;
}
.product-item:hover .product-gallery-img {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
}
.product-name {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.95rem;
}

/* =============================== */
/* == SECCIÓN EXPERIENCIAS      == */
/* =============================== */
.experiencias-section {
    background: white;
    padding: 4rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}
.experiencia-card {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-light-bg) 100%);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    position: relative;
}
.experiencia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
}
.experiencia-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.experiencia-card .card-body { padding: 2rem; }
.experiencia-card .card-title {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.experiencia-card .card-subtitle {
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.experiencia-card .card-text {
    color: #666;
    line-height: 1.6;
}

/* =============================== */
/* == SECCIÓN CERTIFICACIONES   == */
/* =============================== */
.certificaciones-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
    padding: 4rem 0;
    border-radius: var(--border-radius);
    color: white;
    position: relative;
    overflow: hidden;
}
.certificaciones-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><polygon points="40 0 60 30 40 60 20 30"/></g></g></svg>');
}
.certificaciones-section .section-title { color: white; }
.certificaciones-section .section-title::after { background: linear-gradient(90deg, white, var(--color-accent)); }
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}
.cert-card {
    width: 180px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}
.cert-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.cert-preview {
    width: 100%;
    height: 120px;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--color-primary);
    overflow: hidden;
}
.cert-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cert-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    line-height: 1.3;
}

/* =============================== */
/* == SECCIÓN DE CONTACTO DIRECTO == */
/* =============================== */
.contact-section {
    background: var(--color-warm);
    padding: 4rem 1rem;
    border-radius: var(--border-radius);
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.contact-btn {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.1rem;
    color: white !important;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    border: 2px solid transparent;
}
.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.contact-btn .icon {
    font-size: 1.8rem;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}
.btn-call { background-color: var(--color-dark); }
.btn-call:hover { background-color: #000; }
.btn-whatsapp-contact { background-color: #25D366; }
.btn-whatsapp-contact:hover { background-color: #128C7E; }
.btn-email { background-color: #6c757d; }
.btn-email:hover { background-color: #5a6268; }
.btn-location { background-color: var(--color-accent); }
.btn-location:hover { background-color: #E55A2B; }

/* =============================== */
/* == COMPONENTES FLOTANTES Y OTROS == */
/* =============================== */
.floating-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
    border-top: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    padding: 1.5rem 2rem;
    z-index: 1000;
}
.floating-cta-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.producer-info-mini { display: flex; align-items: center; gap: 1rem; }
.producer-info-mini img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--color-secondary); object-fit: cover; }
.producer-name { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.2rem; }
.producer-tagline { font-size: 0.9rem; color: #666; }
.cta-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta-buttons .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-catalog { background: var(--color-secondary); color: white; border-color: var(--color-secondary); }
.btn-catalog:hover { background: var(--color-primary); border-color: var(--color-primary); color: white; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(45, 80, 22, 0.3); }
.btn-catalogfuturo { background: var(--color-primary); color: white; border-color: var(--color-secondary); }
.btn-catalogfuturo:hover { background: var(--color-secondary); border-color: var(--color-primary); color: white; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(45, 80, 22, 0.3); }
.btn-experience { background: var(--color-accent); color: white; border-color: var(--color-accent); }
.btn-experience:hover { background: #E55A2B; border-color: #E55A2B; color: white; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3); }
.btn-whatsapp-cta { background: #25D366; color: white; border-color: #25D366; }
.btn-whatsapp-cta:hover { background: #20B954; border-color: #20B954; color: white; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }

.error-state { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.error-content { text-align: center; padding: 3rem; background: white; border-radius: var(--border-radius); box-shadow: var(--shadow-card); max-width: 500px; }
.error-icon { font-size: 4rem; color: var(--color-secondary); margin-bottom: 1rem; }
.error-title { font-family: var(--font-serif); font-size: 2rem; color: var(--color-dark); margin-bottom: 1rem; }

/* =============================== */
/* == RESPONSIVE Y ANIMACIONES   == */
/* =============================== */
@media (max-width: 768px) {
    .main-content { margin-top: -30px; border-radius: 30px 30px 0 0; }
    .historia-content, .productos-section, .experiencias-section, .certificaciones-section, .contact-section { margin: 0 1rem; }
    .floating-cta { padding: 1rem 1rem; border-radius: 22px 22px 0 0; }
    .floating-cta-content { flex-direction: column; text-align: center; gap: 0.5rem; }
    .cta-buttons { width: 95%; justify-content: center; }
    .cta-buttons .btn { flex: 1; min-width: 100px; max-width: 110px; padding: 1rem 0.8rem; font-size: 0.8rem; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; white-space: nowrap; line-height: 1.2; }
    .cta-buttons .btn i { font-size: 1.1rem; margin-bottom: 0.2rem; }
    .cta-buttons .btn .btn-text { font-size: 0.8rem; font-weight: 550; }
    .cert-card { width: 130px; }
}
@media (max-width: 360px) {
    .hero-cta-grid { grid-template-columns: 1fr; }
}

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}
.animate-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

button:focus, a:focus { outline: 3px solid var(--color-secondary); outline-offset: 2px; }
.keyboard-navigation *:focus { outline: 3px solid var(--color-secondary) !important; outline-offset: 2px; }