/* ==========================================================================
   RegenteIt — sitio institucional
   Paleta heredada del sitio original: azul institucional + naranja del logo
   ========================================================================== */

:root {
  --blue: #1a6bc4;
  --blue-dark: #0d4e9b;
  --blue-deep: #0a3d7c;
  --blue-soft: #e8f1fb;
  --orange: #ef8c00;
  --orange-dark: #d17a00;
  --orange-soft: #fdf3e2;
  --ink: #1d2740;
  --ink-2: #46516b;
  --ink-3: #6b7590;
  --line: #e6e9f0;
  --bg-soft: #f6f8fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(13, 78, 155, 0.08);
  --shadow-md: 0 10px 30px rgba(13, 78, 155, 0.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-dark); text-decoration: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ---------- Barra superior naranja ---------- */

.topbar {
  background: var(--orange);
  color: #fff;
  font-size: 13.5px;
}

.topbar-inner {
  display: flex; align-items: center; gap: 26px;
  min-height: 38px; flex-wrap: wrap; padding: 4px 0;
}

.topbar a, .topbar span { color: #fff; display: inline-flex; align-items: center; gap: 7px; }

.topbar a:hover { text-decoration: underline; }

.topbar svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  position: relative;
}

/* Logo grande: el nombre y el slogan "Tecnologia en Informacion" deben leerse bien.
   Arriba de todo de la pagina, la insignia "flota" sobre el hero (bleed): es un
   item de flex NORMAL (no position:absolute) mas alto que la fila del header, con
   align-self:flex-start para que el sobrante de altura se desborde hacia abajo,
   sin quitarle su ancho real al layout (eso rompia el ancho automatico de la img
   y tapaba el resto del header). Apenas se hace scroll, JS agrega .scrolled y
   todo se achica a una barra compacta para no tapar contenido. */
.logo { display: block; align-self: flex-start; z-index: 2; flex-shrink: 0; }

.logo-badge {
  display: flex; align-items: center;
  background: #fff; border-radius: 16px; padding: 16px 22px;
  box-shadow: 0 14px 32px rgba(13, 78, 155, 0.18);
  transition: padding .25s ease, box-shadow .25s ease;
}

.logo-badge img { height: 100px; width: auto; display: block; transition: height .25s ease; }

.site-header.scrolled .logo { align-self: center; }

.site-header.scrolled .logo-badge {
  padding: 0; box-shadow: none; background: transparent;
}

.site-header.scrolled .logo-badge img { height: 52px; }

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  color: var(--ink-2); font-weight: 500; font-size: 15px;
  padding: 9px 14px; border-radius: 8px;
  transition: color .18s, background .18s;
}

.main-nav a:hover { color: var(--blue-dark); background: var(--blue-soft); }

.main-nav a.active { color: var(--blue-dark); font-weight: 600; }

.main-nav a.nav-cta {
  background: var(--blue); color: #fff; font-weight: 600;
  margin-left: 10px; padding: 10px 20px; border-radius: 999px;
  transition: background .18s, transform .18s;
}

.main-nav a.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px;
}

.nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 5px auto;
  background: var(--ink); border-radius: 2px;
}

/* ---------- Hero (fondo original del slider) ---------- */

.hero {
  /* Velo oscuro a la izquierda: el texto blanco no compite con la linea
     punteada ni el borde claro del fondo original del slider */
  background:
    linear-gradient(100deg,
      rgba(8, 44, 90, 0.94) 0%,
      rgba(9, 52, 106, 0.82) 38%,
      rgba(10, 61, 124, 0.35) 58%,
      rgba(10, 61, 124, 0.06) 78%),
    var(--blue-deep) url("../assets/img/hero-bg.jpg") center / cover no-repeat;
  color: #eaf2fc;
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 44px; align-items: center;
}

.hero .kicker { color: #ffd9a1; }

.hero h1 {
  color: #fff; font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -0.02em; margin: 14px 0 20px; font-weight: 800;
  text-shadow: 0 2px 14px rgba(4, 24, 50, 0.35);
}

.hero p.lead, .hero .kicker, .hero-badges { text-shadow: 0 1px 8px rgba(4, 24, 50, 0.3); }

.hero h1 .accent { color: var(--orange); }

.hero p.lead { font-size: 19px; max-width: 30em; color: #dbe8f8; }

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 26px; margin-top: 44px; flex-wrap: wrap; }

.hero-badges .badge b { display: block; color: #fff; font-size: 22px; }

.hero-badges .badge span { font-size: 13.5px; color: #b9cce6; }

/* Composición: laptop + pantallas flotantes del slider original */

.hero-art { position: relative; min-height: 420px; }

.hero-art .pc {
  position: absolute; right: 4%; bottom: 0; width: 78%;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.4));
}

.hero-art .screens-1 {
  position: absolute; right: 26%; top: -4%; width: 66%;
  animation: float 6s ease-in-out infinite;
}

.hero-art .screens-2 {
  position: absolute; right: 2%; top: 6%; width: 52%;
  animation: float 7s ease-in-out 1.2s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; cursor: pointer;
  border: none; transition: background .18s, transform .18s, border-color .18s;
}

.btn-primary { background: var(--blue); color: #fff; }

.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); color: #fff; }

.btn-orange { background: var(--orange); color: #fff; }

.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }

.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); color: #fff; }

