:root {
  --bg: #E9F1FA;
  --card: #FFFFFF;

  --accent: #00ABE4;
  --accent2: #0077A6;

  --text: #0F172A;
  --sub: #475569;

  --border: rgba(0,0,0,0.08);
  --soft: #F1F7FD;
}
html { scroll-behavior: smooth; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { font-family: 'DM Sans', 'Inter', 'Segoe UI', Arial, sans-serif; }
/* Evitar que fuentes del sistema condensadas rompan el layout */
* { font-synthesis: none; }
/* FIX GLOBAL COLORES */

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  overflow-x: hidden;
}
*, *::before, *::after { box-sizing: border-box; }

/* ELIMINA DARK MODE OCULTO */
.contact,
.nos-card,
.porque-card,
.card,
#chat-window {
  background: #FFFFFF !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05) !important;
}

/* TEXTOS */
p, span {
  color: var(--sub) !important;
}

h1, h2, h3 {
  color: var(--text) !important;
}

/* BOTONES */
.btn {
  background: linear-gradient(135deg,#00ABE4,#0077A6) !important;
  color: #fff !important;
}

.btn-ghost {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}

/* LOGO */
.logo svg {
  filter: none !important;
}

.logo-name {
  background: linear-gradient(90deg,#00ABE4,#0077A6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CHAT */
.msg.bot .msg-bubble {
  background: var(--soft) !important;
  color: var(--text) !important;
}

.msg.user .msg-bubble {
  background: linear-gradient(135deg,#00ABE4,#0077A6) !important;
  color: #fff !important;
}
.bg-glow { position: fixed; inset: 0px; pointer-events: none; z-index: 0; background: radial-gradient(60% 40% at 20% 20%, rgba(0, 171, 228, 0.07) 0%, transparent 60%), radial-gradient(40% 30% at 80% 70%, rgba(0, 119, 166, 0.05) 0%, transparent 55%); }
.bg-grid { position: fixed; inset: 0px; pointer-events: none; z-index: 0; background-image: linear-gradient(rgba(0, 207, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 207, 255, 0.03) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(80% 80%, black 20%, transparent 100%); }
header { position: fixed; width: 100%; left: 0px; top: 0px; display: flex; align-items: center; gap: 0; padding: 0px 5%; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(20px); z-index: 1000; height: 100px; border-bottom: 1px solid var(--border); box-shadow: 0 1px 20px rgba(0,0,0,0.06); box-sizing: border-box; }
header::after { content: ""; position: absolute; bottom: 0px; left: 5%; right: 5%; height: 1px; background: linear-gradient(90deg,transparent,var(--accent),transparent); opacity: 0.35; pointer-events: none; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.logo svg { height: 90px; width: auto; display: block; filter: drop-shadow(rgba(0, 207, 255, 0.45) 0px 0px 6px); }
.logo-text { display: flex; flex-direction: column; line-height: 1; justify-content: center; }
.logo-name { font-family: 'Syne', 'Inter', 'Segoe UI', Arial, sans-serif; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.1em; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-sub { font-size: 0.55rem; letter-spacing: 0.18em; color: rgba(0, 119, 166, 0.75); text-transform: uppercase; margin-top: 2px; }
nav { display: flex; align-items: center; gap: 2px; margin-left: 60px; flex: 1; }
nav a { padding: 8px 15px; border-radius: 6px; text-decoration: none; color: var(--text); font-size: 1.05rem; font-weight: 700; transition: color 0.2s, background 0.2s; white-space: nowrap; }
nav a:hover { color: var(--accent2); background: rgba(0, 171, 228, 0.08); }
.btn { background: linear-gradient(135deg,var(--accent),var(--accent2)); padding: 10px 22px; border-radius: 7px; color: rgb(0, 0, 0); text-decoration: none; font-family: 'Syne', 'Inter', 'Segoe UI', Arial, sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; transition: transform 0.2s, box-shadow 0.2s; box-shadow: rgba(0, 207, 255, 0.25) 0px 0px 18px; white-space: nowrap; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); box-shadow: rgba(0, 207, 255, 0.4) 0px 6px 26px; }
.hero { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-start; text-align: center; padding-top: 130px; padding-bottom: 60px; }
.hero-inner { width: 100%; max-width: 1100px; margin: 0px auto; display: flex; flex-direction: column; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; background: rgba(0, 207, 255, 0.08); border: 1px solid rgba(0, 207, 255, 0.2); padding: 5px 14px; border-radius: 100px; font-size: 0.7rem; font-weight: 500; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 22px; animation: 0.8s ease 0s 1 normal both running fadeUp; }
.hero-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 7px var(--accent); animation: 2s ease 0s infinite normal none running blink; }
@keyframes blink { 
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 { font-family: 'Syne', 'Inter', 'Segoe UI', Arial, sans-serif; font-size: clamp(1.4rem, 3.8vw, 2.4rem); font-weight: 800; line-height: 1.16; letter-spacing: -0.025em; margin-bottom: 18px; animation: 0.8s ease 0.1s 1 normal both running fadeUp; }
.highlight { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--sub); font-size: clamp(0.85rem, 2vw, 0.97rem); line-height: 1.8; font-weight: 300; max-width: 560px; margin: 0px auto 30px; animation: 0.8s ease 0.2s 1 normal both running fadeUp; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; animation: 0.8s ease 0.3s 1 normal both running fadeUp; }
.btn-ghost { padding: 8px 18px; border-radius: 7px; color: var(--text); text-decoration: none; font-family: 'Syne', 'Inter', 'Segoe UI', Arial, sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.05em; border: 1px solid rgba(0, 171, 228, 0.3); background: rgba(0, 171, 228, 0.04); transition: border-color 0.2s, background 0.2s; }
.btn-ghost:hover { border-color: rgba(0, 207, 255, 0.35); background: rgba(0, 207, 255, 0.06); }
.hero-stats { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); animation: 0.8s ease 0.4s 1 normal both running fadeUp; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px 22px; transition: transform 0.2s; min-width: 100px; }
.stat-item:hover { transform: translateY(-3px); }
.stat-num { font-family: 'Syne', 'Inter', 'Segoe UI', Arial, sans-serif; font-size: 1.35rem; font-weight: 800; letter-spacing: 0.05em; }
.stat-label { font-size: 0.68rem; color: var(--sub); letter-spacing: 0.02em; font-weight: 500; }
@keyframes fadeUp { 
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0px); }
}
section { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; scroll-margin-top: 80px; width: 100%; box-sizing: border-box; }
.divider { width: 86%; height: 1px; background: linear-gradient(90deg,transparent,var(--border),transparent); margin: 0px auto; position: relative; z-index: 1; }
.section-header { text-align: center; max-width: 480px; margin: 0px auto 44px; }
.section-label { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent) !important; margin-bottom: 9px; }
.section-title { font-family: 'Syne', 'Inter', 'Segoe UI', Arial, sans-serif; font-size: clamp(1.4rem, 3vw, 1.95rem); font-weight: 800; letter-spacing: -0.02em; }
#nosotros { background: linear-gradient(transparent, rgba(0, 171, 228, 0.04), transparent); }
.nos-intro { max-width: 620px; margin: 0px auto 14px; color: var(--sub); font-size: clamp(0.84rem, 1.8vw, 0.94rem); line-height: 1.85; font-weight: 300; text-align: center; }
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1100px; margin: 32px auto 0px; }
.nos-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px; padding: 26px; backdrop-filter: blur(10px); transition: border-color 0.3s, transform 0.3s; }
.nos-card:hover { border-color: rgba(0, 207, 255, 0.25); transform: translateY(-3px); }
.nos-icon { width: auto; height: auto; border-radius: 9px; background: linear-gradient(135deg, rgba(0, 207, 255, 0.12), rgba(0, 68, 255, 0.08)); border: 1px solid rgba(0, 207, 255, 0.18); padding: 6px 14px; font-family: 'Syne', 'Inter', 'Segoe UI', Arial, sans-serif; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; text-align: center; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 0.95rem; }
.nos-card h3 { font-family: 'Syne', 'Inter', 'Segoe UI', Arial, sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.nos-card p { color: var(--sub); line-height: 1.72; font-size: 0.84rem; font-weight: 300; }
#porque { background: linear-gradient(transparent, rgba(0, 171, 228, 0.04), transparent); }
.porque-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1100px; margin: 0px auto; }
.porque-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px; padding: 24px 26px; transition: border-color 0.3s, transform 0.3s; }
.porque-card:hover { border-color: rgba(0, 207, 255, 0.2); transform: translateY(-2px); }
.porque-card .check { font-size: 1rem; margin-bottom: 9px; }
.porque-card h3 { font-family: 'Syne', 'Inter', 'Segoe UI', Arial, sans-serif; font-size: 0.88rem; font-weight: 700; margin-bottom: 7px; }
.porque-card p { color: var(--sub); line-height: 1.65; font-size: 0.83rem; font-weight: 300; }
.stack-area { max-width: 1100px; margin: 0px auto; }
.card { min-height: 340px; position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px; margin-bottom: 20px; display: flex; gap: 22px; cursor: pointer; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.card::before { content: ""; position: absolute; top: 0px; left: 0px; right: 0px; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 207, 255, 0.38), transparent); opacity: 0; transition: opacity 0.3s; }
.card:hover::before, .card.active::before { opacity: 1; }
.card:hover, .card.active { border-color: rgba(0, 207, 255, 0.22); box-shadow: rgba(0, 0, 0, 0.4) 0px 18px 48px, rgba(0, 207, 255, 0.06) 0px 0px 22px; }
.card-content { flex: 1 1 0%; display: flex; flex-direction: column; }
.card-content h2 { font-family: 'Syne', 'Inter', 'Segoe UI', Arial, sans-serif; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.card-content > p { color: var(--sub); font-size: 0.86rem; font-weight: 300; line-height: 1.6; }
.card-subtable { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 12px; }
.card-subcell { background: rgba(0, 207, 255, 0.04); border: 1px solid rgba(0, 207, 255, 0.1); border-radius: 8px; padding: 10px 12px; }
.card-subcell strong { display: block; font-size: 0.72rem; font-weight: 600; color: var(--accent); margin-bottom: 4px; font-family: 'Syne', 'Inter', 'Segoe UI', Arial, sans-serif; }
.card-subcell span { font-size: 0.74rem; color: var(--sub); line-height: 1.55; font-weight: 300; }
.extra { max-height: 0px; overflow: hidden; opacity: 0; transition: max-height 0.45s, opacity 0.35s, margin 0.3s; }
.card.active .extra { max-height: 600px; opacity: 1; margin-top: 14px; }
.expand-hint { display: flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 14px; font-size: 0.71rem; color: rgba(148, 163, 184, 0.4); letter-spacing: 0.04em; transition: color 0.2s; }
.card.active .expand-hint { color: rgba(0, 207, 255, 0.42); }
.expand-icon { width: 17px; height: 17px; border-radius: 50%; border: 1px solid currentcolor; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; transition: transform 0.3s; flex-shrink: 0; }
.card.active .expand-icon { transform: rotate(45deg); }
.card-img { flex: 1 1 0%; border-radius: 12px; overflow: hidden; position: relative; min-height: 190px; }
.card-img::after { content: ""; position: absolute; inset: 0px; background: linear-gradient(135deg, rgba(0, 68, 255, 0.15), rgba(0, 207, 255, 0.04)); mix-blend-mode: multiply; }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.95); transition: filter 0.4s, transform 0.4s; }
.card:hover .card-img img, .card.active .card-img img { filter: saturate(0.9) brightness(0.94); transform: scale(1.04); }
.contact { background: linear-gradient(135deg, #eaf6fd, #d6eef9); border: 1px solid var(--border); border-radius: 20px; padding: 60px 36px; max-width: 960px; margin: auto; text-align: center; box-shadow: rgba(0, 207, 255, 0.07) 0px 0px 60px, rgba(0, 0, 0, 0.44) 0px 36px 60px; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; top: 0px; left: 50%; transform: translateX(-50%); width: 52%; height: 1px; background: linear-gradient(90deg,transparent,var(--accent),transparent); opacity: 0.5; }
.contact-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 11px; opacity: 0.8; }
.contact h2 { font-family: 'Syne', 'Inter', 'Segoe UI', Arial, sans-serif; font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 13px; }
.contact p { color: var(--sub); font-size: 0.93rem; font-weight: 300; line-height: 1.78; max-width: 420px; margin: 0px auto 28px; }
footer { text-align: center; padding: 24px 5%; color: rgb(58, 74, 92); font-size: 0.77rem; border-top: 1px solid var(--border); position: relative; z-index: 1; letter-spacing: 0.04em; }
footer span { color: rgba(0, 119, 166, 0.7); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0, 207, 255, 0.2); border-radius: 4px; }
@media (max-width: 920px) {
  .nosotros-grid, .porque-grid { grid-template-columns: 1fr; }
  .card-subtable { grid-template-columns: 1fr 1fr; }
}
/* ── Hamburger button ── */
#nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 1100; flex-shrink: 0; }
#nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
#nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ── */
#mobile-nav { display: none; position: fixed; top: 100px; left: 0; right: 0; background: rgba(255,255,255,0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); z-index: 1050; flex-direction: column; padding: 16px 6%; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
#mobile-nav.open { display: flex; }
#mobile-nav a { padding: 12px 10px; font-size: 1rem; font-weight: 700; color: var(--text); text-decoration: none; border-radius: 8px; transition: background 0.2s, color 0.2s; }
#mobile-nav a:hover { background: rgba(0,171,228,0.08); color: var(--accent2); }
#mobile-nav .btn { margin-top: 8px; text-align: center; }

