/* ============================================
   Autoservicio Sta Bárbara — Styles
   Palette: Plum (#5B2C6F) + Amber (#F5B041)
   Fonts: Playfair Display + Inter
============================================ */

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

:root {
  --plum: #5B2C6F;
  --plum-dark: #3D1D4D;
  --plum-light: #7D3F99;
  --amber: #F5B041;
  --amber-dark: #D4943A;
  --amber-light: #FDD580;
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #EEEEEE;
  --neutral-300: #E0E0E0;
  --neutral-400: #BDBDBD;
  --neutral-600: #757575;
  --neutral-800: #424242;
  --neutral-900: #212121;
  --white: #FFFFFF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 3px rgba(91, 44, 111, 0.08);
  --shadow-md: 0 4px 16px rgba(91, 44, 111, 0.10);
  --shadow-lg: 0 8px 32px rgba(91, 44, 111, 0.14);
  --shadow-xl: 0 16px 48px rgba(91, 44, 111, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-800);
  background: var(--neutral-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER
============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-200);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--plum);
}

.logo-text-light {
  color: var(--white);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--neutral-800);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--plum);
  background: rgba(91, 44, 111, 0.06);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--plum);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--plum);
  transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================
   HERO
============================================ */
.hero {
  padding-top: 72px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--neutral-50) 0%, #F3E8F9 50%, #FFF8E7 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--amber-light);
  color: var(--plum);
  font-size: 0.813rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--neutral-900);
  margin-bottom: 20px;
}

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

.text-accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--amber-light);
  z-index: -1;
  border-radius: 3px;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--neutral-600);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.938rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--plum);
  color: var(--white);
  border-color: var(--plum);
}

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

.btn-outline {
  background: transparent;
  color: var(--plum);
  border-color: var(--plum);
}

.btn-outline:hover {
  background: var(--plum);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--plum);
}

.stat-label {
  font-size: 0.813rem;
  color: var(--neutral-600);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--neutral-300);
}

/* HERO IMAGE */
.hero-image {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-img-wrapper img {
  width: 100%;
  height: 700px;
  object-fit: cover;
}

.hero-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--amber);
  border-radius: var(--radius-md);
  z-index: -1;
}

.hero-floating-card {
  position: absolute;
  bottom: 32px;
  left: -32px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero-floating-card strong {
  display: block;
  color: var(--plum);
  font-size: 0.938rem;
}

.hero-floating-card span {
  font-size: 0.813rem;
  color: var(--neutral-600);
}

/* ============================================
   SECTIONS
============================================ */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
  background: rgba(91, 44, 111, 0.08);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.063rem;
  color: var(--neutral-600);
  line-height: 1.7;
}

/* ============================================
   PRODUCTOS
============================================ */
.productos {
  background: var(--white);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.producto-card {
  background: var(--neutral-50);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--neutral-200);
}

.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.producto-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.producto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.producto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(91, 44, 111, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: var(--transition);
}

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

.producto-overlay span {
  color: var(--white);
  font-size: 0.813rem;
  font-weight: 600;
  background: var(--amber);
  padding: 4px 12px;
  border-radius: 50px;
}

.producto-info {
  padding: 20px;
}

.producto-info h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 8px;
}

.producto-info p {
  font-size: 0.875rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

/* ============================================
   NOSOTROS
============================================ */
.nosotros {
  background: linear-gradient(135deg, #F3E8F9 0%, var(--neutral-50) 100%);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nosotros-images {
  position: relative;
}

.nosotros-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.nosotros-img-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.nosotros-img-small {
  position: absolute;
  bottom: -32px;
  right: -24px;
  width: 55%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--white);
}

.nosotros-img-small img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.nosotros-pattern {
  position: absolute;
  top: -24px;
  left: -24px;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, var(--amber) 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.5;
  z-index: -1;
}

.nosotros-content .section-tag {
  margin-bottom: 16px;
}

.nosotros-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.2;
  margin-bottom: 20px;
}

