/* === Tema Futurista Eco (dark + green neon + glass) === */
:root {
  --max: 1200px;
  --bg: #081012;
  /* negro verdoso */
  --panel: #0a1719cc;
  /* glass */
  --text: #e7fbef;
  --muted: #9bd0b0;
  --accent: #22c55e;
  /* verde principal */
  --accent-2: #a3e635;
  /* lima de apoyo */
  --ring: 0 0 16px rgba(34, 197, 94, .45), 0 0 48px rgba(163, 230, 53, .25);
  --panel-light: rgba(255, 255, 255, .04);

}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  height: 100%
}

body {
  font-family: ui-sans-serif, system-ui, Segoe UI, Roboto, Ubuntu, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at -10% -10%, rgba(34, 197, 94, .10), transparent 60%),
    radial-gradient(1200px 800px at 110% 30%, rgba(163, 230, 53, .10), transparent 60%),
    linear-gradient(180deg, #061012 0%, #050c0e 100%);
  line-height: 1.5;
  padding-bottom: 80px;
  /* margen inferior para no chocar con el botón de WhatsApp */
}

/* Layout */
.container {
  max-width: var(--max);
  margin: auto;
  padding: 28px 18px
}

.section {
  margin-top: 28px
}

/* Header / Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(6, 16, 18, .7), rgba(6, 16, 18, .35));
  backdrop-filter: blur(8px) saturate(140%);
}

.nav {
  max-width: var(--max);
  margin: auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px
}

/* Logo principal */
.logo-link {
  display: inline-block;
  border-radius: 12px;
  border: 2.5px solid rgba(34, 197, 94, .55);
  box-shadow: 0 0 16px rgba(34, 197, 94, .45), 0 0 40px rgba(163, 230, 53, .25);
  overflow: hidden;
  transition: all .25s ease;
}

.logo-link:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(34, 197, 94, .65), 0 0 60px rgba(163, 230, 53, .35);
}

.logo-img {
  width: 200px;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #00000005;
  transition: all .25s ease;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all .2s ease;
  opacity: .92;
}

.nav a:hover {
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), var(--ring)
}

.nav a.active {
  outline: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05)
}

/* Hero */
.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.1fr .9fr;
  align-items: center
}

.hero h1 {
  font-size: clamp(2rem, 2.5vw, 3rem);
  margin: .2em 0
}

.sub {
  color: var(--muted);
  max-width: 62ch
}

/* =========================
   FOTOS TROQUEL CURVO / PLANO
========================= */
.troquel-duo {
  display: flex;
  gap: 25px;
  margin-top: 25px;
  margin-bottom: 25px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.troquel-item {
  text-align: center;
  background: var(--panel-light);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(34, 197, 94, .25);
  box-shadow: 0 0 18px rgba(0, 0, 0, .28);
}

.troquel-item img {
  width: 260px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--accent);
  box-shadow: var(--ring);
  transition: transform .25s ease, box-shadow .25s ease;
}

.troquel-item img:hover {
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(34, 197, 94, .7), 0 0 80px rgba(163, 230, 53, .45);
}

.troquel-item span {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 0 6px rgba(34, 197, 94, .35);
  font-size: .95rem;
}

/* Centrado reutilizable para subtítulos / párrafos */
.sub-center {
  text-align: center;
  margin-inline: auto;
  /* por si en el futuro limitas ancho, sigue centrado */
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  background: linear-gradient(90deg, rgba(34, 197, 94, .14), rgba(163, 230, 53, .14));
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: var(--ring);
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, .10);
  background: var(--panel);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

/* Imagen hero centrada */
.hero-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  overflow: hidden;
  margin-left: -25px;
}

.hero-image-link {
  display: inline-block;
  border-radius: 16px;
  border: 4px solid rgba(34, 197, 94, .6);
  box-shadow: 0 0 25px rgba(34, 197, 94, .45), 0 0 55px rgba(163, 230, 53, .25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hero-image-link:hover {
  transform: scale(1.04);
  box-shadow: 0 0 35px rgba(34, 197, 94, .65), 0 0 80px rgba(163, 230, 53, .35);
}

.hero-image img {
  width: 260px;
  max-width: 120%;
  height: auto;
  display: block;
  border-radius: 14px;
}

@media (min-width: 768px) {
  .hero-image {
    margin-left: -25px;
  }
}

/* Grid / Cards */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
}

.card {
  border: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .20));
  border-radius: 16px;
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ring)
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 750;
  color: #00180a;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  text-decoration: none;
  transition: transform .1s ease, filter .18s ease;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px)
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .14);
}

/* Forms */
label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 650
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

input:focus,
textarea:focus {
  outline: 1px solid var(--accent);
  box-shadow: var(--ring)
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 40px
}

