/* =============================================
   SUZUKI CARRERA MOTOS - CSS CRÍTICO CONSOLIDADO
   Versión: 3.0 - Enero 2025 (CONSOLIDADO)
   ============================================= */

/* ===========================
   FUENTE SUZUKI PRO
   =========================== */
@font-face {
  font-family: 'SuzukiPRO';
  src: url('../fonts/SuzukiPRO.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SuzukiPRO';
  src: url('../fonts/SuzukiPRO-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* VARIABLES CSS GLOBALES */
:root {
    /* Colores Suzuki Oficiales */
    --suzuki-azul: #0066cc;
    --suzuki-azul-oscuro: #002952;
    --suzuki-azul-claro: #4d94ff;
    --suzuki-amarillo: #ffd700;
    --suzuki-gris: #6c757d;
    --suzuki-gris-claro: #f8f9fa;
    --suzuki-gris-oscuro: #343a40;
    
    /* Colores Base */
    --blanco: #ffffff;
    --negro: #000000;
    --rojo: #dc3545;
    --verde: #28a745;
    
    /* Tipografía */
    --font-principal: 'SuzukiPRO', 'Helvetica Neue', Arial, sans-serif;
    --font-secundaria: 'Roboto', Arial, sans-serif;
    --fuente-principal: 'SuzukiPRO', 'Helvetica Neue', Arial, sans-serif;
    --fuente-secundaria: 'Roboto', Arial, sans-serif;
    --fuente-monospace: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    
    /* Tamaños de fuente */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    
    /* Pesos de fuente */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Line heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Letter spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Bordes */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-width: 1px;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* RESET CSS MEJORADO */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-principal);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--suzuki-gris-oscuro);
    background-color: var(--blanco);
    overflow-x: hidden;
}

/* UTILIDADES DE LAYOUT */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -var(--spacing-sm);
}

.col {
    flex: 1;
    padding: 0 var(--spacing-sm);
}

/* GRID SYSTEM */
.grid-auto-fit-250 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.grid-auto-fit-280 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.grid-auto-fit-300 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* TIPOGRAFÍA */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-principal);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--suzuki-azul-oscuro);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.suzuki-title {
    color: var(--suzuki-azul);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.suzuki-subtitle {
    color: var(--suzuki-gris);
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-principal);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: var(--border-width) solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 48px;
}

.btn-primary {
    background-color: var(--suzuki-azul);
    color: var(--blanco);
    border-color: var(--suzuki-azul);
}

.btn-primary:hover {
    background-color: var(--suzuki-azul-oscuro);
    border-color: var(--suzuki-azul-oscuro);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--suzuki-azul);
    color: var(--blanco);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--suzuki-amarillo);
    color: var(--suzuki-azul-oscuro);
    border-color: var(--suzuki-amarillo);
}

.btn-accent:hover {
    background-color: #ffed4a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* NAVBAR CRÍTICO */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    z-index: 1000;
    transition: all var(--transition-fast);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--suzuki-azul);
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-link {
    color: var(--suzuki-gris-oscuro);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
}

.nav-link:hover,
.nav-link.active {
    color: var(--suzuki-azul);
    background-color: rgba(0, 102, 204, 0.1);
}

/* HERO SECTION */
.hero-modern {
    background:
    linear-gradient(106deg, rgb(0 41 82 / 74%) 0%, rgb(0 102 204 / 0%) 60%, rgb(74 144 226 / 90%) 100%),
        url('/assets/images/motocicletas/banners/pc/Banner%20interna%20escritorio.jpg');
    background-size: cover;
    background-position: center;
    color: var(--blanco);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title-modern {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero-title-accent {
    color: var(--suzuki-amarillo);
}

.hero-subtitle-modern {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-modern {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.btn-hero-primary {
    background-color: var(--suzuki-amarillo);
    color: var(--suzuki-azul-oscuro);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background-color: #ffed4a;
}

.btn-hero-secondary {
    background-color: transparent;
    color: var(--blanco);
    border: 2px solid var(--blanco);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-hero-secondary:hover {
    background-color: var(--blanco);
    color: var(--suzuki-azul);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* CARDS */
.card-base {
    background: var(--blanco);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    transition: all var(--transition-fast);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.card-base:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--suzuki-azul);
}

/* FOOTER */
.suzuki-footer {
    background: linear-gradient(135deg, var(--suzuki-azul-oscuro) 0%, #003d7a 100%);
    color: var(--blanco);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-title {
    color: var(--suzuki-amarillo);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: var(--spacing-xs) 0;
    display: block;
}

.footer-link:hover {
    color: var(--suzuki-amarillo);
    padding-left: var(--spacing-sm);
}

/* UTILIDADES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title-modern {
        font-size: 2rem;
    }
    
    .hero-subtitle-modern {
        font-size: 1.125rem;
    }
    
    .hero-cta-modern {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .grid-auto-fit-250,
    .grid-auto-fit-280,
    .grid-auto-fit-300 {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .hero-title-modern {
        font-size: 1.75rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }
}

/* ACCESIBILIDAD */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible para accesibilidad */
.btn:focus,
.nav-link:focus,
.footer-link:focus {
    outline: 3px solid var(--suzuki-amarillo);
    outline-offset: 2px;
}

/* Soporte para usuarios con preferencias reducidas de movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Soporte para alto contraste */
@media (prefers-contrast: high) {
    .btn,
    .card-base,
    .nav-link {
        border-width: 2px;
    }
}

/* ANIMACIONES CRÍTICAS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* LOADING STATES */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--suzuki-azul);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* PRINT STYLES */
/* ===========================
   CLASES UTILITARIAS DE TEXTO
   =========================== */

/* Fuente principal Suzuki */
.font-suzuki {
  font-family: var(--fuente-principal);
}

/* Fuente secundaria */
.font-secondary {
  font-family: var(--fuente-secundaria);
}

/* Tamaños de texto */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }
.text-5xl { font-size: var(--font-size-5xl); }

/* Pesos de fuente */
.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-extrabold { font-weight: var(--font-weight-extrabold); }

/* Line heights */
.leading-tight { line-height: var(--line-height-tight); }
.leading-normal { line-height: var(--line-height-normal); }
.leading-relaxed { line-height: var(--line-height-relaxed); }

/* Letter spacing */
.tracking-tight { letter-spacing: var(--letter-spacing-tight); }
.tracking-normal { letter-spacing: var(--letter-spacing-normal); }
.tracking-wide { letter-spacing: var(--letter-spacing-wide); }

/* ===========================
   RESPONSIVE TYPOGRAPHY
   =========================== */
@media (max-width: 768px) {
  :root {
    --font-size-3xl: 1.5rem;    /* 24px en móvil */
    --font-size-4xl: 1.875rem;  /* 30px en móvil */
    --font-size-5xl: 2.25rem;   /* 36px en móvil */
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-2xl: 1.25rem;   /* 20px en móvil pequeño */
    --font-size-3xl: 1.375rem;  /* 22px en móvil pequeño */
    --font-size-4xl: 1.5rem;    /* 24px en móvil pequeño */
    --font-size-5xl: 1.875rem;  /* 30px en móvil pequeño */
  }
}

@media print {
    .navbar,
    .btn,
    .hero-cta-modern {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
} 