/* OPTIMIZED BUILD */
:root {
  /* === PALETA DEL CLIENTE === */
  --color-primary: #DC2626;      /* Rojo solicitado */
  --color-primary-dark: #B91C1C;
  --color-text: #374151;         /* Gris oscuro solicitado */
  --color-bg: #F9FAFB;
  --color-surface: #FFFFFF;
  --color-border: #E5E7EB;
  
  /* Estados */
  --color-success: #10B981;
  --color-warning: #F59E0B;

  /* === TIPOGRAFIA === */
  --font-primary: 'Inter', system-ui, sans-serif;
  --font-heading: 'Oswald', sans-serif; /* Toque mecánico/industrial */

  /* === SPACING & LAYOUT === */
  --max-width: 1200px;
  --radius-md: 6px;
  --header-height: 70px;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; text-transform: uppercase; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* === COMPONENTES BASE === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem; font-weight: 600; border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.2s; border: none; font-family: var(--font-primary);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--color-primary); color: var(--color-primary); background: transparent; }
.btn-outline:hover { background: var(--color-primary); color: white; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
.section { padding: 4rem 0; }

/* === HEADER === */
header {
  height: var(--header-height); background: var(--color-surface);
  border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { height: 50px; width: auto; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 600; font-size: 0.9rem; }
.nav-links a:hover { color: var(--color-primary); }

/* === HERO === */
.hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?q=80&w=2000&auto=format&fit=crop');
  background-size: cover; background-position: center;
  color: white; padding: 6rem 0; text-align: center;
}
.hero h1 { font-size: 3rem; margin-bottom: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.25rem; max-width: 600px; margin: 0 auto 2rem; opacity: 0.9; }

/* === SERVICIOS === */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem;
}
.service-card {
  background: var(--color-surface); padding: 2rem; border-radius: var(--radius-md);
  border-top: 4px solid var(--color-primary);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-5px); }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

/* === GALERIA === */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem;
}
.gallery-item {
  height: 250px; overflow: hidden; border-radius: var(--radius-md); position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* === FORMULARIO TURNOS === */
.booking-section { background: var(--color-surface); }
.booking-form {
  max-width: 600px; margin: 0 auto; display: grid; gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
label { font-weight: 600; font-size: 0.9rem; }
input, select, textarea {
  padding: 0.8rem; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-family: var(--font-primary); font-size: 1rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-primary); border-color: transparent;
}
.booking-info {
  margin-top: 1rem; font-size: 0.9rem; color: #666; text-align: center;
  background: #f3f4f6; padding: 1rem; border-radius: var(--radius-md);
}

/* === FOOTER === */
footer {
  background: #1F2937; color: white; padding: 3rem 0; margin-top: auto;
}
.footer-content {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem;
}
.contact-info p { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }

/* === HELIX POWERED & UTILS === */
.helix-powered { text-align: center; padding: 2rem 1rem 1rem; background: #1F2937; }
.helix-powered a { font-size: 10px; color: #9CA3AF; opacity: 0.4; letter-spacing: 0.1em; text-transform: uppercase; }
.helix-powered a:hover { opacity: 0.8; color: var(--color-primary); }

.spinner { width: 20px; height: 20px; border: 2px solid white; border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast Notification */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 1rem; border-radius: var(--radius-md); background: #333; color: white; box-shadow: 0 4px 12px rgba(0,0,0,0.2); animation: slideIn 0.3s ease; }
.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

/* Mobile */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .nav-links { display: none; } /* Simplificado para demo, idealmente un burger menu */
  .footer-content { flex-direction: column; text-align: center; }
  .contact-info p { justify-content: center; }
}