/* 
  GRUPO BUBANS - DESIGN SYSTEM 
  Inspiración: Apple Premium Minimalist
*/

:root {
    /* Brand Colors */
    --primary-agro: #0F1D12; /* Deep Forest Green */
    --accent-beauty: #D4AF37; /* Champagne Gold */
    --accent-beauty-light: #E8D5B7;
    
    /* Apple Palette */
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F7;
    --bg-dark: #1D1D1F;
    --text-main: #1D1D1F;
    --text-muted: #86868B;
    --glass: rgba(255, 255, 255, 0.72);
    
    /* Spacing & Borders */
    --container-width: 1200px;
    --radius-full: 999px;
    --radius-lg: 24px;
    --radius-md: 12px;
    
    /* Transitions */
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.py-large { padding: 120px 0; }
.py-medium { padding: 80px 0; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }

/* --- HEADER --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 400;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-agro);
}

.btn-nav {
    background: var(--bg-dark);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: var(--radius-full);
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
    overflow: hidden;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: zoomOut 20s linear infinite alternate;
}

@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-content h1 span {
    display: block;
    color: var(--accent-beauty-light);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* --- BUTTONS --- */
.btn-primary {
    background: var(--bg-white);
    color: var(--bg-dark);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* --- BUSINESS UNITS --- */
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 48px;
}

.subtitle {
    display: block;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-beauty);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.units-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.unit-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    height: 600px;
    position: relative;
    cursor: pointer;
}

.unit-image {
    height: 65%;
    overflow: hidden;
}

.unit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.unit-card:hover .unit-image img {
    transform: scale(1.05);
}

.unit-content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.unit-content h3 {
    font-size: 1.8rem;
    margin: 12px 0;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-white);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.link-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary-agro);
}

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.bento-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}

.bento-item:hover img {
    transform: scale(1.1);
    opacity: 0.9;
}

.bento-info {
    position: absolute;
    bottom: 24px;
    left: 24px;
    color: #fff;
    z-index: 2;
}

.bento-item.large { grid-column: span 2; grid-row: span 2; }
.bento-item.medium { grid-column: span 2; }

/* --- ABOUT SECTION --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.about-text h2 {
    font-size: 3rem;
    margin: 20px 0;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-agro);
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- BENEFITS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.benefit-card {
    text-align: center;
}

.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.icon-box svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-beauty);
}

/* --- CONTACT --- */
.form-group { margin-bottom: 20px; }

input, select, textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--bg-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary-agro);
    box-shadow: 0 0 0 4px rgba(15, 29, 18, 0.05);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 60px;
}

.info-item { margin-bottom: 40px; }
.info-item h4 { font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.social-links { display: flex; gap: 20px; margin-top: 10px; }

/* --- FOOTER --- */
.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.footer-links { display: flex; gap: 80px; }
.link-column h5 { margin-bottom: 20px; font-weight: 700; }
.link-column a { display: block; margin-bottom: 12px; color: var(--text-muted); font-size: 0.9rem; }
.link-column a:hover { color: var(--text-main); }

.footer-bottom { padding-top: 40px; text-align: center; color: var(--text-muted); font-size: 0.8rem; }

/* --- WHATSAPP --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 1001;
}

.whatsapp-btn svg { width: 32px; height: 32px; }

/* --- ANIMATIONS (SCROLL REVEAL) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 968px) {
    .hero-content h1 { font-size: 3rem; }
    .units-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .bento-item.large, .bento-item.medium { grid-column: span 2; height: 300px; }
    .bento-item.small { height: 200px; }
    .contact-info { padding-left: 0; margin-top: 60px; }
    .nav-links { display: none; }
    .footer-top { flex-direction: column; gap: 40px; }
    .footer-links { gap: 40px; flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .container { padding: 0 20px; }
    .hero-content h1 { font-size: 2.5rem; }
}
