/* =========================
   RESET BASICO
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
  background-color: #f5f7f6;
  color: #333;
  line-height: 1.6;
}

/* =========================
   TOP BAR
========================= */
.top-bar {
  background-color: #1e8f4f;
  padding: 8px 20px;
  width: 100%;
}

.top-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-social {
  display: flex;
  gap: 15px;
}

.top-bar-social a {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.top-bar-social a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.top-bar-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  display: flex;
  width: 100%;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-left {
  flex: 1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  padding-left: 20px;
}

.logo {
  height: 65px;
  width: auto;
  border-radius: 50%;
}

.navbar-right {
  flex: 3;
  background-color: #1e8f4f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #ffffff;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* =========================
   HERO CONTACTO
========================= */
.contact-hero {
  background: linear-gradient(135deg, #1e8f4f 0%, #15703d 100%);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.contact-hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.contact-hero p {
  font-size: 18px;
  opacity: 0.9;
}

/* =========================
   CONTACTO SECCION
========================= */
.contact-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f5f7f6 0%, #e8f5e9 100%);
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.contact-info-side h2 {
  font-size: 32px;
  color: #1e8f4f;
  margin-bottom: 15px;
}

.contact-info-side > p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.detail-icon {
  width: 50px;
  height: 50px;
  background: #1e8f4f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.detail-text h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.detail-text a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.detail-text a:hover {
  color: #1e8f4f;
}

.whatsapp-direct-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 14px 30px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

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

/* =========================
   FORMULARIO
========================= */
.contact-form-side {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.contact-form h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1e8f4f;
  box-shadow: 0 0 0 3px rgba(30, 143, 79, 0.1);
}

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

.form-group select {
  cursor: pointer;
  background-color: white;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: #1e8f4f;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
  background: #15703d;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 143, 79, 0.3);
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #1a1a2e;
  color: #ffffff;
  padding: 0;
  margin-top: 0;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-brand {
  padding-right: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
}

.footer-logo span {
  font-size: 22px;
  font-weight: 700;
  color: #1e8f4f;
}

.footer-brand p {
  font-size: 14px;
  color: #a0a0a0;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: #2d2d44;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
}

.social-link:hover {
  background: #1e8f4f;
  transform: translateY(-3px);
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #ffffff;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #1e8f4f;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-column a:hover {
  color: #1e8f4f;
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.footer .contact-icon {
  width: 36px;
  height: 36px;
  background: #2d2d44;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e8f4f;
  font-size: 14px;
  flex-shrink: 0;
}

.contact-info p {
  font-size: 12px;
  color: #666;
  margin: 0 0 2px 0;
}

.contact-info a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #1e8f4f;
}

.footer-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 24px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

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

.footer-bottom {
  background: #16162a;
  padding: 20px;
}

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

.footer-bottom p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #1e8f4f;
}

/* =========================
   UBICACIONES SECTION
========================= */
.locations-section {
  padding: 80px 20px;
  background: #ffffff;
}

.locations-container {
  max-width: 1100px;
  margin: 0 auto;
}

.locations-container h2 {
  font-size: 36px;
  color: #1e8f4f;
  text-align: center;
  margin-bottom: 10px;
}

.locations-intro {
  text-align: center;
  color: #666;
  font-size: 16px;
  margin-bottom: 50px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.location-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(30, 143, 79, 0.1);
  transition: all 0.4s ease;
}

.location-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(30, 143, 79, 0.15);
  border-color: rgba(30, 143, 79, 0.3);
}

.location-map {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.location-map::before {
  content: "Sucursal";
  position: absolute;
  top: 15px;
  left: 15px;
  background: #1e8f4f;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  letter-spacing: 0.5px;
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
  filter: saturate(0.9);
  transition: filter 0.3s ease;
}

.location-card:hover .location-map iframe {
  filter: saturate(1);
}

.location-info {
  padding: 25px 25px 30px;
  text-align: center;
}

.location-info h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.location-info h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #1e8f4f;
  border-radius: 50%;
}

.location-info p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.location-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #1e8f4f;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.location-btn:hover {
  background: #15703d;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 143, 79, 0.3);
}

.location-btn::after {
  content: "→";
  font-size: 16px;
  transition: transform 0.3s ease;
}

.location-btn:hover::after {
  transform: translateX(4px);
}

/* =========================
   FLOATING WHATSAPP BUTTON
========================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 9999;
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  fill: white;
}

/* =========================
   SVG ICONS
========================= */
.social-link svg {
  color: white;
}

.contact-icon svg,
.detail-icon svg {
  color: white;
}

/* =========================
   CART BUTTON
========================= */
.cart-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  color: white;
  padding: 8px;
  margin-left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.cart-btn:hover {
  transform: scale(1.1);
}

.cart-btn svg {
  width: 24px;
  height: 24px;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: #ff6b35;
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-count.hidden {
  display: none;
}

/* =========================
   HAMBURGER MENU
========================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-info-side {
    text-align: center;
  }
  
  .contact-detail-item {
    justify-content: center;
  }
  
  .whatsapp-direct-btn {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 6px 15px;
  }
  .top-bar-text {
    font-size: 12px;
  }
  .top-bar-social a {
    width: 28px;
    height: 28px;
  }
  .top-bar-social a svg {
    width: 14px;
    height: 14px;
  }
  .logo {
    height: 55px;
  }
  .navbar {
    flex-wrap: nowrap;
    height: 70px;
    position: relative;
  }
  .navbar-left { 
    order: 1; 
    flex: 1;
    background-color: #ffffff;
  }
  .navbar-right { 
    order: 2; 
    flex: 3;
    background-color: #1e8f4f;
    position: relative;
  }
  .hamburger {
    display: flex;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1e8f4f;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    text-align: center;
    padding: 10px;
    font-size: 16px;
  }
  .footer-main { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-brand { padding-right: 0; }
  .footer-logo { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-column { text-align: center; }
  .footer-column h4::after { left: 50%; transform: translateX(-50%); }
  .footer-contact-item { justify-content: center; }
  .footer-bottom-content { flex-direction: column; text-align: center; }
  .contact-hero h1 { font-size: 32px; }
  .footer-column:nth-child(2),
  .footer-column:nth-child(3) { display: none; }
  
  /* Locations responsive */
  .locations-section { padding: 50px 15px; }
  .locations-container h2 { font-size: 28px; }
  .locations-grid { grid-template-columns: 1fr; gap: 25px; }
  .location-card { border-radius: 16px; }
  .location-map { border-radius: 16px 16px 0 0; }
  .location-map iframe { height: 180px; }
  .location-info { padding: 20px 20px 25px; }
  .location-info h3 { font-size: 20px; }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 5px 10px;
  }
  .top-bar-text {
    font-size: 11px;
  }
  .top-bar-social {
    gap: 10px;
  }
  .top-bar-social a {
    width: 26px;
    height: 26px;
  }
  .top-bar-social a svg {
    width: 12px;
    height: 12px;
  }
  .logo {
    height: 50px;
  }
}
