/* ============================================================
   SANBOX — Estilos principales
   ============================================================ */

/* Variables — paleta basada en el logo oficial SANBOX */
:root {
  --primary:     #1a2f5e;   /* navy oscuro para footer/contacto */
  --primary-dk:  #111e3d;   /* navy más oscuro */
  --accent:      #1565c0;   /* azul exacto del hexágono SANBOX */
  --accent-lt:   #1e88e5;   /* azul más claro para hover */
  --green:       #16a34a;
  --green-dk:    #15803d;
  --amber:       #f59e0b;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --bg:          #f5f7fa;
  --white:       #ffffff;
  --border:      #e2e8f0;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.15);
  --transition:  0.25s ease;
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Open Sans', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== EDIT BAR ===================== */
#edit-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: #1e3a5f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  font-size: 0.875rem;
  gap: 12px;
  flex-wrap: wrap;
}
.edit-bar-label { opacity: 0.9; }
.edit-bar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#edit-bar button, #edit-bar a {
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: opacity var(--transition);
}
#btn-save { background: #16a34a; color: #fff; }
#btn-save:hover { opacity: 0.85; }
#btn-add-product { background: #0ea5e9; color: #fff; }
#btn-add-product:hover { opacity: 0.85; }
#btn-logout { background: rgba(255,255,255,0.15); color: #fff; }
#btn-logout:hover { background: rgba(255,255,255,0.25); }

/* Push content below edit-bar */
body.admin-mode { padding-top: 50px; }
body.admin-mode #site-header { top: 50px; }

/* Editable highlight */
body.admin-mode [contenteditable] {
  outline: 2px dashed rgba(14, 165, 233, 0.4);
  border-radius: 4px;
  cursor: text;
  min-width: 40px;
  transition: outline-color var(--transition);
}
body.admin-mode [contenteditable]:hover { outline-color: rgba(14, 165, 233, 0.8); }
body.admin-mode [contenteditable]:focus { outline: 2px solid #0ea5e9; background: rgba(14,165,233,0.05); }

/* Image edit wrappers */
.img-wrap { position: relative; display: inline-block; }
.hero-img-wrap { display: block; }
.img-btn {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  display: none;
  font-family: var(--font-body);
  transition: background var(--transition);
  z-index: 10;
}
.img-btn:hover { background: rgba(0,0,0,0.9); }
.img-wrap:hover .img-btn { display: block; }
.hero-img-wrap:hover .hero-img-btn { display: block; }
.product-img-wrap:hover .product-img-btn { display: block; }

/* Delete product button */
.btn-delete-product {
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.btn-delete-product:hover { background: #fca5a5; }

/* ===================== HEADER ===================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-wrap img { height: 52px; width: auto; object-fit: contain; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: #000000;   /* negro igual que el logo real */
  letter-spacing: 1px;
}
.main-nav ul {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.main-nav a:hover { color: var(--accent); }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent); }
.header-phone i { color: var(--accent); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
}

/* ===================== HERO CARRUSEL ===================== */
#hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Slides de fondo */
.hero-slides-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide.active { opacity: 1; }

/* Flechas */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.carousel-arrow:hover { background: rgba(255,255,255,0.3); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Panel admin hero */
.hero-admin-panel {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 90%;
}
.hero-panel-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  white-space: nowrap;
}
.hero-thumbs-row { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-thumb-item {
  position: relative;
  width: 60px;
  height: 45px;
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  flex-shrink: 0;
}
.hero-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb-replace, .hero-thumb-remove {
  position: absolute;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 3px;
}
.hero-thumb-replace { bottom: 1px; left: 1px; background: rgba(14,165,233,0.85); color: #fff; display: none; }
.hero-thumb-remove  { top: 1px; right: 1px; background: rgba(185,28,28,0.85); color: #fff; display: none; }
.hero-thumb-item:hover .hero-thumb-replace,
.hero-thumb-item:hover .hero-thumb-remove { display: block; }
.hero-add-btn {
  background: rgba(255,255,255,0.15);
  border: 1px dashed rgba(255,255,255,0.5);
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
}
.hero-add-btn:hover { background: rgba(255,255,255,0.25); }

/* Overlay + contenido */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,41,66,0.82) 0%, rgba(26,47,94,0.65) 100%);
  z-index: 1;
}
.hero-content { z-index: 2; }

/* LEGACY — evita error si queda referencia */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,41,66,0.85) 0%, rgba(30,58,95,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-top: 80px;
  padding-bottom: 80px;
  max-width: 700px;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary:hover { background: var(--accent-lt); transform: translateY(-2px); }
.btn-primary.full-width { width: 100%; text-align: center; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-whatsapp:hover { background: var(--green-dk); transform: translateY(-2px); }
.btn-whatsapp i { font-size: 1.2rem; }

/* ===================== FEATURES ===================== */
#features {
  background: var(--white);
  padding: 60px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature-card {
  text-align: center;
  padding: 24px 16px;
}
.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-lt) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.feature-icon i {
  font-size: 1.5rem;
  color: #fff;
}
.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===================== SECTION HELPERS ===================== */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-sub { font-size: 1.05rem; color: var(--text-muted); }
.section-header.light h2 { color: #fff; }
.section-header.light .section-sub { color: rgba(255,255,255,0.75); }
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ===================== PRODUCTS ===================== */
#productos { padding: 80px 0; background: var(--bg); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--amber);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-empty { opacity: 0.5; background: var(--text-muted); }
/* ===== GALERÍA DE PRODUCTO ===== */
.product-gallery { display: flex; flex-direction: column; }

.gallery-main-wrap {
  position: relative;
  overflow: hidden;
  height: 260px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
}
.product-card:hover .gallery-main-img { transform: scale(1.03); }

/* Tira de miniaturas */
.gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
  min-height: 52px;
}
.gallery-thumb-item {
  position: relative;
  width: 52px;
  height: 40px;
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition);
}
.gallery-thumb-item.active { border-color: var(--accent); }
.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f8fafc;
  padding: 2px;
}
.thumb-del {
  position: absolute;
  top: 1px; right: 1px;
  background: rgba(185,28,28,0.85);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 0.65rem;
  line-height: 1;
  padding: 2px 3px;
  cursor: pointer;
  display: none;
  z-index: 2;
}
.gallery-thumb-item:hover .thumb-del { display: block; }
.thumb-add {
  width: 40px;
  height: 40px;
  border: 2px dashed var(--border);
  border-radius: 5px;
  background: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}
