*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #009EE0;
  --dark: #1a1a2e;
  --gray: #f5f7fa;
  --text: #333;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* TOPBAR */
.topbar {
  background: #009EE0;
  color: #fff;
  font-size: 0.82rem;
  padding: 7px 0;
}
.topbar .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar a,
.topbar span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.topbar a:hover { opacity: .8; }

/* NAVBAR */
nav {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-inner img { height: 48px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.93rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }
.btn-cotizar {
  background: var(--blue);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  transition: background .2s !important;
}
.btn-cotizar:hover { background: #0080bb !important; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; border: none; background: none; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* HERO SLIDER */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
}
.slide-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 700px;
  padding: 40px 24px;
}
.slide-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}
.slide-content h1 span { color: var(--blue); }
.slide-content p {
  font-size: 1rem;
  opacity: .9;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Flechas */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.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;
  transition: background .2s;
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Puntos */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.dot.active { background: #fff; }
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0080bb; }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--dark); }

/* SECTIONS */
section { padding: 80px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title span { color: var(--blue); }
.section-title--with-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; text-align: center; }
.section-title-logo {
  height: 4.02em;
  width: auto;
  object-fit: contain;
}
.section-title-text { white-space: nowrap; }
.divider { width: 60px; height: 3px; background: var(--blue); border-radius: 2px; margin-bottom: 36px; }

/* QUIÉNES SOMOS */
#quienes-somos { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p { margin-bottom: 16px; color: #555; }
.about-text h3 { font-size: 1.2rem; color: var(--dark); margin: 28px 0 8px; }
.about-img img { width: 100%; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.12); }

/* CTA BAND */
.cta-band {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a3a5c 100%);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}
.cta-band h3 { font-size: 1.6rem; margin-bottom: 12px; }
.cta-band h3 span { color: var(--blue); }
.cta-band p { opacity: .8; margin-bottom: 28px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1eba55; }

/* SERVICIOS */
#servicios { background: var(--gray); }
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.service-card {
  width: calc(33.333% - 16px);
  flex-shrink: 0;
}
.service-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.45), 0 3px 10px rgba(0,0,0,.3);
  transition: box-shadow .3s, transform .3s;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background: #111;
}
.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.55), 0 6px 16px rgba(0,0,0,.35);
  transform: translateY(-3px);
}
.service-card:hover img { transform: scale(1.05); }
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.1) 60%);
}
.service-card-content { position: relative; z-index: 1; color: #fff; padding: 24px; }
.service-card-content h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card-content p { font-size: 0.85rem; }

/* PRUEBA DE PRESIÓN */
#prueba-de-presion { background: var(--gray); }
.presion-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.presion-text p { color: #555; margin-bottom: 14px; font-size: 0.95rem; line-height: 1.7; }
.presion-list { list-style: none; margin-top: 8px; }
.presion-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.92rem;
  color: #444;
}
.presion-list li:last-child { border-bottom: none; }

.presion-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.video-card video {
  width: 100%;
  display: block;
  max-height: 220px;
  object-fit: cover;
  background: #000;
}
.video-label {
  display: block;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #666;
  text-align: center;
}

/* SUMINISTROS */
#venta-de-suministros { background: #fff; }
.supplies-box { background: var(--gray); border-radius: 12px; padding: 40px; max-width: 100%; border: 2px solid #f5d87a; box-shadow: 0 0 18px rgba(245, 216, 100, 0.25); }
.supplies-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.supplies-col h4 { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid #f5d87a; padding-bottom: 8px; }
.supplies-box ul { list-style: none; margin: 0; padding: 0; }
.supplies-box li {
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}
.supplies-box li:last-child { border-bottom: none; }
/* flecha nivel 1 */
.supplies-tree > li::before { content: "➤"; color: var(--blue); font-size: 0.75rem; flex-shrink: 0; }
/* sub-listas */
.supplies-tree ul { padding-left: 18px; margin-top: 4px; width: 100%; }
.supplies-tree ul li { border-bottom: none; padding: 4px 0; font-size: 0.88rem; }
.supplies-tree ul > li::before { content: "➤"; color: var(--blue); font-size: 0.68rem; flex-shrink: 0; }
/* tercer nivel */
.supplies-tree ul ul { padding-left: 18px; }
.supplies-tree ul ul > li::before { content: "➤"; color: var(--blue); font-size: 0.62rem; flex-shrink: 0; }
.check { color: var(--blue); font-weight: bold; font-size: 1.1rem; }
.supplies-btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) { .supplies-columns { grid-template-columns: 1fr; } }

/* VENTAS GALLERY SLIDE */
.ventas-carousel {
  overflow: hidden;
  position: relative;
  margin-top: -52px;
  z-index: 2;
  padding-bottom: 28px;
}
.ventas-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: ventasScroll 18s linear infinite;
}
.ventas-carousel:hover .ventas-track {
  animation-play-state: paused;
}
@keyframes ventasScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ventas-slide-item {
  width: 360px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow:
    0 1px 0 rgba(0,0,0,.08),
    0 2px 0 rgba(0,0,0,.07),
    0 3px 0 rgba(0,0,0,.06),
    0 4px 0 rgba(0,0,0,.05),
    0 5px 0 rgba(0,0,0,.04),
    0 22px 32px rgba(0,0,0,.28);
  transition: transform .25s, box-shadow .25s;
}
.ventas-slide-item:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(0,0,0,.08),
    0 2px 0 rgba(0,0,0,.07),
    0 3px 0 rgba(0,0,0,.06),
    0 4px 0 rgba(0,0,0,.05),
    0 5px 0 rgba(0,0,0,.04),
    0 30px 45px rgba(0,0,0,.32);
}
.ventas-slide-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.ventas-slide-item:hover img { transform: scale(1.06); }
.ventas-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.ventas-slide-item:hover .ventas-overlay { opacity: 1; }
.ventas-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  border: 2px solid #fff;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: .5px;
}