@media (max-width: 860px) {
  header { height: 72px; padding: 0 4%; }
  .logo svg { height: 36px; }
  .logo-sub { display: none; }
  #mobile-nav { top: 72px; }
  nav { display: none; }
  header > .btn { display: none; }
  #nav-toggle { display: flex; }
}

/* ══════════ LARGE SCREENS ══════════ */

/* Controla el padding lateral en pantallas grandes:
   en lugar de % que crece infinito, se calcula para
   que el contenido nunca supere 1200px centrado */
section {
  padding-left: max(24px, calc((100% - 1200px) / 2));
  padding-right: max(24px, calc((100% - 1200px) / 2));
}
header {
  padding-left: max(24px, calc((100vw - 1200px) / 2)) !important;
  padding-right: max(24px, calc((100vw - 1200px) / 2)) !important;
}
.hero {
  padding-top: 90px;
  padding-bottom: 60px;
}

@media (min-width: 1280px) {
  .hero { padding-top: 100px; padding-bottom: 70px; }
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.05rem; max-width: 640px; }
  .hero-illustration { max-width: 1000px !important; }
  .card { padding: 34px; gap: 28px; }
  .card-content h2 { font-size: 1.55rem; }
  .nos-card, .porque-card { padding: 30px; }
  .section-title { font-size: 2.1rem; }
  .contact { padding: 72px 48px; }
}

