/* ARRANCANDO - COLORES DE MARCA */

/* Smooth Scroll Global */
html {
  scroll-behavior: smooth;
}

:root {
  /* Colores Principales */
  --rojo-arrancando: #D32F2F; /* RGB: 211, 47, 47 - Pasión, energía, apetito */
  --negro-carbon: #000000; /* RGB: 0, 0, 0 - Elegancia, contraste */
  
  /* Colores Secundarios */
  --blanco-puro: #FFFFFF; /* RGB: 255, 255, 255 - Limpieza, espacio */
  --gris-chef: #9E9E9E; /* RGB: 158, 158, 158 - Profesionalismo sutil */
  --gris-oscuro: #424242; /* Para H3 según brand manual */
  --gris-texto: #616161; /* Para body text según brand manual */
  --gris-medio: #757575; /* Para captions según brand manual */
  
  /* Paleta Complementaria */
  --dorado-tostado: #FFA726; /* Para destacar platos especiales */
  --verde-fresco: #66BB6A; /* Para ingredientes naturales */
  --marron-asado: #6D4C41; /* Para carnes y asados */
}

/* TIPOGRAFÍAS SEGÚN BRAND MANUAL */
body {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 400;
  color: var(--gris-texto);
}

/* Jerarquía Tipográfica según Brand Manual */
h1, .h1 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important; /* Bold */
  font-size: 42px !important;
  color: var(--rojo-arrancando) !important;
}

h2, .h2 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important; /* SemiBold */
  font-size: 32px !important;
  color: var(--negro-carbon) !important;
}

h3, .h3 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important; /* SemiBold */
  font-size: 24px !important;
  color: var(--gris-oscuro) !important;
}

h4, .h4 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  color: var(--negro-carbon) !important;
}

h5, .h5, h6, .h6 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  color: var(--rojo-arrancando) !important;
}

p {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 400 !important; /* Regular */
  font-size: 16px !important;
  color: var(--gris-texto) !important;
  line-height: 1.6;
}

small, .small {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 300 !important; /* Light */
  font-size: 14px !important;
  color: var(--gris-medio) !important;
}

/* CTAs y Botones Principales */
.button, .btn-primary, .btn, input[type="submit"], button[type="submit"] {
  background-color: var(--rojo-arrancando) !important;
  border-color: var(--rojo-arrancando) !important;
  color: var(--blanco-puro) !important;
  padding: 12px 30px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  border: 2px solid var(--rojo-arrancando) !important;
}

.button:hover, .btn-primary:hover, .btn:hover, input[type="submit"]:hover, button[type="submit"]:hover {
  background-color: #B71C1C !important;
  border-color: #B71C1C !important;
  color: var(--blanco-puro) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4) !important;
}

.button-two, .btn-outline {
  background-color: transparent !important;
  border: 2px solid var(--rojo-arrancando) !important;
  color: var(--rojo-arrancando) !important;
  padding: 12px 30px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.button-two:hover, .btn-outline:hover {
  background-color: var(--rojo-arrancando) !important;
  border-color: var(--rojo-arrancando) !important;
  color: var(--blanco-puro) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4) !important;
}

/* Contact Form Buttons */
.contact-form .button, .contact-form input[type="submit"], .contact-form button {
  width: 100% !important;
  margin-top: 1rem !important;
}

/* Newsletter/Subscription Buttons */
.newsletter-btn, .subscribe-btn {
  background-color: var(--rojo-arrancando) !important;
  border-color: var(--rojo-arrancando) !important;
  color: var(--blanco-puro) !important;
}

.newsletter-btn:hover, .subscribe-btn:hover {
  background-color: #B71C1C !important;
  border-color: #B71C1C !important;
}

/* Mobile Menu Buttons */
.mobile-nav-link {
  transition: all 0.3s ease !important;
}

.mobile-nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
  transform: translateX(10px) !important;
}

/* Navegación */
.navbar-nav .nav-link:hover {
  color: var(--rojo-arrancando) !important;
}

/* Títulos y Headers */
h1, h2, h3, .section-title h2 {
  color: var(--negro-carbon) !important;
}

.section-title h5, .section-title h6 {
  color: var(--rojo-arrancando) !important;
}

/* Social Icons - Hero Slider */
.social-icon-list {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.social-icon-list li {
  list-style: none;
}

.social-icon-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--rojo-arrancando) !important;
  color: white !important;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-list li a:hover {
  background-color: #B71C1C !important;
  color: var(--blanco-puro) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

/* Footer Social Icons */
.footer-social-icon {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social-icon li {
  list-style: none;
}

.footer-social-icon li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--rojo-arrancando) !important;
  color: white !important;
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-icon li a:hover {
  background-color: #B71C1C !important;
  color: var(--blanco-puro) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

/* Counter Numbers */
.counter-number {
  color: var(--rojo-arrancando) !important;
}

/* Gallery Overlay */
.gallery-overlay-info {
  background-color: rgba(211, 47, 47, 0.9) !important;
}

/* Links */
a:hover {
  color: var(--rojo-arrancando) !important;
}

/* Form Elements */
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--rojo-arrancando) !important;
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25) !important;
}

