/* ==========================================
   CERRAJERÍA LA PRADERA - SISTEMA DE DISEÑO
   ========================================== */

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

:root {
  /* Paleta de Colores Premium */
  --bg-primary: #121214;
  --bg-secondary: #1a1a1e;
  --bg-tertiary: #24242b;
  --accent-gold: #ffc107;
  --accent-gold-hover: #e0a800;
  --text-primary: #ffffff;
  --text-secondary: #a0a0ab;
  --text-muted: #71717a;
  --border-color: #2a2a32;
  
  /* Tipografía */
  --font-main: 'Outfit', sans-serif;
  
  /* Transiciones y Sombras */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(255, 193, 7, 0.2);
}

/* Reset de Estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

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

/* ==========================================
   COMPONENTES REUTILIZABLES
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #000000;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 193, 7, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
}

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

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 50px;
  position: relative;
}

.section-title span {
  color: var(--accent-gold);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-gold);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ==========================================
   NAVEGACIÓN (HEADER)
   ========================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(18, 18, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo span {
  color: var(--accent-gold);
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-menu a:hover {
  color: var(--accent-gold);
}

.nav-cta {
  display: flex;
  gap: 15px;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  background: linear-gradient(rgba(18, 18, 20, 0.85), rgba(18, 18, 20, 0.95)), 
              url('images/hero_bg.jpg') no-repeat center center/cover;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 193, 7, 0.1);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent-gold);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==========================================
   SERVICIOS
   ========================================== */

.services {
  padding: 100px 20px;
  background-color: var(--bg-secondary);
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: 12px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  transform: translateX(-100%);
  transition: var(--transition-smooth);
}

.service-card:hover::before {
  transform: translateX(100%);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 193, 7, 0.3);
  box-shadow: var(--shadow-premium);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 25px;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================
   NOSOTROS Y HORARIOS
   ========================================== */

.about {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--accent-gold);
  font-weight: 800;
}

.stat-item p {
  margin: 0;
  font-size: 0.9rem;
}

/* Horarios */
.schedule-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-premium);
}

.schedule-card h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-day {
  font-weight: 600;
}

.schedule-hours {
  color: var(--accent-gold);
}

/* ==========================================
   UBICACIÓN
   ========================================== */

.location {
  padding: 100px 20px;
  background-color: var(--bg-secondary);
}

.location-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.location-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.location-info p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.location-details {
  list-style: none;
}

.location-details li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.location-details i {
  color: var(--accent-gold);
  font-size: 1.3rem;
}

.map-container {
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.3rem;
}

.footer-logo span {
  color: var(--accent-gold);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 100;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #20ba5a;
}

/* ==========================================
   RESPONSIVIDAD (MEDIA QUERIES)
   ========================================== */

@media (max-width: 992px) {
  .about-wrapper, .location-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-cta {
    display: none; /* Se oculta de la barra y se añade botón en menú si es necesario */
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
}