@media (min-width: 1600px) {
  .hero-inner, .nosotros-grid, .porque-grid, .stack-area { max-width: 1200px; }
  .hero h1 { font-size: 3rem; }
}

/* ══════════ RESPONSIVE GLOBAL ══════════ */

/* SVG hero — siempre fluido */
.img-options { width: 100%; }
.img-option { min-width: 0; }
.img-options svg,
.hero-visual svg { width: 100%; height: auto; max-width: 100%; }
.hero-illustration svg { width: 100%; height: auto; display: block; }

/* ── Tablet 768–1024px ── */
@media (max-width: 1024px) {
  section { padding: 70px 5%; }
  .hero { padding: 88px 5% 56px; }
  .hero-inner,
  .nosotros-grid,
  .porque-grid,
  .stack-area { width: 100%; max-width: 100%; }
  .hero-illustration { max-width: 100% !important; }
  .contact { max-width: 100%; }
  .section-header { max-width: 100%; }
  .nos-intro { max-width: 100%; }
  .card { flex-direction: column; min-height: auto; padding: 22px; gap: 16px; }
  .card-img { min-height: 160px; flex: 0 0 auto; }
  .card-subtable { grid-template-columns: 1fr 1fr; }
  .hero p { max-width: 100%; }
}

/* ── Tablet chica / Phablet 600–767px ── */
@media (max-width: 767px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  section { padding: 56px 4%; }
  .hero { padding: 76px 4% 48px; }
  .img-options svg text.svg-block-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 9px !important;
    letter-spacing: 0.08em;
  }
  .hero-inner { max-width: 100%; width: 100%; }
  .hero h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.2; word-break: break-word; }
  .hero p { font-size: 0.88rem; line-height: 1.75; max-width: 100%; }
  .hero-cta { gap: 8px; }
  .hero-illustration { max-width: 100% !important; }
  .hero-stats { gap: 10px; margin-top: 28px; padding-top: 20px; flex-wrap: wrap; }
  .stat-item { padding: 12px 16px; flex: 1 1 90px; }
  .section-title { font-size: clamp(1.3rem, 4.5vw, 1.7rem); }
  .section-header { max-width: 100%; }
  .nos-intro { max-width: 100%; font-size: 0.88rem; }
  .nosotros-grid, .porque-grid { grid-template-columns: 1fr; gap: 12px; max-width: 100%; }
  .card-subtable { grid-template-columns: 1fr 1fr; }
  .contact { max-width: 100%; padding: 36px 20px; }
  .stack-area { max-width: 100%; }
}

