/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables for design system */
:root {
  --bg-primary: #0a0c0e;
  --bg-secondary: #111418;
  --bg-tertiary: #181d24;
  --accent: #ff6b00;
  --accent-hover: #e05e00;
  --accent-glow: rgba(255, 107, 0, 0.25);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #1f2937;
  
  --border-light: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(255, 107, 0, 0.3);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --glass-bg: rgba(17, 20, 24, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
  border: none;
  min-height: 48px; /* Accessibility requirement */
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.5rem 0;
  background: rgba(10, 12, 14, 0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition-smooth);
}

header.scrolled .nav-container {
  height: 60px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #fff 0%, #fff 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1100;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: linear-gradient(to bottom, rgba(10, 12, 14, 0.4), rgba(10, 12, 14, 0.95)), url('images/hero_bg.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate ease-in-out;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: -1;
}

.hero-content {
  max-width: 700px;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.2);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  animation: fadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  animation: fadeInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Infinite Brand Carrusel Section */
.brands-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem 0;
  position: relative;
  z-index: 5;
}

.brands-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
}

.brands-container::before, .brands-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.brands-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary) 0%, transparent 100%);
}

.brands-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary) 0%, transparent 100%);
}

.brands-track {
  display: flex;
  width: max-content;
  animation: infiniteScroll 45s linear infinite;
  gap: 4rem;
  align-items: center;
}

.brand-item {
  opacity: 0.45;
  transition: var(--transition-smooth);
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-item img {
  height: 32px;
  width: auto;
  max-width: 140px;
  display: block;
  filter: invert(1) grayscale(1) brightness(1.8) contrast(1.2);
  mix-blend-mode: screen;
  transition: var(--transition-smooth);
}

.brand-item:hover {
  opacity: 0.95;
}


/* Sections General */
section.py-section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Rubros Section */
.rubros-grid {
  display: grid;
  grid-template-columns: repeat(3, 150fr);
  gap: 2rem;
}

.rubro-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.rubro-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-light));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.rubro-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-premium), 0 0 20px var(--accent-glow);
}

.rubro-img-container {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.rubro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.rubro-card:hover .rubro-img {
  transform: scale(1.08);
}

.rubro-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(17, 20, 24, 0.95));
}

.rubro-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.rubro-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.rubro-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* Instagram Feed Section */
.instagram-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.insta-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 320px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-light);
}

.insta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.insta-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 14, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  padding: 1.5rem;
  text-align: center;
  z-index: 2;
}

.insta-card:hover .insta-card-overlay {
  opacity: 1;
}

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

.insta-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.insta-caption {
  font-size: 0.9rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1rem;
}

.insta-likes-comments {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.instagram-btn-container {
  text-align: center;
}

/* Sucursales Section */
.sucursales-selector {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: #fff;
  border-color: var(--text-muted);
}

.tab-btn.active {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.sucursal-display {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 3rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 3rem;
  min-height: 480px;
}

.sucursal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sucursal-branch-title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.sucursal-branch-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
}

.sucursal-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.sucursal-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.sucursal-detail-icon {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.sucursal-detail-text h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.sucursal-detail-text p {
  color: var(--text-main);
  font-size: 1.05rem;
}

.sucursal-map-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: var(--bg-tertiary);
  min-height: 350px;
}

.sucursal-map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: pointer;
  z-index: 2;
  transition: var(--transition-smooth);
}

.sucursal-map-placeholder:hover {
  background-color: rgba(255, 107, 0, 0.05);
  color: #fff;
}

.sucursal-map-placeholder .map-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.sucursal-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Footer styling */
footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-about p {
  color: var(--text-muted);
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-link a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-item span:first-child {
  color: var(--accent);
}

.footer-contact-item a {
  text-decoration: underline;
}

.footer-contact-item a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

@keyframes infiniteScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-35px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .rubros-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .rubro-card:last-child {
    grid-column: span 2;
  }
  
  .sucursal-display {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  
  .sucursal-map-wrapper {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  /* Navigation Mobile */
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-light);
    flex-direction: column;
    padding: 6rem 2rem 2rem 2rem;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .rubros-grid {
    grid-template-columns: 1fr;
  }
  
  .rubro-card:last-child {
    grid-column: span 1;
  }
  
  .insta-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .sucursales-selector {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  
  .tab-btn {
    width: 100%;
    text-align: center;
  }
  
  section.py-section {
    padding: 4.5rem 0;
  }
}

/* Ocultar marca de agua de Elfsight */
a[href*="elfsight.com"], 
div[class*="eapps-link"],
.eapps-link {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