/* CLIENTES */
#historial-de-clientes { background: var(--gray); }
.clients-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.clients-list li {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  border-left: 4px solid var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  font-size: 0.92rem;
  color: #555;
}
.clients-list li b { color: var(--dark); }

/* GALERÍA */
#galeria { background: var(--gray); }
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 0;
}
.gallery-item {
  width: calc(33.333% - 16px);
  flex-shrink: 0;
}
.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.12);
  min-height: 280px;
  transition: box-shadow .3s, transform .3s;
}
.gallery-item:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.55), 0 6px 16px rgba(0,0,0,.35);
  transform: translateY(-3px);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.05); }

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  transition: background .35s ease;
}
.lightbox.active {
  display: flex;
  background: rgba(0,0,0,.95);
}
.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 90vw;
  max-height: 90vh;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  object-fit: contain;
  user-select: none;
  will-change: transform, opacity;
}

/* Apertura */
@keyframes lbOpen {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox img.lb-open {
  animation: lbOpen .35s cubic-bezier(.22,.61,.36,1) forwards;
}

/* Slide siguiente (→) */
@keyframes lbSlideOutLeft {
  to { opacity: 0; transform: translateX(-60px); }
}
@keyframes lbSlideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
/* Slide anterior (←) */
@keyframes lbSlideOutRight {
  to { opacity: 0; transform: translateX(60px); }
}
@keyframes lbSlideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}

.lightbox img.slide-out-left  { animation: lbSlideOutLeft  .22s ease forwards; }
.lightbox img.slide-out-right { animation: lbSlideOutRight .22s ease forwards; }
.lightbox img.slide-in-right  { animation: lbSlideInRight  .28s cubic-bezier(.22,.61,.36,1) forwards; }
.lightbox img.slide-in-left   { animation: lbSlideInLeft   .28s cubic-bezier(.22,.61,.36,1) forwards; }

.lightbox-close {
  position: absolute;
  top: 18px; right: 24px;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  background: rgba(255,255,255,.12);
  border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  width: 56px; height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 1;
}
.lightbox-arrow:hover { background: rgba(255,255,255,.28); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 0.85rem;
  letter-spacing: .04em;
}

/* COTIZAR */
#cotizar { background: linear-gradient(135deg, #0d0d1a 0%, #1a3a5c 100%); color: #fff; }
#cotizar .section-title { color: #fff; }
#cotizar .section-title span { color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 8px;
  font-size: 0.95rem;
  background: rgba(255,255,255,.08);
  color: #fff;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(255,255,255,0.6)' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-group select option { background: #1a2a3a; color: #fff; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.5); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  grid-column: 1 / -1;
  padding: 14px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: #0080bb; }