/* ── Móvil ≤480px ── */
@media (max-width: 480px) {
  header { padding: 0 4%; height: 56px; }
  .logo svg { height: 26px; }
  .logo-name { font-size: 0.8rem; }
  #mobile-nav { top: 56px; }
  section { padding: 48px 4%; }
  .hero { padding: 72px 4% 40px; }
  .hero h1 { font-size: clamp(1.25rem, 5.5vw, 1.65rem); line-height: 1.22; letter-spacing: -0.02em; }
  .hero p { font-size: 0.83rem; max-width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .hero-cta .btn-ghost { text-align: center; padding: 12px 16px; font-size: 0.84rem; }
  .hero-stats { gap: 8px; margin-top: 20px; padding-top: 16px; }
  .stat-item { padding: 10px 12px; flex: 1 1 75px; }
  .stat-num { font-size: 0.95rem; }
  .stat-label { font-size: 0.6rem; }
  .section-title { font-size: clamp(1.15rem, 5vw, 1.5rem); }
  .nos-intro { font-size: 0.83rem; }
  .card { padding: 16px; margin-bottom: 12px; gap: 12px; position: static !important; top: auto !important; }
  .card-img { min-height: 120px; }
  .card-content h2 { font-size: 1.05rem; }
  .card-subtable { grid-template-columns: 1fr; gap: 8px; }
  .contact { padding: 28px 16px; border-radius: 14px; }
  .contact h2 { font-size: 1.25rem; }
  .contact p { font-size: 0.83rem; }
  #chat-window { width: calc(100vw - 20px); right: 10px; bottom: 78px; }
  #chat-fab { bottom: 16px; right: 14px; width: 46px; height: 46px; }
}

/* ── Móvil muy pequeño ≤360px ── */
@media (max-width: 360px) {
  section { padding: 44px 3.5%; }
  .hero { padding: 68px 3.5% 36px; }
  .hero h1 { font-size: 1.2rem; }
  .stat-item { flex: 1 1 65px; padding: 8px 10px; }
  .stat-num { font-size: 0.88rem; }
}
.hero-visual { display: none; }
.hero-visual svg { width: 100%; height: auto; display: block; }
.img-options { width: 100%; order: -1; margin: 0 auto 36px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; animation: 0.8s ease 0s 1 normal both running fadeUp; }
.img-option { flex: 1 1 280px; max-width: 360px; border-radius: 16px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color 0.2s, transform 0.2s; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.img-option:hover { border-color: var(--accent); transform: translateY(-3px); }
.img-option-label { text-align: center; padding: 8px; font-family: 'Syne', 'Inter', 'Segoe UI', Arial, sans-serif; font-size: 0.78rem; font-weight: 700; color: var(--accent2); background: white; letter-spacing: 0.06em; }
.img-option svg { width: 100%; height: auto; display: block; }
#chat-fab { position: fixed; bottom: 24px; right: 24px; z-index: 9999; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--accent2)); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: rgba(0, 207, 255, 0.4) 0px 0px 0px 0px; animation: 2.5s ease 0s infinite normal none running pulse-fab; transition: transform 0.2s; }
#chat-fab:hover { transform: scale(1.08); }
@keyframes pulse-fab { 
  0% { box-shadow: rgba(0, 207, 255, 0.45) 0px 0px 0px 0px; }
  70% { box-shadow: rgba(0, 207, 255, 0) 0px 0px 0px 12px; }
  100% { box-shadow: rgba(0, 207, 255, 0) 0px 0px 0px 0px; }
}
#chat-fab svg { width: 24px; height: 24px; fill: rgb(255, 255, 255); }
#chat-window { position: fixed; bottom: 90px; right: 24px; z-index: 9998; width: 340px; max-width: calc(-32px + 100vw); height: 480px; max-height: calc(-120px + 100vh); background: rgba(255, 255, 255, 0.98); border: 1px solid rgba(0, 171, 228, 0.2); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; backdrop-filter: blur(20px); box-shadow: rgba(0, 0, 0, 0.1) 0px 24px 64px, rgba(0, 171, 228, 0.1) 0px 0px 0px 1px; transform: scale(0.92) translateY(16px); opacity: 0; pointer-events: none; transition: transform 0.25s, opacity 0.25s; }
#chat-window.open { transform: scale(1) translateY(0px); opacity: 1; pointer-events: all; }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(0, 207, 255, 0.12); background: rgba(0, 207, 255, 0.05); flex-shrink: 0; }
.chat-header-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 7px var(--accent); animation: 2s ease 0s infinite normal none running blink; }
.chat-header-info { flex: 1 1 0%; }
.chat-header-title { font-family: 'Syne', 'Inter', 'Segoe UI', Arial, sans-serif; font-weight: 700; font-size: 0.82rem; color: var(--text); letter-spacing: 0.04em; }
.chat-header-sub { font-size: 0.65rem; color: rgba(0, 207, 255, 0.6); margin-top: 1px; }
.chat-close { background: none; border: none; cursor: pointer; color: var(--sub); font-size: 1.1rem; padding: 2px 4px; border-radius: 4px; transition: color 0.2s; }
.chat-close:hover { color: var(--accent); }
.chat-messages { flex: 1 1 0%; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0, 207, 255, 0.2); border-radius: 4px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.msg.bot { flex-direction: row; }
.msg.user { flex-direction: row-reverse; }
.msg-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: rgba(0,171,228,0.12); border: 1px solid rgba(0,171,228,0.3); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 3px; } .msg-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.msg-bubble { max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: 0.78rem; line-height: 1.55; }
.msg.bot .msg-bubble { background: rgba(0, 207, 255, 0.08); border: 1px solid rgba(0, 207, 255, 0.15); color: var(--text); border-bottom-left-radius: 4px; }
.msg.user .msg-bubble { background: linear-gradient(135deg, rgba(0, 207, 255, 0.22), rgba(0, 68, 255, 0.18)); border: 1px solid rgba(0, 207, 255, 0.25); color: rgb(255, 255, 255); border-bottom-right-radius: 4px; }
.msg-typing { display: flex; gap: 4px; align-items: center; padding: 12px 13px; }
.msg-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.4; animation: 1.2s ease 0s infinite normal none running typing-dot; }
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot { 
  0%, 80%, 100% { opacity: 0.4; transform: translateY(0px); }
  40% { opacity: 1; transform: translateY(-4px); }
}
.chat-input-area { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(0, 207, 255, 0.1); flex-shrink: 0; }
#chat-input { flex: 1 1 0%; background: rgba(0, 207, 255, 0.06); border: 1px solid rgba(0, 207, 255, 0.15); border-radius: 10px; padding: 9px 12px; color: var(--text); font-family: "DM Sans", sans-serif; font-size: 0.78rem; outline: none; resize: none; height: 38px; max-height: 80px; overflow-y: auto; transition: border-color 0.2s; }
#chat-input:focus { border-color: rgba(0, 207, 255, 0.4); }
#chat-input::placeholder { color: rgba(148, 163, 184, 0.5); }
#chat-send { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; background: linear-gradient(135deg,var(--accent),var(--accent2)); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity 0.2s, transform 0.15s; }
#chat-send:hover { opacity: 0.85; transform: scale(1.05); }
#chat-send:disabled { opacity: 0.4; cursor: default; transform: none; }
#chat-send svg { width: 16px; height: 16px; fill: rgb(255, 255, 255); }