.btn-ghost-dark { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }

.btn-ghost-dark:hover { border-color: var(--blue); color: var(--blue-dark); transform: translateY(-2px); }

/* ---------- Secciones ---------- */

.section { padding: 88px 0; }

.section.alt { background: var(--bg-soft); }

.kicker {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-dark);
}

.section-head { max-width: 720px; margin-bottom: 48px; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.015em; margin: 10px 0 14px; }

/* ---------- Cards de perfiles ---------- */

.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #b9d4f2; }

.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.card .icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 18px; margin-bottom: 10px; }

.card p { font-size: 15px; color: var(--ink-3); }

/* Banda "adaptamos" (foto con velo naranja, como el sitio original) */

.adapt-band {
  margin-top: 48px; border-radius: var(--radius); overflow: hidden;
  position: relative; color: #fff; text-align: center;
  padding: 64px 40px;
  background:
    linear-gradient(rgba(239, 140, 0, 0.88), rgba(209, 122, 0, 0.88)),
    url("../assets/img/adaptamos.jpg") center / cover no-repeat;
}

.adapt-band h3 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin: 6px 0 10px; }

.adapt-band .kicker { color: #fff3df; }

.adapt-band p { max-width: 34em; margin: 0 auto 26px; color: #fff3df; }

/* ---------- Empresa (split) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.split .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }

.split .photo img { width: 100%; height: 100%; object-fit: cover; }

.split h2 { font-size: clamp(26px, 3vw, 34px); margin: 10px 0 16px; }

.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }

.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }

.check-list .tick {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px;
  border-radius: 6px; background: var(--orange-soft); color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}

/* ---------- Funcionalidades grid ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #b9d4f2; }

.feature h3 { font-size: 16.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; color: var(--blue-dark); }

.feature h3 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; }

.feature p { font-size: 14.5px; color: var(--ink-3); }

/* Tarjeta de funcionalidad como enlace */
a.feature { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.feature .vermas {
  margin-top: 14px; color: var(--blue-dark); font-weight: 600; font-size: 14px;
  transition: gap .15s;
}
a.feature:hover .vermas { color: var(--blue); }

.center-cta { text-align: center; margin-top: 44px; }

/* ---------- Detalle de funcionalidad ---------- */

.func-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }

.func-img {
  display: block; width: 100%; max-width: 420px; margin: 0 auto 32px;
  border-radius: var(--radius); background: var(--bg-soft);
}

#func-img2 { margin-top: 12px; }

.func-main p { margin-bottom: 15px; color: var(--ink-2); }

.func-main h3 { font-size: 19px; color: var(--blue-dark); margin: 26px 0 12px; }

.func-main ul { list-style: none; margin: 0 0 18px; display: grid; gap: 11px; }

.func-main ul li { position: relative; padding-left: 28px; color: var(--ink-2); }

.func-main ul li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--orange-dark); font-weight: 800;
}

.func-sidebar { position: sticky; top: 172px; }

.func-sidebar h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 14px; }

.func-nav { display: grid; gap: 8px; }

.func-nav a {
  display: block; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; color: var(--blue-dark); font-weight: 600; font-size: 14px;
  transition: background .15s, border-color .15s, color .15s;
}

.func-nav a:hover { background: var(--blue-soft); border-color: #b9d4f2; }

.func-nav a.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.func-cta {
  margin-top: 26px; padding: 22px; border-radius: var(--radius);
  background: var(--blue-soft); text-align: center;
}

.func-cta p { font-weight: 600; color: var(--ink); margin-bottom: 14px; font-size: 15px; }

/* ---------- Ventajas (checks naranjas + captura real del sistema) ---------- */

.benefits-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }

.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px; }

.benefit { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }

.benefit .tick {
  flex: 0 0 auto; width: 26px; height: 26px; margin-top: 1px;
  border-radius: 8px; background: var(--orange-soft); color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}

.benefit p { font-size: 15.5px; color: var(--ink-2); font-weight: 500; }