.footerinner {
  max-width: var(--max);
  margin: auto;
  padding: 20px 18px;
  color: var(--muted)
}

.footerlinks {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-right: 90px;
}

.footerlinks a {
  background: rgba(255, 255, 255, .05);
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(3px);
  transition: all .2s ease;
}

.footerlinks a:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #052012;
  box-shadow: var(--ring);
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 28px;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  background: linear-gradient(90deg, #25D366, #96f28d);
  color: #012b12;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(37, 211, 102, .32);
  z-index: 999;
}

.whatsapp-fab:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Media */
@media (max-width:980px) {
  .hero {
    grid-template-columns: 1fr
  }
}

/* ============================
   Sección Modelos/Referencias (cards con glow)
============================= */
.productos {
  margin-top: 40px;
  padding: 24px;
  text-align: center;
  background: var(--panel);
  border: 1px solid #0f2325;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}

.productos h2 {
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 24px;
  letter-spacing: .5px;
  text-shadow: 0 0 10px rgba(34, 197, 94, .3);
}

/* usamos flex para 1 o 2 filas */
/* usamos GRID responsivo para control preciso de columnas */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 24px;
  justify-items: center;
  align-items: start;
  margin-bottom: 24px;
}

/* 2 columnas en pantallas medianas */
@media (max-width: 1024px) {
  .productos-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

/* 1 columna en móvil */
@media (max-width: 640px) {
  .productos-grid {
    grid-template-columns: 1fr;
  }
}

/* Utilidad: fila centrada con 1 columna (ideal cuando hay 1 ítem y quieres centrar) */
.productos-grid.center {
  grid-template-columns: 1fr;
}

.fila-alimentos .producto {
  max-width: 220px;
}

.fila-complementos .producto {
  max-width: 190px;
}

.producto {
  background: var(--panel-light);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(34, 197, 94, .25);
  transition: all .25s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, .25);
  text-align: center;
  max-width: 280px;
  margin-inline: auto;
}

.producto:hover {
  transform: translateY(-6px);
  box-shadow: var(--ring);
  border-color: var(--accent);
}

.producto img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 16px rgba(34, 197, 94, .45), 0 0 36px rgba(163, 230, 53, .25);
  transition: all .3s ease;
  filter: brightness(0.95) contrast(1.05);
  max-height: 180px;
  object-fit: contain;
}

.producto h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
  text-shadow: 0 0 6px rgba(34, 197, 94, .25);
}

/* ============================
   Contacto & Comerciales
============================= */
.contacto-card h3 {
  margin-top: 0;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(34, 197, 94, .35);
}

/* cuadro de info centrado */
.info-block {
  background: var(--panel-light);
  border: 1px solid rgba(34, 197, 94, .25);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(0, 0, 0, .18);
}

.info-title {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: .4px;
  text-shadow: 0 0 8px rgba(34, 197, 94, .3);
  font-size: 1rem;
}

.info-text {
  color: var(--text);
  line-height: 1.6;
  font-size: .95rem;
}

.info-text strong {
  color: var(--text);
  font-weight: 600;
}

.tel-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(34, 197, 94, .45);
}

.tel-link:hover {
  color: var(--accent);
}

/* botón dentro de info-block */
.info-block .btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #081012;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  text-decoration: none;
  box-shadow: 0 0 14px rgba(34, 197, 94, .5), 0 0 36px rgba(163, 230, 53, .25);
  transition: all .25s ease;
}

.info-block .btn:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 28px rgba(34, 197, 94, .75), 0 0 60px rgba(163, 230, 53, .4);
}

/* grid de comerciales */
.sales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.sales-grid.two-cols {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .sales-grid.two-cols {
    grid-template-columns: 1fr;
  }
}

.sales-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  background: rgba(10, 23, 25, .35);
  border: 1px solid rgba(34, 197, 94, .25);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 0 20px rgba(0, 0, 0, .2);
  transition: all .25s ease;
}

.sales-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(34, 197, 94, .55), 0 0 60px rgba(163, 230, 53, .25);
  border-color: var(--accent);
}

.sales-name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  font-size: 1.05rem;
}

.sales-role {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.sales-phone {
  font-size: .9rem;
  margin-bottom: 10px;
}

.sales-phone a {
  color: var(--text);
  text-decoration: none;
}

.sales-phone a:hover {
  color: var(--accent);
}

.actions {
  display: flex;
  justify-content: center;
}

.actions .btn {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: .9rem;
}

/* grilla 2 columnas principal (Contacto / Mapa) */
.grid.section {
  align-items: start;
}

.grid.section.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .grid.section.two-col {
    grid-template-columns: 1fr;
  }
}

/* ==== Bloque Ubicación centrado ==== */
.card h3 {
  text-align: center;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(34, 197, 94, .3);
  margin-top: 0;
  margin-bottom: 6px;
}

