/* =============================================
   RTI - Soluciones para Puntos de Venta
   ============================================= */

:root {
  --navy: #12014f;
  --orange: #ff7d00;
  --orange-dark: #e06e00;
  --teal: #01acac;
  --teal-dark: #018e8e;
  --dark: #22292e;
  --dark-2: #2b323a;
  --dark-3: #363c46;
  --light-gray: #f1f1f1;
  --text: #22292e;
  --text-light: #6b7280;
  --white: #ffffff;
  --radius: 12px;
  --container: 1180px;
  --shadow: 0 10px 30px rgba(18, 1, 79, 0.08);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 80h80v90H50z'/%3E%3Cpath d='M70 80V62a20 20 0 0140 0v18'/%3E%3Crect x='250' y='50' width='110' height='75' rx='8'/%3E%3Cpath d='M268 65v45M284 65v45M300 65v45M318 65v45M334 65v45'/%3E%3Cpath d='M70 280h18l14 70h76l14-54H98'/%3E%3Ccircle cx='112' cy='372' r='9'/%3E%3Ccircle cx='172' cy='372' r='9'/%3E%3Cpath d='M270 250l50 18-10 26-50-18z'/%3E%3Cpath d='M262 276a28 28 0 01-26 18l-8 52h-20l10-68a46 46 0 0152-30z'/%3E%3C/g%3E%3C/svg%3E");
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  /* "clip" (not "hidden") on purpose: hidden/auto/scroll on an ancestor
     breaks position:sticky in the header; clip doesn't create a scroll
     container, so it can safely contain any accidental horizontal bleed. */
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
svg { width: 24px; height: 24px; flex-shrink: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.mt-lg { margin-top: 44px; }
#soluciones .mt-lg { margin-top: 40px; }

.section { padding: 90px 0; }
.section-light { background: var(--light-gray); }
.section-dark { background: var(--dark); color: #dfe2e6; }
.section-dark .section-title { color: var(--white); }
.section-pattern { background-image: var(--pattern); }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.lead-light { color: #c9cdd3; font-size: 1.15rem; }
.lead-light strong { color: var(--white); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); box-shadow: 0 8px 20px rgba(1,172,172,.35); }
.btn-lg { padding: 16px 36px; font-size: 1.02rem; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(34,41,46,.97);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
  position: relative;
}
.brand { align-self: flex-start; margin-bottom: -46px; flex-shrink: 0; }
.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 14px 22px 34px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 30px rgba(0,0,0,.35);
  position: relative;
  z-index: 30;
}
.brand-logo { height: 46px; width: auto; max-width: none; }
.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  position: relative;
  display: inline-block;
  color: #e7e9ec;
  font-weight: 500;
  font-size: .98rem;
  transition: color .15s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover { color: var(--orange); }
.main-nav a:hover::after { transform: scaleX(1); }
.nav-contact {
  flex-shrink: 0;
  color: #e7e9ec;
  font-weight: 500;
  font-size: .98rem;
  transition: color .15s ease;
}
.nav-contact:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { width: 100%; height: 2px; background: #fff; border-radius: 2px; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 40px 0 70px;
  background: var(--dark);
  overflow-x: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(34,41,46,1) 0%, rgba(34,41,46,.95) 32%, rgba(34,41,46,.62) 58%, rgba(34,41,46,.32) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-text { max-width: 580px; padding-bottom: 40px; }
.hero-text h1 { font-size: clamp(2.4rem, 4.8vw, 4.3rem); }
.hero-lead { max-width: 500px; font-size: 1.05rem; color: #dfe2e6; margin-top: 20px; }
.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  max-width: 560px;
}
.hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  border: 1.5px solid rgba(255,125,0,.65);
  border-radius: var(--radius);
  padding: 18px 12px;
  background: rgba(22,27,32,.5);
  backdrop-filter: blur(2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.hero-badge svg { color: var(--orange); width: 30px; height: 30px; margin-bottom: 4px; }
.hero-badge strong { display: block; font-size: .98rem; color: var(--orange); }
.hero-badge span { font-size: .82rem; color: #c6cad0; }

.hero-media {
  position: absolute;
  right: -6vw;
  top: 50%;
  transform: translateY(-50%);
  width: 58vw;
  z-index: 20;
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  max-width: none;
  filter: drop-shadow(0 30px 45px rgba(0,0,0,.45));
}

/* =============================================
   FEATURE GRID (Nuestro software permite)
   ============================================= */
.section-servicios {
  position: relative;
  z-index: 1;
  padding-top: 150px;
  background: var(--white);
  /* ::before (la curva decorativa) es intencionalmente más ancha que la
     sección (160%) para el efecto redondeado de fondo completo; sin este
     overflow, ese ancho de sobra queda sin contener y genera scroll
     horizontal fantasma en todo el sitio. */
  overflow-x: clip;
}
.section-servicios::before {
  content: "";
  position: absolute;
  left: -30%;
  width: 160%;
  height: 240px;
  top: -40px;
  background: var(--white);
  border-radius: 50%;
}
.section-servicios .container { position: relative; z-index: 2; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 120px;
}
.feature-card {
  background: var(--light-gray);
  border-radius: 16px;
  padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: visible;
  position: relative;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card:hover .feature-body img { transform: scale(1.06); }
.feature-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.feature-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 30px; height: 30px; }
.feature-card h3 { font-size: 1.22rem; margin: 0; }
.feature-body {
  display: flex;
  gap: 4px;
  align-items: center;
}
.feature-body p {
  flex: 1;
  color: var(--text-light);
  font-size: .95rem;
  margin: 0;
}
.feature-body img {
  width: 42%;
  max-height: 210px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  margin: 0;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.18));
  transition: transform .25s ease;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 28px;
}

/* =============================================
   PRODUCTOS Y SERVICIOS
   ============================================= */
.section-productos { background: linear-gradient(180deg, #fdfdfd 0%, #c9cbcd 100%); }
.section-productos .section-title { text-align: center; }
.product-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}
/* padding-top da margen interno para que el translateY del hover no choque
   contra el overflow:hidden y corte el borde superior de la card. */
.product-viewport { flex: 1; overflow: hidden; padding-top: 6px; }
.product-track {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}
.product-card {
  /* Los flex items no se achican más que su contenido (min-width:auto por
     defecto) — sin esto, el título/imagen fuerzan un ancho mínimo propio y
     las cards terminan con anchos distintos en vez del flex-basis calculado. */
  min-width: 0;
  background: var(--dark-3);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--white);
  box-sizing: border-box;
  transition: background .35s ease, transform .2s ease, box-shadow .2s ease;
}
.product-card:hover,
.product-card:focus-within {
  background: linear-gradient(160deg, var(--orange) 0%, #ff9a3d 100%);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(255,125,0,.28);
}
/* Alterna el layout: la card marcada va con texto arriba / imagen abajo.
   Se asigna por card (no por posición) para que el carrusel rote sin saltos. */
.product-card.reverse { flex-direction: column-reverse; }
@media (min-width: 981px) {
  /* La tarjeta visible en el centro (2da de 3) se destaca con borde naranja permanente;
     el relleno naranja sigue siendo solo al hover, por pedido explícito. */
  .product-track > .product-card:nth-child(2) {
    border: 2px solid var(--orange);
  }
}
.product-media { border-radius: 12px; overflow: hidden; }
.product-media img { width: 100%; height: 230px; object-fit: cover; }
.product-media.framed {
  background: var(--white);
  padding: 12px;
}
.product-media.framed img { object-fit: contain; height: 210px; }
.product-body {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px;
  padding: 34px 24px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 70%);
  display: flex;
  flex-direction: column;
}
.product-body h3 {
  font-size: 1.15rem;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.4);
  white-space: nowrap;
}
.product-body p { color: #e6e8ea; font-size: .95rem; }
.link-arrow {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: auto;
  padding: 16px 0 0;
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: letter-spacing .15s ease;
}
.link-arrow:hover { letter-spacing: .3px; }

/* ---------- Modal ---------- */
.modal-overlay {
  /* display:none por defecto (no solo opacity/visibility): un position:fixed
     con inset:0 sigue contando para el ancho scrolleable de la página aunque
     esté invisible, y en mobile eso deja un recuadro en blanco al deslizar
     hacia los costados. Cerrado, no debe existir en el layout. */
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18,1,79,.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s ease;
}
.modal-overlay.is-open { display: flex; opacity: 1; }
.modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: var(--dark-3);
  color: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  transform: translateY(24px) scale(.96);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal-media { height: 240px; overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-body { padding: 28px 30px 32px; }
.modal-body h3 {
  font-size: 1.6rem;
  color: var(--orange);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.modal-body p { color: #d7dade; font-size: 1rem; line-height: 1.6; margin: 0 0 22px; }
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.modal-close:hover { background: var(--orange); }

.slider-dots { display: flex; justify-content: center; gap: 12px; margin-top: 44px; }
.slider-dots button {
  width: 11px; height: 11px; border-radius: 50%;
  border: none; background: #fff; cursor: pointer; padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.slider-dots button.active { background: var(--teal); }

/* =============================================
   SISTEMAS DE CALIDAD
   ============================================= */
.sistemas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.rubros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.rubro-card {
  background: rgba(54,60,70,.9);
  border-radius: var(--radius);
  padding: 30px 14px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  transition: transform .2s ease, background .2s ease;
}
.rubro-card:hover { transform: translateY(-4px); background: #3d4552; }
.rubro-card svg { width: 60px; height: 60px; color: #eef0f2; }
.rubro-icon {
  width: 66px;
  height: 66px;
  object-fit: contain;
  transition: transform .2s ease;
}
.rubro-card:hover .rubro-icon { transform: scale(1.08); }
.rubro-card span { color: var(--orange); font-weight: 700; font-size: .95rem; line-height: 1.25; }
.sistemas-media {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 40px 0 70px;
}
.deco-circle {
  position: absolute;
  width: min(520px, 100%);
  aspect-ratio: 1;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.deco-dots {
  position: absolute;
  inset: -20px;
  background-image:
    radial-gradient(rgba(255,255,255,.85) 2.2px, transparent 3px),
    radial-gradient(rgba(255,255,255,.5) 1.6px, transparent 2.4px);
  background-size: 120px 130px, 74px 86px;
  background-position: 0 0, 40px 50px;
  opacity: .35;
  pointer-events: none;
}
.sistemas-media img { max-width: min(500px, 100%); position: relative; z-index: 1; }
.sistemas-cta {
  position: absolute;
  right: 4%;
  bottom: 24px;
  z-index: 2;
}

/* =============================================
   BRANDS STRIP - carrusel infinito
   ============================================= */
.brands-strip {
  background: var(--orange);
  overflow: hidden;
  padding: 34px 0;
}
.brands-track {
  display: flex;
  width: max-content;
  animation: brands-scroll 26s linear infinite;
}
.brands-strip:hover .brands-track { animation-play-state: paused; }
.brands-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brands-set img {
  height: 52px;
  width: auto;
  margin: 0 55px;
}

@keyframes brands-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; }
}

/* =============================================
   NOSOTROS
   ============================================= */
.section-nosotros { background: var(--white); }
.nosotros-grid {
  display: grid;
  grid-template-columns: minmax(0, 47%) 1fr;
}
.nosotros-media { position: relative; }
.nosotros-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}
.nosotros-cta {
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 2;
}
.nosotros-text {
  padding: 90px min(9vw, 130px) 90px 64px;
}
.nosotros-text .section-title { color: var(--orange); }
.nosotros-text > p { font-size: 1rem; color: #3a4148; }

.nosotros-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 28px 0 44px;
}
.nosotros-list li { display: flex; gap: 20px; align-items: flex-start; }
.nosotros-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}
.nosotros-list span { font-size: .98rem; color: #3a4148; }

.accordion-title { font-size: 1.5rem; letter-spacing: .5px; margin-bottom: 4px; }
.accordion-item { border-bottom: 2px solid var(--dark); }
.accordion-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--orange);
  cursor: pointer;
  text-align: left;
}
.accordion-head span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal);
  transition: transform .2s ease;
}
.accordion-item.is-open .accordion-head span { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.accordion-item.is-open .accordion-body { max-height: 260px; padding-bottom: 20px; }
.accordion-body p { color: var(--text-light); font-size: .95rem; margin: 0; }

/* =============================================
   CATALOGO / SOLUCIONES
   ============================================= */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 80px;
}
.filter-tab {
  border: 1.5px solid var(--teal);
  background: var(--white);
  color: var(--teal-dark);
  padding: 13px 30px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-tab.active, .filter-tab:hover { background: var(--teal); color: var(--white); }

.catalog-slider {
  display: flex;
  align-items: center;
  gap: 16px;
}
.slider-arrow {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  color: var(--white);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.slider-arrow:hover { background: var(--teal-dark); }
.slider-arrow[disabled] { opacity: .35; cursor: default; }
.slider-arrow svg { width: 18px; height: 18px; }

/* Padding para que la sombra de .catalog-caption (offset 14px, blur 26px) no
   quede cortada por el overflow:hidden que necesita el slider para deslizar. */
.catalog-viewport { flex: 1; overflow: hidden; padding: 26px 26px 44px; }
.catalog-grid {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}
.catalog-card { box-sizing: border-box; min-width: 0; }
.catalog-media {
  border: 3px solid var(--orange);
  border-radius: 18px;
  background: var(--white);
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 26px 60px;
}
.catalog-media img { max-height: 100%; max-width: 100%; object-fit: contain; }
.catalog-caption {
  position: relative;
  background: var(--dark-2);
  color: var(--white);
  border-radius: 12px;
  margin: -70px 12px 0;
  padding: 10px 12px;
  text-align: center;
  box-shadow: 0 14px 26px rgba(0,0,0,.25);
}
@media (min-width: 981px) {
  .catalog-caption { display: flex; flex-direction: column; justify-content: center; }
}
.catalog-caption h3 { font-size: 0.9rem; margin: 0; line-height: 1.25; }
.catalog-caption span {
  display: block;
  color: var(--orange);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: 1.1px;
  margin-top: 1px;
}
.catalog-card.hidden { display: none; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--dark-2); color: #dfe2e6; }
.footer-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  padding: 80px 24px 70px;
}
.footer-social { display: flex; gap: 30px; margin-bottom: 44px; align-items: center; }
.footer-social a {
  color: var(--orange);
  display: flex;
  transition: transform .15s ease, color .15s ease;
}
.footer-social a:hover { color: #ff9a3d; transform: translateY(-3px); }
.footer-social svg { width: 38px; height: 38px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 26px; }
.footer-contact-list li { display: flex; gap: 18px; align-items: flex-start; }
.footer-contact-list svg { color: var(--orange); width: 30px; height: 30px; margin-top: 0; }
.footer-contact-list a, .footer-contact-list span {
  font-weight: 700;
  font-size: 1.15rem;
  color: #f1f2f4;
  line-height: 1.4;
}

.footer-form h2 {
  text-align: center;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  color: var(--white);
  margin-bottom: 34px;
  letter-spacing: 1px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field input, .form-field textarea {
  width: 100%;
  background: #e9eaec;
  border: none;
  border-radius: 4px;
  padding: 16px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  resize: vertical;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #5b626b; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--teal); }
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.form-msg { margin-top: 14px; font-size: .9rem; min-height: 1.2em; }
.form-msg.success { color: #4ade80; }
.form-msg.error { color: #f87171; }
#submitBtn { padding: 13px 38px; letter-spacing: .5px; }
#submitBtn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.footer-bottom {
  background: #1b2127;
  padding: 22px 0;
  text-align: right;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f2f4;
}

/* =============================================
   WHATSAPP FAB
   ============================================= */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 90;
  transition: transform .15s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 30px; height: 30px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 980px) {
  .hero { min-height: auto; display: flex; flex-direction: column; }
  .hero-inner { text-align: center; order: 1; }
  .hero-text { max-width: none; margin: 0 auto; padding-bottom: 40px; }
  .hero-media {
    order: 0;
    position: static;
    transform: none;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 460px;
    margin: 0 auto 6px;
    padding: 0 24px;
    align-self: center;
  }
  .hero-media img { width: 100%; max-width: none; margin: 0 auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-badges { margin-left: auto; margin-right: auto; }
  .hero-badge { background: var(--dark-2); }
  .section-servicios { padding-top: 110px; }
  .feature-grid { margin-top: 54px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sistemas-grid { grid-template-columns: 1fr; }
  .sistemas-media { margin-top: 30px; }
  .sistemas-text .section-title { text-align: center; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .nosotros-media img { min-height: 380px; max-height: 60vh; }
  .nosotros-text { padding: 60px 24px; }
  .nosotros-text .section-title { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 60px; }
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.is-open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: flex; }
  .nav-contact { display: none; }
}

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .rubros-grid { grid-template-columns: repeat(2, 1fr); }
  .product-body h3 { white-space: normal; font-size: 1.05rem; }
  .catalog-media { height: 260px; }
  .catalog-caption { padding: 10px 12px; margin-top: -50px; }
  .catalog-caption span { margin-top: 2px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .brand-badge { padding: 10px 14px 22px; }
  .brand-logo { height: 34px; }
  .brand { margin-bottom: -30px; }
  .nosotros-cta { left: 50%; transform: translateX(-50%); }
  .sistemas-cta { right: 50%; transform: translateX(50%); }

  /* Sliders en mobile: las flechas flotan sobre los costados de la card
     (como en desktop, pero superpuestas para no robarle ancho a la card). */
  .product-slider, .catalog-slider { position: relative; }
  .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    opacity: .9;
  }
  .slider-arrow.prev { left: 2px; }
  .slider-arrow.next { right: 2px; }
  /* Sin padding izq/der en el viewport: la card llena TODO el ancho
     disponible y el recorte (overflow:hidden) queda pegado a su propio
     borde, así no asoma la card vecina. Se conserva algo de padding
     arriba/abajo en el catálogo para que no se corte la sombra de la caption. */
  .catalog-viewport { padding: 16px 6px 30px; }
}

@media (max-width: 560px) {
  .hero-badges { grid-template-columns: 1fr; }
}