.benefits-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }

/* ---------- Modalidades (bandas azules con circuitos) ---------- */

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.mode {
  border-radius: var(--radius); padding: 40px 34px; color: #dbe8f8;
  background:
    linear-gradient(rgba(10, 61, 124, 0.55), rgba(10, 61, 124, 0.55)),
    var(--blue) url("../assets/img/banda-circuitos.png") center / cover no-repeat;
  background-blend-mode: normal;
}

.mode.light {
  background:
    linear-gradient(rgba(26, 107, 196, 0.25), rgba(26, 107, 196, 0.25)),
    var(--blue) url("../assets/img/banda-circuitos.png") center / cover no-repeat;
}

.mode h3 { font-size: 22px; margin: 14px 0 10px; color: #fff; }

.mode .icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.16); color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.mode .icon svg { width: 28px; height: 28px; }

/* ---------- CTA final ---------- */

.cta-final {
  color: #dbe8f8; text-align: center;
  padding: 84px 0;
  background:
    linear-gradient(rgba(10, 61, 124, 0.6), rgba(10, 61, 124, 0.6)),
    var(--blue-dark) url("../assets/img/banda-circuitos.png") center / cover no-repeat;
}

.cta-final h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }

.cta-final p { max-width: 38em; margin: 0 auto 32px; }

/* ---------- Página interior ---------- */

.page-hero {
  background: var(--blue-deep) url("../assets/img/hero-bg.jpg") center / cover no-repeat;
  color: #dbe8f8;
  padding: 64px 0;
}

.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 42px); margin-top: 12px; letter-spacing: -0.02em; }

.page-hero .kicker { color: #ffd9a1; }

.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; }

.about-block:nth-child(even) .photo { order: 2; }

.about-block .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }

.about-block h2 { font-size: 26px; margin: 8px 0 14px; }

/* ---------- Contacto ---------- */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }

.contact-info { display: grid; gap: 16px; }

.info-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px 22px;
}

.info-item .icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}

.info-item .icon svg { width: 22px; height: 22px; }

.info-item h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }

.info-item p { font-weight: 600; color: var(--ink); }

.contact-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm);
}

.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 16px; }

.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 107, 196, 0.15);
}

.field textarea { min-height: 130px; resize: vertical; }

/* Aviso de resultado del formulario */
.form-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; font-size: 15px; }
.form-alert.ok { background: #e8f7ee; color: #1a7d43; border: 1px solid #bde5cc; }
.form-alert.err { background: #fdecec; color: #b53030; border: 1px solid #f2c6c6; }

/* Honeypot anti-bots: fuera de pantalla (no usar display:none, algunos bots lo detectan) */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

/* ---------- Footer (claro, con filete naranja, como el original) ---------- */

.site-footer {
  background: var(--white); color: var(--ink-3);
  border-top: 3px solid var(--orange);
  padding: 56px 0 28px;
}

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }

.site-footer h4 { color: var(--ink); font-size: 15px; margin-bottom: 16px; }

.site-footer ul { list-style: none; display: grid; gap: 9px; }

.site-footer a { color: var(--ink-3); font-size: 14.5px; transition: color .15s; }

.site-footer a:hover { color: var(--blue-dark); }

.footer-logo { height: 40px; width: auto; margin-bottom: 14px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px; font-size: 13.5px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform .2s;
}

.wa-float:hover { transform: scale(1.08); }

.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art .screens-1, .hero-art .screens-2 { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { max-width: 540px; min-height: 340px; margin: 0 auto; width: 100%; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .about-block, .contact-grid, .benefits-split { grid-template-columns: 1fr; gap: 36px; }
  .func-layout { grid-template-columns: 1fr; gap: 36px; }
  .func-sidebar { position: static; order: 2; }
  .about-block:nth-child(even) .photo { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .benefits-photo { max-width: 420px; }
}

/* El header (logo + menu) pasa a modo compacto/hamburguesa a partir de 900px:
   el logo grande + el menu completo no entran juntos en anchos intermedios
   (~720-900px) sin que alguno de los dos se deforme o se corte. El resto del
   contenido (grillas, secciones) sigue reflowing en el breakpoint de 720px. */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 14px 4%;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 14px; }
  .main-nav a.nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }

  .logo { align-self: center; }
  .logo-badge { background: none; box-shadow: none; padding: 0; }
  .logo-badge img { height: 52px; }
}

@media (max-width: 720px) {
  .topbar-inner { gap: 14px; font-size: 12.5px; }
  .topbar .hide-mobile { display: none; }
  .cards-4, .feature-grid, .benefit-grid, .modes { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-art { min-height: 280px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