.card .sub {
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ==== Título principal Hablemos ==== */
main h1 {
  text-align: center;
  color: var(--accent);
  font-size: 2rem;
  letter-spacing: .5px;
  text-shadow: 0 0 12px rgba(34, 197, 94, .4), 0 0 36px rgba(163, 230, 53, .25);
  margin-top: 10px;
  margin-bottom: 30px;
}

/* ===== Cuadro de galería futurista (Cajas Pizza) ===== */
.card-galeria {
  margin-top: 24px;
  text-align: center;
  background: var(--panel);
  border: 1px solid #0f2325;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  padding: 24px;
}

.card-galeria h3 {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(34, 197, 94, .35);
  margin-top: 0;
  margin-bottom: 6px;
}

.card-galeria .sub {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 22px;
}

/* galería neon */
.mini-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  justify-items: center;
}

.glow-img {
  margin: 0;
  background: var(--panel-light);
  border: 1px solid rgba(34, 197, 94, .25);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 0 18px rgba(0, 0, 0, .22);
  transition: all .3s ease;
}

.glow-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 16px rgba(34, 197, 94, .45), 0 0 36px rgba(163, 230, 53, .25);
  transition: all .3s ease;
  filter: brightness(0.96) contrast(1.05);
}

.glow-img:hover img {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(34, 197, 94, .75), 0 0 60px rgba(163, 230, 53, .45);
  filter: brightness(1.05) contrast(1.1);
}

/* Responsive adicionales */
@media (max-width: 900px) {
  .mini-gallery {
    grid-template-columns: 1fr;
  }
}

/* Wrapper de la columna derecha para apilar Ubicación + Galería */
.col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* espacio entre Ubicación y la galería */
  align-self: stretch;
}

/* La galería dentro de la columna derecha no necesita margen extra arriba */
.card-galeria {
  margin-top: 0;
}

/* === Director(es) Comercial(es) === */
.directivos {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  flex-wrap: wrap;
  /* ✅ permite 1 o 2 sin romper */
  margin-top: 16px;
}

/* ancho flexible por tarjeta */
.director {
  flex: 1 1 320px;
  /* ✅ crece pero no se vuelve demasiado angosto */
  max-width: 480px;
  /* ✅ cuando hay 1, quedará centrado y amplio */
  text-align: center;
  background: rgba(10, 23, 25, .35);
  border: 1px solid rgba(34, 197, 94, .25);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, .2);
  transition: all .25s ease;
}

.director:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(34, 197, 94, .55), 0 0 60px rgba(163, 230, 53, .25);
  border-color: var(--accent);
}

/* ✅ Caso especial: si hay solo UNA tarjeta, que ocupe todo el ancho del contenedor */
.directivos .director:only-child {
  flex-basis: 100%;
  max-width: 100%;
}

/* Detalles estéticos */
.director strong {
  display: block;
  margin-bottom: 4px;
}

.director .btn {
  width: max-content;
  margin-inline: auto;
}

/* Responsive: apilar en móvil */
@media (max-width: 700px) {
  .directivos {
    flex-wrap: wrap;
  }

  .director {
    max-width: 100%;
  }
}

/* Siempre oculta cualquier elemento con atributo hidden (previene FOUC) */
[hidden] {
  display: none !important;
}

/* === Hamburguesa móvil === */
.hamburger {
  display: none;
  /* se muestra solo en móvil */
  position: absolute;
  top: 12px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}

.hamburger:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), var(--ring);
}

.hamburger span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, width .2s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === Backdrop del menú === */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(2px);
  z-index: 98;
}

/* === Panel lateral derecho (inicia oculto) === */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 78vw;
  max-width: 360px;
  background: var(--panel);
  border-left: 1px solid rgba(255, 255, 255, .12);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .45);
  transform: translateX(100%);
  /* 👈 oculto por defecto */
  transition: transform .25s ease;
  z-index: 99;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 28px;
}

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
}

.mobile-menu a:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #012b12;
  box-shadow: var(--ring);
}

/* Solo cambia en móvil: ocultar links normales y mostrar hamburguesa */
@media (max-width: 900px) {
  .nav {
    position: relative;
  }

  .nav-links {
    display: none;
  }

  /* oculta el menú normal en móvil */
  .hamburger {
    display: inline-block;
  }

  /* muestra las 3 rayitas */
}

@media (max-width: 768px) {
  .hero-image-group {
    flex-direction: column;
    gap: 12px;
  }
}

/* =========================
   OVERRIDE: TÍTULO HERO TROQUELES
   (para que no herede el main h1 centrado)
========================= */
.hero h1 {
  font-size: clamp(2rem, 2.5vw, 3rem);
  margin: .2em 0;
  text-align: left;
}

.hero h1 span {
  white-space: nowrap;
}