/* ========================================
   BATAMIX - Corporate Design System
   Brand Colors from Logo
======================================== */

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

:root {
    /* Primary - Teal (from logo) */
    --primary: #1A6B6E;
    --primary-hover: #238589;
    --primary-dark: #145456;
    --primary-light: #E8F4F4;

    /* Accent - Orange (from logo) */
    --accent: #E57A24;
    --accent-hover: #F08A34;
    --accent-light: #FEF3E8;

    /* Corporate Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-600);
    line-height: 1.7;
    background: var(--white);
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-800);
    font-weight: 700;
    line-height: 1.3;
}

/* ========================================
   Header
======================================== */
header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 8px;
}

.logo span {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--gray-800);
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.btn-header {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-header:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: all 0.3s;
}

/* ========================================
   Buttons
======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 107, 110, 0.25);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-primary.btn-light {
    background: var(--white);
    color: var(--primary);
}

.btn-primary.btn-light:hover {
    background: var(--gray-50);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-tel {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-tel svg {
    width: 18px;
    height: 18px;
}

.btn-tel:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Hero
======================================== */
.hero {
    padding: 5rem 2rem;
    background-color: var(--primary);
    background-image: url('img/bamboo-light.svg');
    background-repeat: repeat;
    background-size: 32px 64px;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.hero-actions .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.hero-actions .btn-primary:hover {
    background: var(--gray-50);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-actions .btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.hero-actions .btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Section Common
======================================== */
section {
    padding: 5rem 2rem;
}

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

.section-header {
    max-width: 600px;
    margin-bottom: 3.5rem;
}

.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-header.light h2 {
    color: var(--white);
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.8);
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ========================================
   Productos
======================================== */
.productos {
    background: var(--white);
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.producto-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.producto-img {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
}

.producto-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.producto-card:hover .producto-img img {
    transform: scale(1.03);
}

.producto-content {
    padding: 1.5rem;
}

.producto-content h3 {
    font-size: 1.375rem;
    margin-bottom: 0.625rem;
    color: var(--gray-800);
}

.producto-content p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.producto-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.producto-tags li {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
}

/* ========================================
   Clientes (Corporate Style with Icons)
======================================== */
.clientes {
    background-color: var(--primary);
    background-image: url('img/bamboo-light.svg');
    background-repeat: repeat;
    background-size: 32px 64px;
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.cliente-card {
    background: var(--primary-dark);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

.cliente-card:hover {
    background: #0F4A4C;
    transform: translateY(-4px);
}

.cliente-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: all 0.3s ease;
}

.cliente-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.cliente-card:hover .cliente-icon {
    background: var(--accent);
}

.cliente-card h3 {
    font-size: 1.0625rem;
    color: var(--white);
    margin-bottom: 0.625rem;
    font-weight: 600;
}

.cliente-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

/* ========================================
   Nosotros
======================================== */
.nosotros {
    background-color: var(--gray-50);
}

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

.nosotros-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.nosotros-desc {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.nosotros-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.feature:hover .feature-icon {
    background: var(--primary);
    border-color: var(--primary);
}

.feature:hover .feature-icon svg {
    color: var(--white);
}

.feature-text h4 {
    font-size: 0.9375rem;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.feature-text p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.nosotros-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================
   CTA
======================================== */
.cta {
    background-color: var(--gray-800);
    background-image: url('img/bamboo-light.svg');
    background-repeat: repeat;
    background-size: 32px 64px;
    padding: 4rem 2rem;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    max-width: 480px;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* ========================================
   Contacto
======================================== */
.contacto {
    background: var(--white);
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contacto-card {
    background: var(--gray-50);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contacto-card:hover {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.contacto-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.contacto-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.contacto-card h3 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.contacto-value {
    color: var(--gray-600);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    line-height: 1.6;
    font-style: normal;
}

a.contacto-value:hover {
    color: var(--primary);
}

.contacto-value span {
    display: block;
}

/* ========================================
   Footer
======================================== */
footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

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

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.625rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact li svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--accent);
    margin-top: 2px;
}

.footer-contact li a,
.footer-contact li span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: none;
}

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

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

    .hero-image {
        max-width: 560px;
        margin: 0 auto;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nosotros-image {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .cta-content p {
        max-width: none;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .header-container {
        padding: 1rem 1.5rem;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray-100);
    }

    nav a:last-child {
        border-bottom: none;
    }

    .btn-header {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-image {
        display: none;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

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

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

    .nosotros-features {
        grid-template-columns: 1fr;
    }

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

    .cta {
        padding: 3rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn-primary,
    .cta-actions .btn-tel {
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ========================================
   Animations
======================================== */
.producto-card,
.cliente-card,
.contacto-card,
.feature {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.producto-card.visible,
.cliente-card.visible,
.contacto-card.visible,
.feature.visible {
    opacity: 1;
    transform: translateY(0);
}

.producto-card:nth-child(1) { transition-delay: 0s; }
.producto-card:nth-child(2) { transition-delay: 0.1s; }
.producto-card:nth-child(3) { transition-delay: 0.2s; }

.cliente-card:nth-child(1) { transition-delay: 0s; }
.cliente-card:nth-child(2) { transition-delay: 0.1s; }
.cliente-card:nth-child(3) { transition-delay: 0.2s; }
.cliente-card:nth-child(4) { transition-delay: 0.3s; }

.contacto-card:nth-child(1) { transition-delay: 0s; }
.contacto-card:nth-child(2) { transition-delay: 0.1s; }
.contacto-card:nth-child(3) { transition-delay: 0.2s; }

.feature:nth-child(1) { transition-delay: 0s; }
.feature:nth-child(2) { transition-delay: 0.1s; }
.feature:nth-child(3) { transition-delay: 0.2s; }
.feature:nth-child(4) { transition-delay: 0.3s; }
