/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #4a90a4;
  --primary-hover: #3d7a8c;
  --background: #0a0a0a;
  --foreground: #fafafa;
  --muted: #171717;
  --muted-foreground: #a3a3a3;
  --border: #262626;
  --card: #0f0f0f;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white; /* Cambiado a blanco para contraste */
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted);
  border-color: var(--muted-foreground);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--foreground);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--foreground);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.mobile-menu.active {
  display: block;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-mobile a {
  color: var(--muted-foreground);
  padding: 0.5rem 0;
}

.header .btn-primary {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .header .btn-primary {
    display: inline-flex;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
}

.hero-content {
  text-align: center;
  max-width: 900px;
}

.hero-subtitle {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 1px;
  background-color: var(--border);
  display: none;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }

  .stat-divider {
    display: block;
  }
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary); /* Fondo azul */
  color: white; /* CAMBIADO: Antes era var(--primary), ahora es blanco para legibilidad */
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  border: 1px solid var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Services */
.services {
  padding: 5rem 0;
  background-color: var(--background);
}

.services-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  position: relative;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.service-featured {
  border-color: var(--primary);
}

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary);
  color: white; /* Ya estaba en blanco */
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  z-index: 10;
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-content {
  padding: 1.5rem;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.service-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.service-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.service-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.service-features svg {
  color: var(--primary);
  flex-shrink: 0;
}

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

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Store */
.store {
  padding: 3rem 0;
}

.store-card {
  background: linear-gradient(135deg, var(--card), var(--muted));
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
}

.store-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--primary);
  color: white; /* CAMBIADO: Antes el texto/icono era azul sobre fondo azul */
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.store-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.store-description {
  color: var(--muted-foreground);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* About */
.about {
  padding: 5rem 0;
  background-color: var(--muted);
}

.about-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-text {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-text strong {
  color: var(--foreground);
}

.about-features {
  display: grid;
  gap: 1.5rem;
}

.feature {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: border-color 0.2s ease;
}

.feature:hover {
  border-color: var(--primary);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: white; /* CAMBIADO: Icono blanco para resaltar sobre fondo azul */
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.feature-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.about-quote {
  text-align: center;
  padding: 2rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.about-quote blockquote {
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about-quote p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}

/* Location */
.location {
  padding: 5rem 0;
}

.location-grid {
  display: grid;
  gap: 2rem;
}

.location-map {
  height: 300px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(100%) invert(92%) contrast(83%);
}

.info-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item:last-of-type {
  margin-bottom: 2rem;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: white; /* CAMBIADO: Icono blanco sobre fondo azul */
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.info-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.info-item p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .location-grid {
    grid-template-columns: 1.5fr 1fr;
  }

  .location-map {
    height: 400px;
  }
}

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

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-contact p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-contact .btn {
  margin-top: 1rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}