/* ========================================
   RESTAURANTEROS CUP CHAMPIONS
   Sistema de Diseño - CSS Completo
   ======================================== */

/* ========================================
   1. IMPORTAR TIPOGRAFÍAS
   ======================================== */

/* Display Font - Deportiva y contundente */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Sans-serif limpia y legible */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   2. VARIABLES CSS - PALETA DE COLORES
   ======================================== */

:root {
  /* Colores Primarios */
  --color-primary: #9C1B1F;
  --color-primary-dark: #7F161A;
  --color-primary-light: #C42A2E;

  /* Colores Secundarios - Dorado */
  --color-secondary: #FDB016;
  --color-secondary-light: #FFC44D;

  /* Colores Acentos - Café/Bronce */
  --color-accent: #8A4A1E;
  --color-accent-dark: #82421C;

  /* Colores Neutros */
  --color-bg-cream: #FFF9F0;
  --color-white: #FFFFFF;
  --color-text-dark: #242424;
  --color-text-muted: #6B6B6B;
  --color-border: #E8E8E8;

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #9C1B1F 0%, #7F161A 100%);
  --gradient-warm: linear-gradient(135deg, #FDB016 0%, #FFC44D 100%);

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Tipografía */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Tamaños de fuente */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Radio */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* ========================================
   3. RESETS Y ESTILOS BASE
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* ========================================
   4. TIPOGRAFÍA
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-primary);
}

h1 {
  font-size: var(--text-6xl);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: var(--text-2xl);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  color: var(--color-text-dark);
}

p.lead {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.8;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

/* ========================================
   5. COMPONENTES - BOTONES
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

/* Botón Primario */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  box-shadow: 0 0 20px rgba(156, 27, 31, 0.3);
}

/* Botón Secundario */
.btn-secondary {
  background: var(--gradient-warm);
  color: var(--color-text-dark);
  border: 2px solid var(--color-secondary);
  font-weight: 700;
}

.btn-secondary:hover {
  background: var(--color-secondary-light);
  box-shadow: 0 0 20px rgba(253, 176, 22, 0.3);
}

/* Botón invertido */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Botón pequeño */
.btn-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--text-xs);
}

/* Botón grande */
.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

/* Botón con icono */
.btn i {
  font-size: 1.2em;
}

/* ========================================
   6. COMPONENTES - BADGES
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 50px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.badge-secondary {
  background: var(--color-secondary);
  color: var(--color-text-dark);
}

.badge-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.badge-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

/* ========================================
   7. COMPONENTES - TARJETAS
   ======================================== */

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-dark {
  background: var(--color-text-dark);
  color: var(--color-white);
}

.card-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
}

.card-secondary {
  background: var(--gradient-warm);
  color: var(--color-text-dark);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.card-text {
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ========================================
   8. COMPONENTES - SECCIONES
   ======================================== */

section {
  padding: var(--spacing-2xl) var(--spacing-lg);
  position: relative;
}

section.section-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
}

section.section-secondary {
  background: var(--color-secondary);
  color: var(--color-text-dark);
}

section.section-cream {
  background: var(--color-bg-cream);
}

section.section-dark {
  background: var(--color-text-dark);
  color: var(--color-white);
}

section.section-white {
  background: var(--color-white);
}

/* Ritmo visual alternado */
.rhythm-1 { background: var(--color-bg-cream); }
.rhythm-2 { background: var(--gradient-primary); color: var(--color-white); }
.rhythm-3 { background: var(--color-white); }
.rhythm-4 { background: var(--color-text-dark); color: var(--color-white); }
.rhythm-5 { background: var(--gradient-warm); color: var(--color-text-dark); }

/* ========================================
   9. ELEMENTOS GRÁFICOS - LÍNEAS Y FORMAS
   ======================================== */

/* Línea diagonal decorativa */
.line-diagonal {
  position: absolute;
  background: var(--color-secondary);
  transform: skewX(-20deg);
}

.line-diagonal-primary {
  background: var(--color-primary);
}

.line-diagonal-secondary {
  background: var(--color-secondary);
}

/* Forma inclinada */
.shape-skew {
  transform: skewY(-3deg);
}

.shape-skew-reverse {
  transform: skewY(3deg);
}

/* Círculo decorativo */
.circle-decorator {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
}

.circle-primary {
  background: var(--color-primary);
}

.circle-secondary {
  background: var(--color-secondary);
}

/* Línea horizontal */
.divider {
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  margin: var(--spacing-xl) 0;
  border-radius: 2px;
}

.divider-short {
  width: 100px;
  height: 4px;
  background: var(--color-secondary);
  margin-bottom: var(--spacing-md);
}

/* ========================================
   10. CONTENEDORES Y LAYOUTS
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-lg);
}

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.flex {
  display: flex;
  gap: var(--spacing-md);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.flex-col {
  flex-direction: column;
}

/* ========================================
   11. UTILIDADES DE ESPACIADO
   ======================================== */

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.px-sm { padding: 0 var(--spacing-sm); }
.px-md { padding: 0 var(--spacing-md); }
.px-lg { padding: 0 var(--spacing-lg); }

.py-sm { padding: var(--spacing-sm) 0; }
.py-md { padding: var(--spacing-md) 0; }
.py-lg { padding: var(--spacing-lg) 0; }

.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }

/* ========================================
   12. UTILIDADES DE TEXTO
   ======================================== */

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-white {
  color: var(--color-white);
}

.text-dark {
  color: var(--color-text-dark);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-lowercase {
  text-transform: lowercase;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.text-xl {
  font-size: var(--text-xl);
}

.text-2xl {
  font-size: var(--text-2xl);
}

.text-3xl {
  font-size: var(--text-3xl);
}

.text-4xl {
  font-size: var(--text-4xl);
}

/* ========================================
   13. NÚMEROS GRANDES - ESTADÍSTICAS
   ======================================== */

.number-large {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
}

.stat-box {
  text-align: center;
}

.stat-value {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* ========================================
   14. ICONOGRAFÍA
   ======================================== */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
}

.icon-sm {
  font-size: var(--text-lg);
}

.icon-lg {
  font-size: var(--text-4xl);
}

.icon-primary {
  color: var(--color-primary);
}

.icon-secondary {
  color: var(--color-secondary);
}

.icon-white {
  color: var(--color-white);
}

/* ========================================
   15. EFECTOS Y ANIMACIONES
   ======================================== */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* ========================================
   16. OVERLAY Y FONDOS
   ======================================== */

.overlay {
  position: relative;
}

.overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: inherit;
}

.overlay-primary::before {
  background: rgba(156, 27, 31, 0.3);
}

.overlay-secondary::before {
  background: rgba(253, 176, 22, 0.2);
}

/* ========================================
   17. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  h3 {
    font-size: var(--text-2xl);
  }

  section {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .number-large {
    font-size: var(--text-4xl);
  }

  .stat-value {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-sm);
  }

  section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .btn {
    width: 100%;
  }

  .flex-col {
    flex-direction: column;
  }
}

/* ========================================
   18. PRELOADER
   ======================================== */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
}

.preloader-show {
  animation: none;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease-in;
}

.preloader-hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-out;
}

/* Spinner animado */
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--color-secondary);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.preloader-text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ========================================
   19. UTILIDADES ADICIONALES
   ======================================== */

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-wrap {
  white-space: nowrap;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.transition {
  transition: all 0.3s ease;
}

/* ========================================
   20. FONDOS DE LOS SLIDES
   ======================================== */
.slide-1 {
    background-image: url('../img/hero-01.jpg');
    background-position: center;
    background-size:cover;
    background-repeat: no-repeat;
    height: 600px;
}

.slide-2 {
    background-image: url('../img/hero-02.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 600px;
}

.slide-3 {
    background-image: url('../img/hero-03.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 600px;
}

/* ========================================
   21. LABEL DE ERROR DE VALIDACIÓN
   ======================================== */
.just-validate-error-label {
    font-weight: 100;
    font-size: 14px;
    color: #b81111 !important;
}


/* ========================================
   FIN DEL ARCHIVO CSS
   ======================================== */
