/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GENERAL
   ========================================================================== */
:root {
    --primary-color: #0d1520;       
    --secondary-color: #1a2332;     
    --accent-color: #d9383a;        
    --text-main: #2b303a;           
    --text-muted: #6c757d;          
    --bg-light: #f4f6f9;            
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Helpers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-color); }
.text-white { color: var(--bg-white); }
.text-center { text-align: center; }

.grid {
    display: grid;
    gap: 40px;
}

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

/* Tipografía de Sección */
.section-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: #b82a2c;
    border-color: #b82a2c;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(13, 21, 32, 0.95);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.brand-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-white);
    letter-spacing: 1px;
}

.brand-logo span {
    color: var(--accent-color);
    font-weight: 300;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--bg-white);
}

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

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--bg-white);
    transition: 0.3s;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    color: var(--bg-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(217, 56, 58, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--bg-white);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 650px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.7;
    z-index: 2;
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bg-white);
    margin: 0;
    font-weight: 500;
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid var(--bg-white);
    border-radius: 12px;
}

/* ==========================================================================
   2. SOBRE CASQUERO
   ========================================================================== */
.sobre-nosotros {
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 24px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.exp-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.exp-text {
    font-size: 0.85rem;
    opacity: 0.8;
}

.kpi-grid {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.kpi-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

/* ==========================================================================
   3. HISTORIA
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }

.timeline-year {
    display: inline-block;
    padding: 2px 10px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* ==========================================================================
   4. SERVICIOS
   ========================================================================== */
.service-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   5. OPERACIÓN / LOGÍSTICA
   ========================================================================== */
.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 60px;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 0 15px;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    opacity: 0.9;
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.process-line {
    height: 2px;
    background-color: rgba(255, 255, 255, 0.15);
    flex: 0.5;
    margin-top: 30px;
}

/* ==========================================================================
   6. COCA-COLA / DISTRIBUIDOR OFICIAL
   ========================================================================== */
.experiencia-coca {
    padding: 80px 0;
}

.coca-card {
    background-color: var(--bg-white);
    border: 2px solid #f40009; 
    padding: 60px 40px;
    border-radius: 8px;
    color: var(--text-main);
    position: relative;
    box-shadow: 0 20px 40px rgba(244, 0, 9, 0.1);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.coca-logo-img {
    max-width: 280px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
}

.coca-badge {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #f40009;
    font-weight: 700;
    margin-bottom: 12px;
}

.coca-card h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.coca-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 30px;
}

.coca-footer span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==========================================================================
   7. FLOTA
   ========================================================================== */
.flota-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.flota-img-box {
    height: 220px;
    overflow: hidden;
}

.flota-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.flota-card:hover .flota-img-box img {
    transform: scale(1.05);
}

.flota-body {
    padding: 24px;
}

.flota-body h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.flota-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.flota-specs {
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.flota-specs li {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

/* ==========================================================================
   8. GALERÍA & LIGHTBOX
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 21, 32, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--bg-white);
    font-size: 40px;
    cursor: pointer;
}

/* ==========================================================================
   9. POR QUÉ ELEGIRNOS
   ========================================================================== */
.feature-box {
    background-color: var(--bg-white);
    padding: 30px 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.feature-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.feature-box h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   10. CONTACTO (WHATSAPP CARDS)
   ========================================================================== */
.contacto-lead {
    max-width: 600px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.8);
}

.whatsapp-buttons-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.wa-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    min-width: 280px;
    transition: all 0.3s ease;
}

.wa-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    border-color: #25D366; 
}

.wa-card.highlighted {
    border-color: var(--accent-color);
    background-color: rgba(217, 56, 58, 0.1);
}

.wa-icon { font-size: 2rem; }
.wa-title { display: block; font-weight: 600; font-size: 1rem; color: var(--bg-white); }
.wa-desc { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #080c13;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 16px;
}

.footer-brand span { color: var(--accent-color); font-weight: 300; }

.footer-col h4 {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--bg-white); }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.gep-link {
    color: var(--bg-white);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.gep-link:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   ANIMACIONES REVEAL (SCROLL)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (OPTIMIZADO PARA TABLET Y MÓVIL)
   ========================================================================== */
@media (max-width: 992px) {
    .section { padding: 80px 0; }
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.75rem; }
    .process-flow { flex-direction: column; gap: 30px; }
    .process-line { display: none; }
    .gallery-item.large { grid-column: span 1; }
    .coca-card { padding: 40px 24px; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    
    .menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active { right: 0; }
    
    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    
    .about-experience-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
    }

    .kpi-grid { flex-direction: column; gap: 20px; }
    
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px !important; text-align: left !important; }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot { left: 12px; }
    
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 200px; }

    .wa-card { width: 100%; min-width: auto; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.75rem; }
    .coca-logo-img { max-width: 200px; }
}