.nosotros-content > p {
  font-size: 1rem;
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.nosotros-features {
  margin-top: 32px;
  display: grid;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.feature-item strong {
  display: block;
  font-size: 0.938rem;
  color: var(--neutral-900);
  margin-bottom: 2px;
}

.feature-item span {
  font-size: 0.813rem;
  color: var(--neutral-600);
  line-height: 1.5;
}

/* ============================================
   HORARIO
============================================ */
.horario {
  background: var(--white);
}

.horario-box {
  background: linear-gradient(135deg, var(--plum) 0%, var(--plum-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
}

.horario-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.horario-header .section-tag {
  background: rgba(255, 255, 255, 0.15);
  color: var(--amber);
}

.horario-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
}

.horario-grid {
  display: grid;
  gap: 2px;
}

.dia-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dia-row:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dia-nombre {
  font-weight: 600;
  font-size: 0.938rem;
}

.dia-hora {
  font-size: 0.938rem;
  color: rgba(255, 255, 255, 0.8);
}

.dia-estado {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dia-estado.abierto {
  background: rgba(76, 175, 80, 0.2);
  color: #81C784;
}

.dia-estado.cerrado {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.dia-cerrado .dia-nombre,
.dia-cerrado .dia-hora {
  color: rgba(255, 255, 255, 0.4);
}

.horario-aviso {
  margin-top: 20px;
  font-size: 0.813rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* ============================================
   CONTACTO
============================================ */
.contacto {
  background: linear-gradient(135deg, var(--neutral-50) 0%, #F3E8F9 100%);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacto-info .section-tag {
  margin-bottom: 16px;
}

.contacto-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.contacto-desc {
  font-size: 1rem;
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contacto-datos {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

.dato {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dato-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.dato strong {
  display: block;
  font-size: 0.813rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neutral-600);
  margin-bottom: 4px;
}

.dato span,
.dato a {
  font-size: 0.938rem;
  color: var(--neutral-800);
  line-height: 1.6;
}

.dato a:hover {
  color: var(--plum);
}

.mapa-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-200);
}

/* CONTACTO FORM */
.contacto-form-wrap {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
}

.contacto-form-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 8px;
}

.form-hint {
  font-size: 0.875rem;
  color: var(--neutral-600);
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.938rem;
  font-family: var(--font-body);
  color: var(--neutral-900);
  background: var(--neutral-50);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--plum);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(91, 44, 111, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--neutral-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  margin: 0 auto 16px;
  width: 72px;
  height: 72px;
  background: rgba(91, 44, 111, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success h4 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--neutral-900);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 0.938rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--plum-dark);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-links h4,
.footer-contacto h4 {
  font-size: 0.813rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-contacto ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contacto li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-contacto a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-contacto a:hover {
  color: var(--amber);
}

.footer-contacto svg {
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 0.813rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 40px;
  }

  .hero-img-wrapper img {
    height: 540px;
  }

  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nosotros-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    padding: 88px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 40px 0;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-img-wrapper img {
    height: 400px;
  }

  .hero-floating-card {
    left: 16px;
    bottom: 16px;
  }

  .productos-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .nosotros-grid {
    grid-template-columns: 1fr;
  }

  .nosotros-images {
    max-width: 480px;
    margin: 0 auto;
  }

  .nosotros-img-small {
    right: 0;
  }

  .horario-box {
    padding: 32px 24px;
  }

  .dia-row {
    grid-template-columns: 100px 1fr auto;
    padding: 12px 16px;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .contacto-form-wrap {
    padding: 28px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-img-wrapper img {
    height: 320px;
  }

  .hero-floating-card {
    left: 8px;
    bottom: 8px;
    padding: 12px 14px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.875rem;
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .dia-row {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
  }
}

/* OVERLAY for mobile nav */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