/* ── Submenú Servicios ── */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 10px; }
.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.22s;
}
.nav-dropdown:hover > a::after { transform: rotate(-135deg) translateY(-2px); }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  min-width: 230px;
  padding: 18px 8px 8px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 9px;
  color: var(--text) !important; text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(0,171,228,0.08); color: var(--accent2) !important; }
.dd-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(0,171,228,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px;
}
/* Mobile submenú */
.mobile-submenu { display: none; flex-direction: column; padding-left: 16px; gap: 2px; }
.mobile-submenu.open { display: flex; }
.mobile-dropdown-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 10px; font-size: 1rem; font-weight: 700;
  color: var(--text); text-decoration: none; border-radius: 8px;
  transition: background 0.2s; cursor: pointer;
}
.mobile-dropdown-toggle:hover { background: rgba(0,171,228,0.08); color: var(--accent2); }
.dd-arrow {
  display: inline-block; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform 0.22s; flex-shrink: 0;
}
.mobile-dropdown-toggle.open .dd-arrow { transform: rotate(-135deg) translateY(-2px); }
.mobile-submenu a {
  padding: 9px 10px; font-size: 0.9rem; font-weight: 500;
  color: var(--sub) !important; text-decoration: none;
  border-radius: 8px; display: flex; align-items: center; gap: 8px;
  transition: background 0.15s, color 0.15s;
}
.mobile-submenu a:hover { background: rgba(0,171,228,0.08); color: var(--accent2) !important; }

/* SVG Responsive Hero */
.hero-illustration {
  overflow: visible;
}

#hero-svg-1 {
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .hero-illustration {
    max-width: 100% !important;
    margin: 0 auto 24px !important;
  }
  
  #hero-svg-1 {
    filter: drop-shadow(0 8px 24px rgba(0,171,228,0.18)) !important;
  }
}

@media (max-width: 480px) {
  #hero-svg-1 {
    filter: drop-shadow(0 6px 16px rgba(0,171,228,0.15)) !important;
  }
}
