/* OPTIMIZED BUILD */
/* main.css — Versión profesional y corregida */
:root {
  /* Paleta de marca */
  --white: #ffffff;
  --soft-blue: #b9dce2;
  --charcoal: #15160f;
  --bg-light: #f9f5f0;
  --text-dark: #15160f;
  --text-muted: #3f3f3a;
  --warm-sand: #e5d9cc;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Tipografía */
  --font-primary: 'Quicksand', sans-serif;
  
  /* Bordes y sombras */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(21,22,15,0.1);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.5;
}

main {
  position: relative;
  z-index: 10;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 0.75rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo img {
  max-height: 60px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--soft-blue);
  transition: width 0.2s;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--charcoal);
  cursor: pointer;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 1rem;
  text-align: center;
}

.btn--primary {
  background-color: var(--charcoal);
  color: white;
  border-color: var(--charcoal);
}

.btn--primary:hover {
  background-color: transparent;
  color: var(--charcoal);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn--outline:hover {
  background-color: var(--charcoal);
  color: white;
}

.btn--block {
  width: 100%;
}

/* ===== HERO ===== */
.hero {
  background-size: cover;
  background-position: center 30%;
  padding: var(--space-xl) 0;
  position: relative;
}

.hero-content {
  text-align: center;
}

.hero-logo {
  max-width: 250px;
  max-height: 140px;
  margin: 0 auto var(--space-sm);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(255,255,255,0.5);
}

.hero h1 span {
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  font-size: 2.2rem;
}

.tagline {
  font-size: 1.3rem;
  color: var(--charcoal);
  margin: var(--space-sm) 0 var(--space-md);
  background: rgba(255, 255, 255, 0.8);
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== ABOUT - VERSIÓN CORREGIDA ===== */
.about {
  padding: var(--space-lg) 0;
  background: var(--white);
}

.about-grid {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  text-align: left;
}

.section-subtitle {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--soft-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--charcoal);
  line-height: 1.2;
}

.about-intro {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-highlights {
  display: flex;
  gap: 3rem;
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 2px solid var(--warm-sand);
  border-bottom: 2px solid var(--warm-sand);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--charcoal);
}

.highlight-icon {
  font-size: 2rem;
  line-height: 1;
}

.about-quote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--charcoal);
  padding: 1.5rem 2rem;
  background: linear-gradient(145deg, var(--bg-light), white);
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--soft-blue);
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}

/* ===== PRODUCTOS ===== */
.products {
  padding: var(--space-lg) 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--charcoal);
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.item-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.item-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.item-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s;
}

.item-card:hover img {
  transform: scale(1.05);
}

.item-card h3 {
  font-size: 1.4rem;
  margin: var(--space-sm) var(--space-sm) var(--space-xs);
  color: var(--charcoal);
}

.item-card p {
  margin: 0 var(--space-sm) var(--space-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

.item-card .price {
  display: inline-block;
  background: var(--soft-blue);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  margin: 0 var(--space-sm) var(--space-sm);
  color: var(--charcoal);
}

.products-cta {
  text-align: center;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: rgba(185, 220, 226, 0.2);
  border-radius: var(--radius-lg);
}

.products-cta p {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--charcoal);
}

/* ===== SUCURSALES ===== */
.branches {
  padding: var(--space-lg) 0;
  background: var(--white);
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.branch-card {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  color: var(--charcoal);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--soft-blue);
}

.branch-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--soft-blue);
}

.branch-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

.branch-address {
  font-weight: 500;
  margin: var(--space-xs) 0;
  color: var(--charcoal);
}

.branch-hours {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ===== CONTACTO ===== */
.contact {
  padding: var(--space-lg) 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.info-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.info-card i {
  font-size: 2rem;
  color: var(--soft-blue);
  width: 40px;
  text-align: center;
}

.info-card h4 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.info-card a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.info-card a:hover {
  color: var(--soft-blue);
}

.contact-form {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  margin-bottom: var(--space-md);
  color: var(--charcoal);
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #eee;
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: all 0.2s;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--soft-blue);
  box-shadow: 0 0 0 3px rgba(185, 220, 226, 0.2);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--charcoal);
  color: white;
  padding: var(--space-lg) 0 var(--space-sm);
  margin-top: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  max-height: 50px;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1);
}

.footer-col p {
  opacity: 0.8;
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  color: white;
  font-size: 1.3rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-col h4 {
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: white;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-col ul li a:hover {
  opacity: 1;
}

.helix-powered {
  text-align: center;
  padding: var(--space-sm) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-sm);
}

.helix-powered a {
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: opacity 0.2s;
}

.helix-powered a:hover {
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
}

/* ===== TOAST SYSTEM ===== */
.toast-container {
  position: fixed;
  top: 100px;
  right: 1.5rem;
  z-index: 9000;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: 50px;
  color: white;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  margin-bottom: 0.5rem;
  animation: slideIn 0.3s ease;
}

.toast.success { background: #10B981; }
.toast.error { background: #EF4444; }
.toast.info { background: var(--soft-blue); color: var(--charcoal); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h1 span {
    font-size: 1.6rem;
  }
  
  .about-text h2 {
    font-size: 2rem;
  }
  
  .about-highlights {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .about-quote {
    font-size: 1.1rem;
    padding: 1.2rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .whatsapp-float {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}