.thumb-add:hover { border-color: var(--accent); color: var(--accent); }

/* Legacy fallback */
.product-img-wrap {
  position: relative;
  overflow: hidden;
  height: 230px;
  background: #f1f5f9;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.product-price {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}
.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}
.product-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
  line-height: 1.4;
}
.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--bg);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-detail:hover { background: var(--accent); color: #fff; }
.btn-consult {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: var(--green);
  color: #fff;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition);
  flex: 1;
  justify-content: center;
}
.btn-consult:hover { background: var(--green-dk); }

/* ===================== ABOUT ===================== */
#nosotros { padding: 80px 0; background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}
.about-body {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  font-size: 0.95rem;
}
.stats-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.about-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  height: 420px;
}

/* ===================== CONTACT ===================== */
#contacto {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: #fff;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 4px;
}
.contact-item span { font-size: 0.95rem; }
.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
  margin-top: 8px;
}
.btn-whatsapp-large:hover { background: var(--green-dk); transform: translateY(-2px); }
.btn-whatsapp-large i { font-size: 1.4rem; }

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  margin-bottom: 14px;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); background: #fff; }
.contact-form textarea { resize: vertical; }
.form-note { text-align: center; font-size: 0.85rem; color: var(--green); margin-top: 10px; }

/* Mapa de contacto — ancho completo arriba */
.contact-map {
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border: 3px solid rgba(255,255,255,0.15);
  margin-bottom: 44px;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  filter: grayscale(15%) contrast(1.05);
}

/* Grid info + form abajo */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ===================== FOOTER ===================== */
#site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-col p { font-size: 0.875rem; opacity: 0.75; line-height: 1.5; }
.logo-text-footer {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
}
.logo-footer-img {
  height: auto;
  max-height: 64px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);  /* convierte el logo a blanco para el fondo oscuro */
}
.footer-tagline { font-size: 0.78rem; opacity: 0.55; }

/* Social icons */
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  transition: transform var(--transition), opacity var(--transition);
}
.social-btn:hover { transform: scale(1.12); opacity: 0.85; }
.whatsapp-s  { background: #25d366; }
.instagram-s { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.facebook-s  { background: #1877f2; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.8rem; opacity: 0.45; }
.footer-admin-link {
  font-size: 0.72rem;
  opacity: 0.25;
  transition: opacity var(--transition);
}
.footer-admin-link:hover { opacity: 0.6; }

/* ===================== TESTIMONIOS ===================== */
#testimonios {
  background: var(--bg);
  padding: 80px 0;
}
#testimonios .section-header {
  text-align: center;
  margin-bottom: 48px;
}

/* Carrusel wrapper */
.testimonios-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}
.t-track-outer {
  overflow: hidden;
  flex: 1;
}
.t-track {
  display: flex;
  gap: 28px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card */
.testimonio-card {
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 48px 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  border-top: 4px solid var(--accent);
  box-sizing: border-box;
}
.testimonio-quote-icon {
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.1;
  line-height: 1;
  font-family: Georgia, serif;
  position: absolute;
  top: 16px;
  right: 32px;
}
.testimonio-stars {
  display: flex;
  gap: 4px;
  color: var(--amber);
  font-size: 1rem;
}
.testimonio-text {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
  max-width: 720px;
}
.testimonio-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testimonio-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-head);
  flex-shrink: 0;
}
.testimonio-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  font-family: var(--font-head);
}
.testimonio-company {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Flechas */
.t-arrow {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  line-height: 1;
}
.t-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #eff6ff;
}

/* Dots */
.t-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.t-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

@media (max-width: 640px) {
  .testimonio-card { padding: 28px 24px 24px; }
  .testimonio-text { font-size: 0.93rem; }
  .t-arrow { width: 36px; height: 36px; font-size: 1.1rem; }
}

/* ===================== WHATSAPP FLOTANTE ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.55);
}

/* ===================== TOAST ===================== */
#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  white-space: nowrap;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.error { background: #b91c1c; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-img { height: 300px; }
  .about-img-col { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-map { height: 260px; margin-bottom: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-phone { display: none; }
  .hamburger { display: flex; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    z-index: 99;
  }
  .main-nav.open ul { flex-direction: column; gap: 16px; }
  #hero { min-height: 500px; }
  .hero-content { padding-top: 60px; padding-bottom: 60px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .products-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; }
  .contact-form-wrap { padding: 24px; }
  #edit-bar { font-size: 0.8rem; padding: 8px 16px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-whatsapp { text-align: center; justify-content: center; }
}
