/* --- VARIABLES & RESET --- */
:root {
    --green-dark: #004d25;
    --green-light: #008f45;
    --orange-accent: #FF6B00;
    --orange-hover: #e65100;
    
    --color-supersuda: #008f45; 
    --color-tops: #FF6B00;      
    --color-conv: #8D6E63;      

    --bg-body: #f4f7f6;
    --card-bg: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --border-radius: 20px;
    --font-main: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-bottom: 0;
}

/* --- HEADER --- */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.header-content {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { height: 45px; object-fit: contain; }

.btn-header-cta {
    display: flex; align-items: center; gap: 8px;
    background: var(--orange-accent); color: white;
    padding: 10px 20px; border-radius: 50px;
    font-weight: 700; font-size: 0.9rem; text-decoration: none;
    transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}
.btn-header-cta:hover {
    background: var(--orange-hover); transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.4);
}

/* --- HERO --- */
.hero {
    position: relative; height: 40vh; min-height: 300px;
    display: flex; align-items: flex-end; overflow: hidden; margin-bottom: 40px;
}
.hero-bg-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,30,10,0.85) 0%, rgba(0,0,0,0) 60%);
}
.hero-text { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px 40px 20px; color: white; }
.hero-text h1 { font-size: 2rem; line-height: 1.1; font-weight: 800; margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-text p { font-size: 1rem; opacity: 0.9; }

/* --- TECH COMPARISON --- */
.tech-comparison { max-width: 1200px; margin: 0 auto 40px auto; padding: 0 20px; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }

.tech-card {
    background: white; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 6px solid #ccc;
    transition: transform 0.3s ease; display: flex; flex-direction: column;
}
.tech-card:hover { transform: translateY(-5px); }
.tech-card.t-supersuda { border-top-color: var(--color-supersuda); }
.tech-card.t-tops { border-top-color: var(--color-tops); }
.tech-card.t-conv { border-top-color: var(--color-conv); }

.tech-img-box { height: 180px; overflow: hidden; position: relative; }
.tech-img { width: 100%; height: 100%; object-fit: cover; }
.tech-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.tech-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; }
.t-supersuda .tech-title { color: var(--color-supersuda); }
.t-tops .tech-title { color: var(--color-tops); }
.t-conv .tech-title { color: var(--color-conv); }
.tech-desc { font-size: 0.9rem; color: #555; margin-bottom: 20px; line-height: 1.5; flex-grow: 1; }
.tech-specs {
    display: flex; justify-content: space-between; background: #f8f9fa;
    padding: 10px; border-radius: 8px; font-size: 0.8rem;
}
.ts-item strong { display: block; font-size: 1rem; font-weight: 800; color: #333; }

/* --- CATALOG STRUCTURE --- */
.catalog-wrapper { max-width: 1200px; margin: 0 auto; padding: 10px 20px; }
.category-section { margin-bottom: 40px; }
.section-header { margin-bottom: 20px; padding-left: 10px; border-left: 4px solid var(--orange-accent); }
.section-header h2 { font-size: 1.8rem; color: var(--green-dark); font-weight: 800; }
.section-header p { font-size: 0.95rem; color: var(--text-muted); }
.divider { border: 0; height: 1px; background: #e0e0e0; margin: 50px 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* --- SUBSECTIONS --- */
.subsection {
    margin-bottom: 40px; background: #fff; padding: 25px;
    border-radius: 20px; border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02); border-left: 4px solid #ddd;
}
.subsection:has(.brand-supersuda) { border-left-color: var(--color-supersuda); }
.subsection:has(.brand-tops) { border-left-color: var(--color-tops); }
.subsection:has(.brand-convencional) { border-left-color: var(--color-conv); }

.subsection-title {
    font-size: 1.2rem; font-weight: 800; margin-bottom: 20px;
    padding-bottom: 10px; border-bottom: 2px solid #f0f0f0;
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.tag-desc { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 4px; }
.brand-supersuda { color: var(--color-supersuda) !important; }
.brand-tops { color: var(--color-tops) !important; }
.brand-convencional { color: var(--color-conv) !important; }
.brand-supersuda .tag-desc { background: rgba(0, 143, 69, 0.1); color: var(--color-supersuda); }
.brand-tops .tag-desc { background: rgba(255, 107, 0, 0.1); color: var(--color-tops); }
.brand-convencional .tag-desc { background: rgba(141, 110, 99, 0.1); color: var(--color-conv); }

/* --- CARD REDISEÑADA (Centralizada) --- */
.card {
    background: #ffffff; border-radius: var(--border-radius);
    overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03); display: flex; flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0, 77, 37, 0.12); }

.card-image-box { 
    position: relative; padding-top: 70%; 
    background: #f4f4f4; overflow: hidden; 
}
.card-img { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; transition: transform 0.5s ease;
}
.card:hover .card-img { transform: scale(1.05); }

/* Badges */
.badge {
    position: absolute; top: 12px; left: 12px; z-index: 10;
    padding: 6px 12px; border-radius: 8px; font-size: 0.7rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    background: #ffffff; color: var(--text-muted); border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
}
.badge.supersuda { background: var(--color-supersuda); color: white; }
.badge.tops { background: var(--color-tops); color: white; }
.badge.convencional { background: var(--color-conv); color: white; }

/* Info Body */
.card-info { 
    padding: 20px; display: flex; flex-direction: column; 
    flex-grow: 1; text-align: center; align-items: center;
}
.cultivar { 
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px;
    color: #888; margin-bottom: 5px; font-weight: 600;
}
.product-title { 
    font-size: 1.3rem; font-weight: 800; margin-bottom: 15px; 
    line-height: 1.1; color: var(--text-main);
}

/* --- ICONOS DE USO (NUEVO) --- */
.icons-container {
    width: 100%; margin-bottom: 15px; display: flex; 
    flex-direction: column; gap: 8px; align-items: center;
}
.icon-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.icon-group-label {
    font-size: 0.6rem; text-transform: uppercase; 
    color: #aaa; font-weight: 700; margin-bottom: 2px;
}
.u-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; transition: all 0.2s; position: relative;
    border: 1px solid #e0e0e0; background: #fff;
}
/* Colores específicos */
.u-icon.animal { background-color: #e8f5e9; color: var(--green-dark); border-color: #c8e6c9; }
.u-icon.usage { background-color: #fff3e0; color: var(--orange-accent); border-color: #ffe0b2; }

.u-icon:hover { transform: scale(1.1); filter: brightness(0.95); }
.u-icon[title]:hover::after {
    content: attr(title); position: absolute; bottom: 100%; left: 50%;
    transform: translateX(-50%); background: #333; color: white;
    padding: 4px 8px; font-size: 0.6rem; border-radius: 4px;
    white-space: nowrap; margin-bottom: 5px; z-index: 20; pointer-events: none;
}
.icon-divider { width: 40px; height: 1px; background: #eee; margin: 4px 0; }

.short-desc {
    font-size: 0.85rem; color: #666; line-height: 1.4; margin-bottom: 20px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;  
    overflow: hidden; max-width: 95%;
}

/* --- DATOS TECNICOS --- */
.specs-box {
    width: 100%; background: #f8f9fa; border-radius: 12px; padding: 12px;
    display: flex; justify-content: center; gap: 20px; margin-bottom: 20px;
    border: 1px solid #eee;
}
.spec-col { display: flex; flex-direction: column; align-items: center; }
.spec-col h4 { font-size: 0.65rem; color: #999; text-transform: uppercase; margin-bottom: 4px; font-weight: 700; }
.spec-col p { font-size: 0.95rem; font-weight: 800; color: #333; }
.spec-divider { width: 1px; background: #ddd; height: 30px; align-self: center; }

/* Modo Grid para productos con precios */
.specs-grid-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.specs-grid-mode .spec-col { align-items: center; text-align: center; }

.price-section { width: 100%; margin-top: auto; }
.price-kg-highlight { color: var(--text-main); font-weight: 700; }

/* Botones */
.btn-whatsapp {
    width: 100%; background: var(--green-dark); color: white;
    padding: 12px; border-radius: 50px; font-weight: 700; font-size: 0.9rem;
    text-decoration: none; transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 77, 37, 0.2);
    display: flex; justify-content: center; align-items: center; gap: 8px;
}
.btn-whatsapp:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 77, 37, 0.3); }

.btn-location {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px; border: 2px solid var(--green-dark); color: var(--green-dark);
    background: transparent; border-radius: 50px; font-weight: 700; font-size: 0.9rem;
    text-decoration: none; transition: all 0.2s;
}
.btn-location:hover { background: var(--green-dark); color: white; }

/* --- LOCALES --- */
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-bottom: 40px; }
.location-card {
    background: white; border-radius: 16px; border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); overflow: hidden;
    display: flex; flex-direction: column; text-align: center; transition: transform 0.3s ease;
}
.location-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.loc-img-box { width: 100%; height: 200px; background-color: #eee; }
.loc-img { width: 100%; height: 100%; object-fit: cover; }
.loc-content { padding: 25px; display: flex; flex-direction: column; align-items: center; flex-grow: 1; }
.location-card h3 { color: var(--green-dark); font-size: 1.1rem; margin-bottom: 10px; font-weight: 800; }
.location-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 20px; flex-grow: 1; }

/* --- FOOTER --- */
.main-footer { background-color: var(--green-dark); color: white; padding: 60px 20px 20px 20px; margin-top: 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 {
    font-size: 1.1rem; margin-bottom: 20px; border-bottom: 2px solid var(--orange-accent);
    display: inline-block; padding-bottom: 5px;
}
.footer-col p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 15px; opacity: 0.9; }
.footer-email { color: var(--orange-accent); text-decoration: none; font-weight: 700; font-size: 1rem; display: block; margin-bottom: 20px; }
.social-links { display: flex; gap: 15px; }
.social-icon {
    color: white; width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s;
}
.social-icon:hover { background: var(--orange-accent); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.8rem; opacity: 0.6; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hero-text h1 { font-size: 1.6rem; }
    .card-info { padding: 15px 10px; }
    .product-title { font-size: 1rem; min-height: 40px; }
    
    .u-icon { width: 30px; height: 30px; font-size: 0.7rem; }
    .specs-box { gap: 10px; padding: 10px; }
    .spec-col p { font-size: 0.8rem; }
    .btn-whatsapp { font-size: 0.75rem; padding: 10px 5px; }
    
    .tech-grid { grid-template-columns: 1fr; }
    .subsection { padding: 15px; }
    .footer-container { grid-template-columns: 1fr; gap: 30px; }
    .locations-grid { grid-template-columns: 1fr; }
    
    /* Costo Ha en mobile (para secciones que lo tengan) */
    .cost-ha { grid-column: 1 / -1; margin-top: 4px; flex-direction: row; justify-content: space-between; padding: 6px 10px; flex-wrap: wrap; }
    .cost-ha h4 { font-size: 0.7rem; margin-right: 4px; } .cost-ha p { font-size: 0.85rem; }
}