:root {
    --bg: #F5F5F5;
    --text: #2C2C2C;
    --text-muted: #4F4F4F;
    --dark: #111111;
    --primary: #2E7D32;
    --secondary: #66BB6A;
    --tertiary: #6D4C41;
    --accent: #FBC02D;
    --accent-soft: #E8F5E9;
    --surface: #FFFFFF;
    --surface-soft: #F8F8F2;
    --surface-strong: #FFFFFF;
    --shadow: rgba(44, 44, 44, 0.16);
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: radial-gradient(circle at top right, rgba(255,255,255,0.4), transparent 15%),
                radial-gradient(circle at left center, rgba(255,255,255,0.18), transparent 16%),
                var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .btn {
    font-family: 'Catamaran', sans-serif;
}

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

/* Top Bar */
.top-bar {
    background: var(--surface-soft);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-bar a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
}

.top-bar a:hover {
    color: var(--primary);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid rgba(45, 90, 45, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 18px 0;
}

.header-brand,
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
    padding-left: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero */
.hero {
    height: 100vh;
    background: radial-gradient(circle at 18% 18%, rgba(255,255,255,0.18), transparent 17%),
                radial-gradient(circle at 82% 68%, rgba(255,255,255,0.12), transparent 24%),
                linear-gradient(135deg, #2E7D32 0%, #4F8F3E 48%, #7CC675 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="22" cy="22" r="1" fill="rgba(255,255,255,0.12)"/><circle cx="68" cy="68" r="1" fill="rgba(255,255,255,0.12)"/><circle cx="78" cy="18" r="0.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.32;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 52% 48% 60% 40% / 42% 58% 42% 58%;
    background: rgba(255,255,255,0.12);
    top: 8%;
    left: -10%;
    filter: blur(42px);
    transform: rotate(-10deg);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 580px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 16px rgba(0,0,0,0.28);
}

.hero-image {
    position: absolute;
    top: 10%;
    right: 0;
    width: 52%;
    height: 80%;
    background: url('../img/catalogo/fondo.jpg') center/cover;
    clip-path: ellipse(58% 52% at 50% 50%);
    box-shadow: -30px 30px 90px rgba(0,0,0,0.24);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(255,255,255,0.3);
    clip-path: ellipse(58% 52% at 50% 50%);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.18);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05) 50%),
                linear-gradient(135deg, #2E7D32 0%, #5FAF52 45%, #79C06F 100%);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08) 50%),
                linear-gradient(135deg, #4C9F3F 0%, #70BD5F 30%, #8BD084 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.22);
}

.btn-secondary {
    background: rgba(255,255,255,0.18);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: transparent;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent);
    color: var(--dark);
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.btn-whatsapp:hover {
    background: #c89b08;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(109, 76, 65, 0.12);
    width: 100%;
    max-width: 520px;
    min-width: 0;
}

.search-form input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    color: var(--text);
}

.search-form button {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.1rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.nav-toggle {
    display: none;
}

/* Secciones */
section {
    padding: 100px 0;
}

.categories {
    background: var(--surface-soft);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.category-card {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,250,238,0.96));
    border: 1px solid rgba(109, 76, 65, 0.12);
    box-shadow: 0 14px 32px rgba(44,44,44,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at 30% 30%, rgba(124,192,117,0.28), transparent 55%);
    filter: blur(10px);
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(44,44,44,0.12);
    border-color: var(--secondary);
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.category-card h3 {
    font-size: 1.1rem;
    margin: 1rem;
    color: var(--primary);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Nosotros */
.nosotros {
    background: var(--surface-soft);
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.nosotros-text h3 {
    font-size: 1.8rem;
    color: var(--tertiary);
    margin-bottom: 1.5rem;
}

.nosotros-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 40px;
}

.nosotros-image img {
    width: 100%;
    border-radius: 36px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Productos */
.productos {
    background: white;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.producto-card {
    background: var(--surface);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(109,76,65,0.14);
    box-shadow: 0 10px 40px rgba(44,44,44,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(44,44,44,0.12);
    border-color: var(--secondary);
}

.producto-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0 0 28px 28px;
    clip-path: inset(0 round 0 0 28px 28px);
}

.producto-info {
    padding: 1.5rem;
}

.galeria {
    background: var(--surface-soft);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.galeria-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(109,76,65,0.12);
    box-shadow: 0 12px 25px rgba(44,44,44,0.08);
    text-align: center;
}

.galeria-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0 0 24px 24px;
    clip-path: inset(0 round 0 0 24px 24px);
}

.galeria-card p {
    padding: 1rem;
    font-weight: 600;
    color: var(--primary);
}
.producto-info h3 {
    color: #2d5a2d;
    margin-bottom: 0.5rem;
}

.precio {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 0.5rem;
}

.producto-info p {
    color: var(--text-muted);
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacto-form input,
.contacto-form textarea {
    padding: 15px;
    border: 1px solid rgba(109,76,65,0.15);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    border-color: var(--secondary);
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
    color: rgba(44, 44, 44, 0.45);
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.contacto-form button {
    width: fit-content;
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    color: white;
    background: var(--accent);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.contacto-form button:hover {
    background: #d4a80b;
    transform: translateY(-2px);
}

.contacto-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.contacto {
    background: linear-gradient(135deg, var(--primary) 0%, #4a7c59 100%);
    color: white;
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contacto-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contacto-item i {
    font-size: 1.8rem;
    color: var(--accent);
    width: 50px;
    min-width: 50px;
}

.contacto-item h4 {
    color: var(--accent-soft);
    margin-bottom: 0.5rem;
}

.contacto-item p,
.contacto-item a {
    color: rgba(255, 255, 255, 0.9);
}

.contacto-item a:hover {
    color: var(--accent);
}

.contacto-cta {
    background: rgba(255, 255, 255, 0.12);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.contacto-cta h3 {
    color: var(--accent-soft);
    margin-bottom: 1rem;
}

.contacto-cta p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.92);
}

.footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand i {
    font-size: 2rem;
    color: var(--accent);
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 992px) {
    .hero-image {
        display: none;
    }

    .hero {
        min-height: 80vh;
        padding-top: 70px;
    }

    .hero-content {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .search-form {
        max-width: 100%;
        width: 100%;
    }

    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nosotros-content,
    .contacto-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .productos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .nav-menu {
        padding: 1.5rem 0;
    }

    .nav-menu li {
        margin-bottom: 1rem;
    }

    .producto-card img,
    .producto-card {
        min-height: auto;
    }

    .contacto-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Producto Detalle */
.producto-detalle {
    padding: 4rem 0;
    background: var(--bg);
}

.producto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.producto-imagen img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.producto-info h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.producto-info .precio {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.producto-info .descripcion {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.producto-info h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 2rem 0 1rem 0;
}

.producto-info ul {
    list-style: none;
    padding: 0;
}

.producto-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.producto-info li:last-child {
    border-bottom: none;
}

.producto-acciones {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .producto-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .producto-info h1 {
        font-size: 2rem;
    }
}