.form-notice {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}
.form-notice.success { background: rgba(37,211,102,.2); border: 1px solid #25D366; color: #a0f0c0; }
.form-notice.error   { background: rgba(220,53,69,.2);  border: 1px solid #dc3545; color: #f5a0a8; }

/* FOOTER */
footer { margin: 0; padding: 0; }

.footer-top {
  background: #009EE0;
  padding: 32px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.footer-col-desc p {
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 14px;
}
.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-instagram:hover { opacity: .8; }

.footer-col-links h4,
.footer-col-contact h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-col-links ul,
.footer-col-contact ul { list-style: none; }

.footer-col-links ul li { margin-bottom: 5px; }
.footer-col-links ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}
.footer-col-links ul li a:hover { opacity: .75; }

.footer-col-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}
.footer-col-contact ul li svg { flex-shrink: 0; }
.footer-col-contact ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.footer-col-contact ul li a:hover { opacity: .75; }

.footer-bottom {
  background: #fff;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #333;
  flex-wrap: wrap;
  gap: 12px;
}
.logo-footer-bottom { height: 52px; }


/* CHAT IA */
.ia-widget {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.ia-float {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #009EE0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,158,224,.45);
  transition: transform .2s;
  flex-shrink: 0;
}
.ia-float:hover { transform: scale(1.08); }

.ia-popup {
  width: 320px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  display: none;
  flex-direction: column;
  background: #fff;
  transform-origin: bottom right;
  animation: waPop .25s cubic-bezier(.22,.61,.36,1);
}
.ia-popup.open { display: flex; }

.ia-popup-header {
  background: #009EE0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ia-popup-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.ia-popup-info { flex: 1; }
.ia-popup-name  { display: block; color: #fff; font-weight: 600; font-size: 0.95rem; }
.ia-popup-status { display: block; color: rgba(255,255,255,.8); font-size: 0.75rem; margin-top: 2px; }
.ia-popup-close {
  background: none; border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem; cursor: pointer; padding: 4px; line-height: 1;
}
.ia-popup-close:hover { color: #fff; }

.ia-popup-body {
  background: #f5f7fa;
  padding: 16px;
  min-height: 140px;
  max-height: 460px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ia-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.87rem;
  line-height: 1.5;
}
.ia-bubble p { margin-bottom: 4px; }
.ia-bubble p:last-child { margin-bottom: 0; }
.ia-bubble-in {
  background: #fff;
  border-top-left-radius: 2px;
  align-self: flex-start;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  color: #333;
}
.ia-bubble-out {
  background: #009EE0;
  border-top-right-radius: 2px;
  align-self: flex-end;
  color: #fff;
}
.ia-bubble-typing {
  background: #fff;
  align-self: flex-start;
  padding: 12px 16px;
  border-radius: 12px;
  border-top-left-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.ia-dots { display: flex; gap: 4px; }
.ia-dots span {
  width: 7px; height: 7px;
  background: #aaa;
  border-radius: 50%;
  animation: iaDot 1.2s infinite;
}
.ia-dots span:nth-child(2) { animation-delay: .2s; }
.ia-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes iaDot {
  0%, 80%, 100% { transform: scale(1); opacity: .4; }
  40%           { transform: scale(1.3); opacity: 1; }
}

.ia-popup-footer {
  background: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #eee;
}
.ia-popup-footer input {
  flex: 1; border: 1px solid #ddd;
  border-radius: 20px; padding: 9px 14px;
  font-size: 0.87rem; outline: none;
  transition: border-color .2s;
}
.ia-popup-footer input:focus { border-color: #009EE0; }
.ia-send-btn {
  width: 36px; height: 36px;
  border-radius: 50%; background: #009EE0;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .2s;
}
.ia-send-btn:hover { background: #0080bb; }

/* CHAT LEAD FORM */
.ia-lead-wrap {
  max-width: 96% !important;
  padding: 16px 18px !important;
  background: #fff !important;
}
.ia-lead-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: #009EE0;
  margin-bottom: 14px;
}
.ia-lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ia-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ia-field label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ia-field input {
  border: 1.5px solid #e0e6ee;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 0.83rem;
  color: #222;
  background: #f8fafc;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
  box-sizing: border-box;
}
.ia-field input:focus {
  border-color: #009EE0;
  box-shadow: 0 0 0 3px rgba(0,158,224,.12);
  background: #fff;
}
.ia-field input::placeholder { color: #bbb; }
.ia-phone-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e6ee;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.ia-phone-wrap:focus-within {
  border-color: #009EE0;
  box-shadow: 0 0 0 3px rgba(0,158,224,.12);
  background: #fff;
}
.ia-phone-prefix {
  padding: 8px 10px;
  font-size: 0.83rem;
  font-weight: 700;
  color: #009EE0;
  background: rgba(0,158,224,.07);
  border-right: 1.5px solid #e0e6ee;
  white-space: nowrap;
  flex-shrink: 0;
}
.ia-phone-wrap input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  flex: 1;
}
.ia-lead-submit {
  margin-top: 6px;
  background: #009EE0;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .18s, transform .15s;
}
.ia-lead-submit:hover {
  background: #0080bb;
  transform: translateY(-1px);
}
.ia-lead-ok {
  font-size: 0.87rem;
  color: #333;
}

/* OPCIONES POST-FORMULARIO */
.ia-options-wrap {
  max-width: 96% !important;
  padding: 16px 18px !important;
}
.ia-options-title {
  font-size: 0.87rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}
.ia-options-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ia-opt-btn {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .15s, filter .15s;
}
.ia-opt-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.ia-opt-ia {
  background: #009EE0;
  color: #fff;
}
.ia-opt-wa {
  background: #25D366;
  color: #fff;
}

/* WHATSAPP WIDGET */
.wa-widget {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.wa-float {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.5);
  transition: transform .2s;
  flex-shrink: 0;
}
.wa-float:hover { transform: scale(1.08); }

.wa-popup {
  width: 320px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  display: none;
  flex-direction: column;
  background: #fff;
  transform-origin: bottom right;
  animation: waPop .25s cubic-bezier(.22,.61,.36,1);
}
.wa-popup.open { display: flex; }
@keyframes waPop {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

.wa-popup-header {
  background: #075E54;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-popup-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-popup-info { flex: 1; }
.wa-popup-name { display: block; color: #fff; font-weight: 600; font-size: 0.95rem; }
.wa-popup-status { display: block; color: #a8d5a2; font-size: 0.75rem; margin-top: 2px; }
.wa-popup-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.wa-popup-close:hover { color: #fff; }

.wa-popup-body {
  background: #ece5dd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' opacity='.04'%3E%3C/svg%3E");
  padding: 16px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wa-bubble {
  max-width: 85%;
  padding: 10px 14px 6px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  position: relative;
}
.wa-bubble p { margin-bottom: 4px; color: #333; }
.wa-bubble p:last-of-type { margin-bottom: 0; }
.wa-bubble-in {
  background: #fff;
  border-top-left-radius: 2px;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.wa-bubble-out {
  background: #dcf8c6;
  border-top-right-radius: 2px;
  align-self: flex-end;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.wa-time {
  display: block;
  font-size: 0.7rem;
  color: #999;
  text-align: right;
  margin-top: 4px;
}

.wa-popup-footer {
  background: #f0f0f0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #ddd;
}
.wa-popup-footer input {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 0.88rem;
  background: #fff;
  outline: none;
}
.wa-send-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.wa-send-btn:hover { background: #1eba55; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .presion-grid { grid-template-columns: 1fr; }
  .services-grid .service-card { width: calc(50% - 12px); }
  .clients-list { grid-template-columns: 1fr; }
  .gallery-grid .gallery-item { width: calc(50% - 12px); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 16px 20px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
  .nav-links.open { display: flex; }
  .burger { display: flex; }
  .services-grid .service-card { width: 100%; }
  .gallery-grid .gallery-item { width: 100%; }
  .presion-videos { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { padding: 16px 20px; }
  .topbar .inner { flex-direction: column; gap: 6px; }
  .topbar-left, .topbar-right { flex-wrap: wrap; justify-content: center; }
}
