/* ============================================================
   ESTILOS PRINCIPALES - SITIO WEB DISTRIBUIDORA PASTRONALDI
   Stack: Vanilla CSS3 (Design Tokens, Grid, Flexbox, Glassmorphism)
   ============================================================ */

:root {
    /* Paleta Corporativa */
    --brand-primary: #1e3a8a;       /* Azul Marino Profundo */
    --brand-secondary: #2563eb;     /* Azul Vibrante */
    --brand-dark: #0f172a;          /* Slate 900 */
    --brand-accent: #f59e0b;        /* Amber Accent */
    --status-success: #10b981;      /* Emerald Green (WhatsApp) */
    
    /* Superficies y Fondos */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    
    /* Bordes y Sombras */
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.07);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset y Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
}

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

/* Tipografía */
h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-muted); }

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

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

.btn-primary {
    background-color: var(--brand-secondary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--brand-secondary);
    color: var(--brand-secondary);
    background-color: rgba(37, 99, 235, 0.05);
}

.btn-app-access {
    background-color: var(--brand-dark);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-app-access:hover {
    background-color: var(--brand-primary);
    transform: scale(1.03);
}

.btn-whatsapp {
    background-color: var(--status-success);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-whatsapp:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

/* Badges */
.section-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--brand-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

/* Navbar */
.navbar-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

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

.logo-badge {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}

.logo-text small {
    font-size: 0.65rem;
    color: var(--brand-secondary);
    letter-spacing: 0.15em;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-secondary);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 4rem;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(245, 158, 11, 0.15);
    color: #d97706;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.2rem;
}

.hero-title {
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

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

.hero-stats {
    display: flex;
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-primary);
}

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

.hero-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    position: relative;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-card h3 {
    margin-bottom: 0.75rem;
}

.badge-accent {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: var(--brand-accent);
    color: var(--brand-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Sections General */
.section-padding {
    padding: 5rem 0;
}

.bg-surface {
    background-color: var(--bg-surface);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

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

/* Features Grid */
.features-grid, .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card, .category-card {
    background-color: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover, .category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-img-placeholder {
    font-size: 3.5rem;
    text-align: center;
    background-color: var(--bg-main);
    padding: 2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}

/* Cobertura Logística */
.coverage-box {
    padding: 3rem;
    border-radius: var(--radius-lg);
    max-width: 800px;
    margin: 0 auto;
}

.coverage-list {
    list-style: none;
    margin: 1.5rem 0;
}

.coverage-list li {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.hub-info {
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
    font-weight: 600;
    color: var(--brand-primary);
}

/* Contacto */
.contact-card {
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    max-width: 800px;
    margin: 0 auto;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: var(--brand-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-desc {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

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

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

.footer-col a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: #ffffff;
}

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

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--status-success);
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    text-decoration: none;
    z-index: 999;
    transition: transform var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsividad Mobile */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

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

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

    .nav-menu {
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        display: none;
    }

    .nav-menu.open {
        display: flex;
    }
}
