:root {
    --primary-color: #1b4332;
    --primary-light: #2d6a4f;
    --accent-color: #d4a373;
    --text-dark: #1f2924;
    --text-light: #fefefe;
    --bg-light: #f4f6f5;
    --white: #ffffff;
    --transition-slow: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations Core */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition-slow);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}
.logo span {
    color: var(--accent-color);
    font-style: italic;
}
.navbar.scrolled .logo {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('assets/hero.jpg') center/cover fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 35, 25, 0.8), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.badge {
    display: inline-block;
    background: rgba(212, 163, 115, 0.15);
    border: 1px solid rgba(212, 163, 115, 0.5);
    backdrop-filter: blur(5px);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease;
}

.hero-content h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 600;
    animation: fadeInUp 1.2s ease;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 50px;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.5px;
    animation: fadeInUp 1.4s ease;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-slow);
    animation: fadeInUp 1.6s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #c09160;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Fruit Sections (Catalog) */
.fruit-section {
    position: relative;
    padding: 140px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 42, 32, 0.9); /* Deep green transparent */
    backdrop-filter: blur(3px); /* Subtle blur to make text pop */
}

#ciruelas .section-overlay { background: rgba(35, 20, 45, 0.9); }
#manzanas .section-overlay { background: rgba(45, 20, 20, 0.9); }
#peras .section-overlay { background: rgba(30, 45, 20, 0.9); }

.section-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.fruit-section .section-header {
    text-align: left;
    margin-bottom: 70px;
    max-width: 800px;
    position: relative;
}

.fruit-section .section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.fruit-section .section-header h2 {
    font-size: 4.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.4);
    font-weight: 600;
}

.fruit-section .section-header p {
    font-size: 1.4rem;
    color: #e8e8e8;
    font-weight: 300;
    line-height: 1.8;
}

.variety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

/* Elegant Glassmorphism Cards */
.variety-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px 35px;
    border-radius: 20px;
    transition: var(--transition-slow);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.variety-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 20px rgba(212, 163, 115, 0.2);
}

.variety-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.variety-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #fcfcfc;
    font-weight: 300;
}

.variety-card strong {
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    background-color: #0b1a13;
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 80px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 80px;
}

.brand-col h3 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}
.brand-col h3 span {
    color: var(--accent-color);
    font-style: italic;
}
.brand-col p {
    font-size: 1.2rem;
    color: #a0b2a8;
    font-weight: 300;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-color);
    font-weight: 600;
}

.footer-col p {
    margin-bottom: 15px;
    color: #a0b2a8;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}
.footer-col p:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    color: #5c7566;
    font-size: 1rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition-slow);
}

.whatsapp-btn:hover {
    transform: scale(1.15) translateY(-8px) rotate(10deg);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 4.5rem; }
    .fruit-section .section-header h2 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 3.2rem; }
    .hero-content p { font-size: 1.1rem; }
    .fruit-section .section-header h2 { font-size: 3rem; }
    .footer-container { flex-direction: column; gap: 40px; }
    .fruit-section { min-height: auto; padding: 100px 0; }
    .variety-card { padding: 30px 20px; }
}