/* Icons */
.about-cv-info i {
  color: var(--rojo-arrancando) !important;
}

/* Preloader - Custom Logo Animation */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blanco-puro) 0%, #f8f9fa 100%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
  position: relative;
}

.logo-preloader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#preloader-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  animation: logoFloat 2s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(211, 47, 47, 0.2));
}

.loading-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--rojo-arrancando);
  margin-top: 20px;
  margin-bottom: 15px;
  letter-spacing: 2px;
  animation: textPulse 1.5s ease-in-out infinite;
}

.loading-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--rojo-arrancando);
  animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0s;
}

/* Keyframes */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

@keyframes textPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #preloader-logo {
    width: 100px;
    height: 100px;
  }
  
  .loading-text {
    font-size: 20px;
  }
}

/* Back to Top */
.back-to-top:hover {
  background-color: var(--rojo-arrancando) !important;
}

/* HERO SECTION - TEXTO BLANCO */
.slider .caption h1,
.slider .caption h2,
.slider .caption h3,
.slider .caption p {
  color: var(--blanco-puro) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slider .caption h1 {
  font-size: 48px !important;
  font-weight: 700 !important;
  margin-bottom: 20px;
}

.slider .caption h3 {
  font-size: 24px !important;
  font-weight: 600 !important;
  margin-bottom: 15px;
}

.slider .caption p {
  font-size: 18px !important;
  font-weight: 400 !important;
  margin-bottom: 30px;
  line-height: 1.7;
}

/* COUNTER SECTION - TEXTO BLANCO */
.counter-area {
  background: linear-gradient(135deg, var(--rojo-arrancando) 0%, #B71C1C 100%);
  color: var(--blanco-puro) !important;
}

.counter-area .counter-number,
.counter-area .counter-heading,
.counter-area h2,
.counter-area h3 {
  color: var(--blanco-puro) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.counter-area .counter-number {
  font-size: 48px !important;
  font-weight: 800 !important;
}

.counter-area .counter-heading {
  font-size: 18px !important;
  font-weight: 600 !important;
}

/* Team Social Icons */
.team-social-icon {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.team-social-icon li {
  list-style: none;
}

.team-social-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: white !important;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.team-social-icon a.social-color-1 {
  background-color: var(--rojo-arrancando) !important;
}

.team-social-icon a.social-color-1:hover {
  background-color: #B71C1C !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

.team-social-icon a.social-color-2 {
  background-color: var(--rojo-arrancando) !important;
}

.team-social-icon a.social-color-2:hover {
  background-color: #B71C1C !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

/* SECTION TITLES - APLICAR TIPOGRAFÍAS DE MARCA */
.section-title {
  position: relative;
  margin-bottom: 50px;
  text-align: center;
}

.section-title h2 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important; /* SemiBold */
  font-size: 32px !important;
  color: var(--negro-carbon) !important;
  margin-bottom: 15px;
}

.section-title h5,
.section-title h6,
.section-title .sub-title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  color: var(--rojo-arrancando) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title p {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  color: var(--gris-texto) !important;
  max-width: 600px;
  margin: 0 auto;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--rojo-arrancando);
}

/* TEAM/OWNER SECTION STYLES */
.team-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.2);
  margin-bottom: 20px;
}

.team-image img {
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.team-image:hover img {
  transform: scale(1.05);
}

.single-team-box .team-info h3 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  color: var(--negro-carbon) !important;
  margin-bottom: 10px;
}

.single-team-box .team-info span {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  color: var(--rojo-arrancando) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Navbar Brand Logo Filter for Transparency */
.navbar-brand .white-logo {
  filter: brightness(0) invert(1); /* Hace el logo blanco */
}

.navbar.scrolled .navbar-brand .white-logo {
  filter: none; /* Remueve el filtro cuando el navbar no es transparente */
}

/* Instagram Feed Styles */
.instagram-feed-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.instagram-embed-wrapper {
  min-height: 400px;
  background: #f8f9fa;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Instagram Grid Fallback - Estilo similar a Instagram */
.instagram-grid-fallback {
  display: block; /* Siempre visible como fallback */
}

.instagram-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.instagram-item:hover {
  transform: scale(1.05);
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
}

.overlay-content i.fa-instagram {
  font-size: 40px;
  margin-bottom: 15px;
  display: block;
  color: var(--rojo-arrancando);
}

.overlay-content .likes,
.overlay-content .comments {
  display: inline-block;
  margin: 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.overlay-content .likes i,
.overlay-content .comments i {
  margin-right: 5px;
  font-size: 16px;
}

/* No gutters fix */
.no-gutters {
  margin-right: 0;
  margin-left: 0;
}

.no-gutters > .col,
.no-gutters > [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

/* Mobile Responsive Colors */
@media (max-width: 768px) {
  .navbar-brand .white-logo {
    filter: none; /* En mobile siempre usar logo original */
  }
  
  .snapwidget-widget {
    height: 400px !important;
  }
  
  .instagram-fallback .instagram-post img {
    height: 200px;
  }
}