/* =========================================
   Acá Los Gordos - Modern Design System
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Inter:wght@400;500;700&display=swap');

:root {
  /* Brand Colors */
  --color-primary: #D92323;
  /* Rojo Intenso - Marca */
  --color-primary-dark: #B01818;
  --color-secondary: #F2A900;
  /* Amarillo Maíz - Apetito */
  --color-dark: #1F1F1F;
  /* Negro Suave - Textos */
  --color-light: #F9F9F9;
  /* Fondo Claro */
  --color-white: #FFFFFF;
  --color-gray: #E5E5E5;

  /* Typography */
  --font-heading: 'Lilita One', cursive;
  /* Amigable, gordita, impacto */
  --font-body: 'Inter', sans-serif;
  /* Limpia, legible */

  /* Spacing */
  --container-max: 1200px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-xl: 32px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-hover: 0 10px 25px rgba(217, 35, 35, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Fix anchor scrolling behind fixed header */
section,
#app {
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

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

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* -----------------------------------------
   Utility Classes
   ----------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

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

.text-primary {
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(217, 35, 35, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-dark);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* -----------------------------------------
   Header & Nav
   ----------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 60px;
  width: auto;
  /* Removed margin-top for better alignment */
}

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

/* -----------------------------------------
   Hero Image Animation
   ----------------------------------------- */
/* -----------------------------------------
   Hero Slider
   ----------------------------------------- */
.hero-image-container {
  margin: 2rem auto;
  width: 500px;
  /* Wider / Horizontal */
  height: 280px;
  /* Reduced height for aspect ratio */
  position: relative;
  max-width: 100%;
  /* Responsive safety */
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  border-radius: 20px;
  /* Slightly less rounded for horizontal */
  transform: none;
  /* No rotation */
  transition: opacity 0.5s ease-in-out;
}

.slider-dots {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: var(--color-white);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.nav-link {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 1.1rem;
}

.nav-link:hover {
  color: var(--color-primary);
}

/* -----------------------------------------
   Hero Section
   ----------------------------------------- */
/* -----------------------------------------
   Hero Section
   ----------------------------------------- */
.hero {
  /* height: 100vh; */
  min-height: 800px;
  background-color: var(--color-dark);
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1543340020-b8754850ddcb?q=80&w=2575&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  padding-top: calc(var(--header-height) + 4rem);
  /* Increased spacing */
  padding-bottom: 5rem;
}

.hero-logo {
  width: 220px;
  /* Large prominent logo */
  height: auto;
  margin: 0 auto 1.5rem auto;
  /* Center and space below */
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0.9;
}

.app-store-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}



.app-btn {
  background: #000;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.app-btn:hover {
  background: #222;
  transform: translateY(-3px);
  border-color: var(--color-white);
}

.app-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.app-text span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.app-text strong {
  font-size: 1.1rem;
  display: block;
  line-height: 1;
}

/* -----------------------------------------
   Locations / Sucursales
   ----------------------------------------- */
.locations {
  background-color: var(--color-white);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.location-card {
  background: var(--color-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.map-placeholder {
  width: 100%;
  height: 200px;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  background-size: cover;
  background-position: center;
}

.location-info {
  padding: 2rem;
}

.location-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.location-info p {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.location-actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-btn {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
}

/* -----------------------------------------
   Footer
   ----------------------------------------- */
.main-footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: #aaa;
  transition: 0.3s;
}

.footer-link:hover {
  color: var(--color-secondary);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.social-icon:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

.copyright {
  color: #666;
  font-size: 0.85rem;
  border-top: 1px solid #333;
  padding-top: 2rem;
  margin-top: 2rem;
}

/* -----------------------------------------
   Responsive
   ----------------------------------------- */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    height: auto;
  }

  .nav-menu {
    display: none;
    /* Mobile menu hidden for simple version, or styled differently */
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/* -----------------------------------------
   Animations
   ----------------------------------------- */

/* Scroll Reveal */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for grid items */
.locations-grid .location-card:nth-child(1) {
  transition-delay: 0.1s;
}

.locations-grid .location-card:nth-child(2) {
  transition-delay: 0.2s;
}

.locations-grid .location-card:nth-child(3) {
  transition-delay: 0.3s;
}

/* Pulse Effect for "Open" dot */
@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 128, 0, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 128, 0, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 128, 0, 0);
  }
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: currentColor;
  border-radius: 50%;
  margin-right: 5px;
}

.status-dot.pulse {
  animation: pulse-green 2s infinite;
}

/* -----------------------------------------
   Modal Styles
   ----------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 600px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-dark);
}

.map-container {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1.5rem 0;
  background: #eee;
}

#modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-right: 2rem;
  /* space for close button */
}