/* ============================================
   SANCHEZ & CIA - PHASE 5 STYLES
   Color system, components, animations
   ============================================ */

:root {
    /* Product Line Colors */
    --color-bombagua: #0055A4;      /* deep blue */
    --color-espa: #E30613;          /* red */
    --color-agrometal: #558B2F;     /* green */
    --color-yale: #F9A800;          /* Yale yellow */
    --color-otros: #5C6BC0;         /* indigo */
    
    /* Corporate */
    --color-corporate: #1A2B4A;     /* dark navy base */
    --color-white: #FFFFFF;
    --color-gray-light: #F5F7FA;
    --color-gray: #64748B;
    
    /* Line color (default) */
    --line-color: var(--color-corporate);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--color-white);
    color: #333;
    line-height: 1.6;
}

/* ============================================
   PRODUCT LINE ACCENT CLASSES
   ============================================ */

.line-bombagua {
    --line-color: var(--color-bombagua);
}

.line-espa {
    --line-color: var(--color-espa);
}

.line-agrometal {
    --line-color: var(--color-agrometal);
}

.line-yale {
    --line-color: var(--color-yale);
}

.line-otros {
    --line-color: var(--color-otros);
}

/* Line accent utilities */
.line-accent-bg {
    background-color: var(--line-color);
}

.line-accent-text {
    color: var(--line-color);
}

.line-accent-border {
    border-color: var(--line-color);
}

.line-accent-border-top {
    border-top: 4px solid var(--line-color);
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */

nav {
    background-color: var(--color-corporate);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

nav a.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #b3d9ff;
}

nav a.active {
    color: var(--color-yale);
    font-weight: 600;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-yale);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--color-corporate);
        gap: 0;
        padding: 1rem;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 0;
    }

    .nav-toggle {
        display: block;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */

footer {
    background-color: var(--color-corporate);
    color: var(--color-white);
    padding: 3rem 1rem 1rem;
    margin-top: 4rem;
}

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

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

footer h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

footer p, footer a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: var(--color-white);
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 50;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--color-corporate) 0%, #2c3e50 100%);
    color: var(--color-white);
    padding: 6rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    display: inline-block;
    background-color: var(--color-yale);
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--color-yale);
}

.hero-cta:hover {
    background-color: transparent;
    color: var(--color-white);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem;
    }

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

    .hero p {
        font-size: 1rem;
    }
}

/* ============================================
   CARDS & COMPONENTS
   ============================================ */

.card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--line-color);
    color: var(--color-white);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--color-gray-light);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.card-text {
    font-size: 0.95rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #0f1621;
}

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

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-corporate);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
    max-width: 600px;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 768px) {
    .section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   STATS
   ============================================ */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--line-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-gray);
    font-weight: 500;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ============================================
   UTILITIES
   ============================================ */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.text-gray { color: var(--color-gray); }
.text-muted { opacity: 0.7; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Country/Language Switcher */
.nav-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.2);
    list-style: none;
}
