:root {
  --bg: #06070d;
  --bg-2: #0c0f1a;
  --panel: #11141f;
  --panel-2: #161a28;
  --text: #e6e9f2;
  --muted: #8a91a6;
  --line: #1f2438;
  --cyan: #44ff88;            /* verde electrónico tipo PCB/LED */
  --violet: #00e0a0;          /* verde-cyan secundario */
  --pink: #a8ff5e;             /* verde-lima de acento */
  --grad: linear-gradient(135deg, #44ff88 0%, #00e0a0 50%, #a8ff5e 100%);
  --shadow-neon: 0 0 0 1px rgba(68,255,136,.15), 0 10px 40px -10px rgba(0,224,160,.45);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ===== FONDO CYBER PCB GLOBAL ===== */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: -2;
  background:
    /* glow esquinas */
    radial-gradient(800px 600px at 10% 0%, rgba(68,255,136,.08), transparent 60%),
    radial-gradient(700px 500px at 90% 100%, rgba(0,224,160,.10), transparent 60%),
    /* grid base */
    linear-gradient(rgba(68,255,136,.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(68,255,136,.04) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
  filter: blur(var(--bg-blur, 0px));
  transition: filter .25s ease-out;
  will-change: filter;
}

/* Capa de pistas PCB drifteando (sin puntos: los puntos van como SVG inline) */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: -1;
  opacity: .28;
  filter: blur(calc(1.5px + var(--bg-blur, 0px)));
  transition: filter .25s ease-out;
  will-change: filter;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'>\
<g fill='none' stroke='%2300e5ff' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' opacity='.7'>\
<path d='M0 80 L120 80 L150 50 L260 50 L290 80 L420 80 L450 110 L600 110'/>\
<path d='M80 0 L80 140 L110 170 L110 280 L140 310 L260 310'/>\
<path d='M600 220 L470 220 L440 250 L320 250 L290 220 L200 220'/>\
<path d='M0 360 L90 360 L120 390 L240 390 L270 420 L380 420 L410 450 L600 450'/>\
<path d='M520 0 L520 60 L490 90 L490 200'/>\
<path d='M180 600 L180 510 L210 480 L320 480'/>\
<path d='M380 600 L380 540 L410 510 L530 510 L560 540 L560 600'/>\
<path d='M0 540 L70 540 L100 510 L160 510'/>\
</g>\
<g fill='none' stroke='%239b5cff' stroke-width='1' stroke-linecap='round' stroke-linejoin='round' opacity='.5'>\
<path d='M40 200 L160 200 L190 230 L300 230'/>\
<path d='M340 150 L460 150 L490 180 L590 180'/>\
<path d='M250 460 L370 460'/>\
<path d='M30 100 L30 280'/>\
<path d='M570 320 L570 420'/>\
</g>\
</svg>");
  background-size: 600px 600px;
  background-repeat: repeat;
  animation: pcb-drift 60s linear infinite;
}

/* Chispas eléctricas viajando por pistas (SVG inline para que SMIL anime de verdad) */
.pcb-dots {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
  filter: blur(var(--bg-blur, 0px));
  transition: filter .25s ease-out;
  will-change: filter;
}

@keyframes pcb-drift {
  from { background-position: 0 0; }
  to   { background-position: 600px 600px; }
}

/* Las secciones necesitan fondo translúcido para dejar ver el PCB */
.section-alt {
  background: rgba(12, 15, 26, .72) !important;
  backdrop-filter: blur(2px);
}

.container { width: 90%; max-width: 1180px; margin: 0 auto; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,7,13,.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(68,255,136,.6);
}
.logo-text { letter-spacing: .5px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--cyan); }
.lang-toggle {
  background: transparent; color: var(--text);
  border: 1px solid var(--line); padding: 6px 12px;
  border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px;
  transition: all .2s;
}
.lang-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

/* HERO */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(68,255,136,.22), transparent 60%),
    radial-gradient(700px 500px at 80% 30%, rgba(0,224,160,.25), transparent 60%),
    radial-gradient(500px 400px at 50% 90%, rgba(168,255,94,.15), transparent 60%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner { text-align: center; max-width: 880px; }
.container.hero-inner { margin: 0 auto; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--cyan); font-size: 12px; letter-spacing: 1px;
  margin-bottom: 22px; font-family: ui-monospace, monospace;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.15; font-weight: 800; letter-spacing: -.02em;
  margin: 0 auto 18px;
  max-width: 860px;
  padding: 22px 36px;
  /* Recuadro glassmorphism con tinte verde sutil */
  background:
    radial-gradient(circle at 50% 0%, rgba(68,255,136,.18), transparent 70%),
    linear-gradient(135deg, rgba(68,255,136,.10) 0%, rgba(0,224,160,.06) 100%);
  border: 1px solid rgba(68,255,136,.28);
  border-radius: 22px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow:
    0 16px 48px -16px rgba(68,255,136,.35),
    inset 0 1px 0 rgba(255,255,255,.08);
  text-shadow: 0 2px 24px rgba(6, 7, 13, .85), 0 0 60px rgba(6, 7, 13, .6);
}
@media (max-width: 720px) {
  .hero h1 { padding: 18px 22px; border-radius: 18px; }
}
.lead, .section-sub {
  text-shadow: 0 2px 14px rgba(6, 7, 13, .8);
}
.section-title {
  text-shadow: 0 2px 18px rgba(6, 7, 13, .85);
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0 auto 32px; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 10px;
  font-weight: 600; text-decoration: none; cursor: pointer; font-size: 15px;
  transition: all .25s ease; border: none;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: var(--shadow-neon);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(68,255,136,.4), 0 14px 50px -10px rgba(0,224,160,.7); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn.block { display: block; text-align: center; width: 100%; margin-top: 14px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 14px; }
}
.stats > div {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 18px 22px;
  border: 1px solid rgba(68,255,136,.25);
  border-radius: 14px;
  background: rgba(20, 30, 22, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .25s ease;
  box-shadow: inset 0 1px 0 rgba(68,255,136,.08);
}
.stats > div:hover {
  border-color: rgba(68,255,136,.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(68,255,136,.4), inset 0 1px 0 rgba(68,255,136,.15);
}
.stats strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.stats span {
  font-size: 13px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  letter-spacing: .3px;
  line-height: 1.5;
}

/* SECTIONS */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -.02em; text-align: center;
  margin-bottom: 10px;
}
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 50px; }

/* GRID CARDS */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: all .3s; position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad); opacity: 0;
  transition: opacity .3s; z-index: 0;
}
.card:hover { transform: translateY(-4px); border-color: rgba(68,255,136,.4); }
.card:hover::before { opacity: .04; }
.card > * { position: relative; z-index: 1; }
.card-icon {
  font-size: 28px;
  margin-bottom: 14px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  border-radius: 14px;
  background: rgba(68,255,136,.06);
  border: 1px solid rgba(68,255,136,.18);
  position: relative;
  overflow: hidden;
}
.card-icon::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(68,255,136,.18), transparent 70%);
  pointer-events: none;
}
.card-icon svg {
  width: 32px; height: 32px;
  filter: drop-shadow(0 0 4px rgba(68,255,136,.35));
  position: relative;
  z-index: 1;
}

/* ===== ANIMACIONES IOT (tipo electrónica/circuito) ===== */

/* Animación base: pulso eléctrico viajando por una línea (stroke-dasharray) */
@keyframes ico-pulse-line {
  0%   { stroke-dasharray: 0 100; stroke-dashoffset: 0; opacity: .35; }
  40%  { stroke-dasharray: 30 100; stroke-dashoffset: -10; opacity: 1; }
  100% { stroke-dasharray: 0 100; stroke-dashoffset: -100; opacity: .35; }
}

/* CLOUD (IoT a medida): líneas pulsan hacia los nodos */
.ico-cloud .ico-line { animation: ico-pulse-line 2.2s ease-in-out infinite; }
.ico-cloud .ico-line-1 { animation-delay: 0s; }
.ico-cloud .ico-line-2 { animation-delay: .4s; }
.ico-cloud .ico-line-3 { animation-delay: .8s; }

/* CHIP (microcontroladores): el core central late */
.ico-chip .ico-chip-core {
  fill: rgba(68,255,136,.15);
  animation: ico-chip-blink 1.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes ico-chip-blink {
  0%, 100% { fill: rgba(68,255,136,.12); transform: scale(1); }
  50%      { fill: rgba(68,255,136,.5);  transform: scale(1.04); }
}

/* SIGNAL (conectividad): ondas se expanden hacia afuera */
.ico-signal .ico-wave {
  transform-origin: 24px 36px;
  animation: ico-wave-expand 2s ease-out infinite;
  opacity: 0;
}
.ico-signal .ico-wave-1 { animation-delay: 0s; }
.ico-signal .ico-wave-2 { animation-delay: .3s; }
.ico-signal .ico-wave-3 { animation-delay: .6s; }
@keyframes ico-wave-expand {
  0%   { transform: scale(.5); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* PCB: el resistor parpadea */
.ico-pcb .ico-pcb-resistor {
  animation: ico-pcb-resistor 2.4s ease-in-out infinite;
}
@keyframes ico-pcb-resistor {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* CODE (software): brackets pulsan separados, slash dibuja */
.ico-code .ico-code-bracket {
  animation: ico-code-pulse 2s ease-in-out infinite;
}
.ico-code .ico-code-l { animation-delay: 0s; }
.ico-code .ico-code-r { animation-delay: .25s; }
.ico-code .ico-code-slash {
  stroke-dasharray: 12;
  animation: ico-code-slash 2s ease-in-out infinite;
}
@keyframes ico-code-pulse {
  0%, 100% { opacity: .4; }
  50%      { opacity: 1; }
}
@keyframes ico-code-slash {
  0%, 100% { stroke-dashoffset: 12; opacity: .3; }
  50%      { stroke-dashoffset: 0;  opacity: 1; }
}

/* LOCK (acceso): el punto interior parpadea como LED de seguridad */
.ico-lock .ico-lock-dot {
  animation: ico-lock-led 1.4s ease-in-out infinite;
  transform-origin: 24px 30px;
}
@keyframes ico-lock-led {
  0%, 60%, 100% { opacity: 1; transform: scale(1); }
  70%           { opacity: .3; transform: scale(.7); }
  85%           { opacity: 1; transform: scale(1.1); }
}

/* CHART (monitoreo): la línea se dibuja como un osciloscopio */
.ico-chart .ico-chart-line {
  stroke-dasharray: 60;
  animation: ico-chart-draw 2.5s ease-in-out infinite;
}
@keyframes ico-chart-draw {
  0%   { stroke-dashoffset: 60; opacity: .3; }
  60%  { stroke-dashoffset: 0;  opacity: 1; }
  100% { stroke-dashoffset: 0;  opacity: 1; }
}

/* COIN (pago): el anillo interior pulsa */
.ico-coin .ico-coin-ring {
  animation: ico-coin-ring 2.2s ease-in-out infinite;
  transform-origin: 24px 24px;
  opacity: .5;
}
@keyframes ico-coin-ring {
  0%, 100% { transform: scale(1);   opacity: .5; }
  50%      { transform: scale(1.08); opacity: 1; }
}

/* WIFI (comunicación): arcos se expanden secuencialmente */
.ico-wifi .ico-wifi-arc {
  transform-origin: 24px 34px;
  animation: ico-wifi-pulse 2s ease-out infinite;
}
.ico-wifi .ico-wifi-1 { animation-delay: 0s; }
.ico-wifi .ico-wifi-2 { animation-delay: .25s; }
.ico-wifi .ico-wifi-3 { animation-delay: .5s; }
.ico-wifi .ico-wifi-4 { animation-delay: .75s; }
@keyframes ico-wifi-pulse {
  0%, 100% { opacity: .25; }
  50%      { opacity: 1; }
}

/* GEAR (automatizar): engranaje gira lento */
.ico-gear .ico-gear-rotate {
  transform-origin: 24px 24px;
  animation: ico-gear-spin 6s linear infinite;
}
@keyframes ico-gear-spin {
  to { transform: rotate(360deg); }
}

/* BULB (otra idea): filamento brilla y parpadea */
.ico-bulb .ico-bulb-filament {
  animation: ico-bulb-glow 1.8s ease-in-out infinite;
}
@keyframes ico-bulb-glow {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; filter: drop-shadow(0 0 4px rgba(68,255,136,.8)); }
}

/* Hover: realza glow del icono */
.card:hover .card-icon {
  border-color: rgba(68,255,136,.4);
  background: rgba(68,255,136,.1);
}
.card:hover .card-icon svg {
  filter: drop-shadow(0 0 6px rgba(68,255,136,.6));
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* PRODUCTOS DESTACADOS */
.products-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.product-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .35s ease;
  position: relative;
}
.product-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius); pointer-events: none;
  background: var(--grad); opacity: 0;
  transition: opacity .35s; z-index: 0;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(68,255,136,.5);
  box-shadow: 0 24px 50px -20px rgba(68,255,136,.35), 0 0 0 1px rgba(68,255,136,.2);
}
.product-card:hover::before { opacity: .06; }
.product-img {
  position: relative;
  width: 100%; height: 220px;
  background-size: cover; background-position: center;
}
.product-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17,20,31,.95) 100%);
}
.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(6,7,13,.85); color: var(--cyan);
  border: 1px solid rgba(68,255,136,.4);
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  font-family: ui-monospace, monospace;
  backdrop-filter: blur(4px);
}
.product-body {
  padding: 24px 24px 26px;
  display: flex; flex-direction: column; flex: 1;
  position: relative; z-index: 1;
}
.product-body h3 {
  font-size: 1.25rem; margin-bottom: 10px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.product-body > p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.product-features {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; gap: 8px; flex: 1;
}
.product-features li {
  font-size: .88rem; color: var(--text);
  padding: 6px 0; border-bottom: 1px dashed var(--line);
}
.product-features li:last-child { border-bottom: none; }
.product-card .btn { align-self: flex-start; font-size: .9rem; padding: 11px 22px; }
.product-card::after {
  content: '✦ ' attr(data-hint) ' →';
  position: absolute; bottom: 14px; right: 18px;
  font-size: 11px; letter-spacing: 1px;
  color: var(--cyan); opacity: 0;
  transition: opacity .25s, transform .25s;
  transform: translateX(-6px);
  pointer-events: none;
  font-family: ui-monospace, monospace;
  z-index: 2;
}
.product-card:hover::after { opacity: .9; transform: translateX(0); }

/* PORTFOLIO */
.portfolio-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.portfolio-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: all .3s;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(68,255,136,.4);
  box-shadow: 0 18px 40px -20px rgba(68,255,136,.4);
}
.portfolio-img {
  width: 100%; height: 200px;
  background-size: cover; background-position: center;
  position: relative;
}
.portfolio-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6,7,13,.85) 100%);
}
.portfolio-body { padding: 22px 24px 26px; }
.tag {
  display: inline-block; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--cyan);
  padding: 4px 10px; border: 1px solid rgba(68,255,136,.3);
  border-radius: 999px; margin-bottom: 12px;
  font-family: ui-monospace, monospace;
}
.portfolio-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.portfolio-body p { color: var(--muted); font-size: .92rem; }
.portfolio-card { cursor: pointer; }
.portfolio-more {
  display: inline-block; margin-top: 14px;
  font-size: .85rem; color: var(--cyan); font-weight: 600;
  letter-spacing: .3px;
  transition: transform .2s;
}
.portfolio-card:hover .portfolio-more { transform: translateX(4px); }

/* ===== MODAL PORTAFOLIO ===== */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 7, 13, .65);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}
.modal-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1100px; max-height: 92vh;
  display: grid; grid-template-columns: 1.3fr 1fr;
  background: var(--panel);
  border: 1px solid rgba(0, 229, 255, .25);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 229, 255, .35),
              0 0 0 1px rgba(0, 229, 255, .1),
              0 60px 120px -30px rgba(0, 0, 0, .8);
  transform: scale(.92) translateY(20px);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2);
}
.modal.open .modal-content { transform: scale(1) translateY(0); }

@media (max-width: 920px) {
  .modal-content { grid-template-columns: 1fr; max-height: 94vh; overflow-y: auto; }
}

.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(6, 7, 13, .75); color: var(--text);
  border: 1px solid var(--line);
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  backdrop-filter: blur(6px);
}
.modal-close:hover {
  border-color: var(--cyan); color: var(--cyan);
  transform: rotate(90deg);
}

.modal-image {
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 229, 255, .08), transparent 70%),
    var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  min-height: 360px;
  padding: 18px;
  overflow: hidden;
}
.modal-image img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

@media (max-width: 920px) {
  .modal-image { min-height: 240px; padding: 14px; }
  .modal-image img { max-height: 50vh; }
}

.modal-body {
  padding: 36px 36px 32px;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.modal-body .tag {
  align-self: flex-start;
  margin-bottom: 14px;
}
.modal-body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2; margin-bottom: 14px; letter-spacing: -.01em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.modal-body > p {
  color: var(--muted); font-size: .98rem;
  margin-bottom: 20px; line-height: 1.65;
}
.modal-body h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted); margin-bottom: 12px;
  font-family: ui-monospace, monospace;
}
.modal-features {
  list-style: none; padding: 0; margin: 0 0 26px;
  display: grid; gap: 10px;
}
.modal-features li {
  padding: 10px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .92rem;
  display: flex; align-items: center; gap: 10px;
}
.modal-features li::before {
  content: '▹'; color: var(--cyan); font-weight: 700;
}
.modal-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: auto;
}
.modal-actions .btn { font-size: .9rem; padding: 12px 22px; }

/* Bloquear scroll del body cuando modal está abierto */
body.modal-open { overflow: hidden; }

/* TIMELINE — pasos interactivos con icono */
.timeline { list-style: none; display: grid; gap: 18px; max-width: 850px; margin: 0 auto; padding: 0; }
.timeline li {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px 26px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 64px auto 1fr;
  gap: 6px 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: all .3s ease;
}
.timeline li::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(68,255,136,.08), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.timeline li:hover {
  transform: translateX(6px);
  border-color: rgba(68,255,136,.45);
  box-shadow: 0 14px 32px -14px rgba(68,255,136,.4);
}
.timeline li:hover::before { opacity: 1; }
.timeline .step {
  grid-row: span 2;
  font-family: ui-monospace, monospace;
  font-size: 1.4rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
  align-self: center;
  letter-spacing: 1px;
}
.timeline h3 {
  font-size: 1.05rem;
  margin: 0;
  align-self: end;
  transition: color .25s ease;
}
.timeline li:hover h3 { color: var(--cyan); }
.timeline p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
  grid-column: 2 / -1;
  align-self: start;
}

/* Caja del icono para cada paso */
.step-icon {
  grid-row: span 2;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  background: rgba(68,255,136,.06);
  border: 1px solid rgba(68,255,136,.22);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}
.step-icon::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(68,255,136,.2), transparent 70%);
  pointer-events: none;
}
.step-icon svg {
  width: 38px; height: 38px;
  filter: drop-shadow(0 0 5px rgba(68,255,136,.4));
  position: relative; z-index: 1;
  transition: filter .3s ease, transform .3s ease;
}
.timeline li:hover .step-icon {
  background: rgba(68,255,136,.14);
  border-color: rgba(68,255,136,.5);
}
.timeline li:hover .step-icon svg {
  filter: drop-shadow(0 0 9px rgba(68,255,136,.85));
  transform: scale(1.08);
}

/* ===== ANIMACIONES DE CADA ICONO DE PASO ===== */

/* SEARCH (descubrimiento): los puntos parpadean como buscando */
.ico-search .ico-search-dot {
  stroke-width: 2.5;
  animation: step-search-dots 1.4s ease-in-out infinite;
}
@keyframes step-search-dots {
  0%, 100% { opacity: .4; }
  50%      { opacity: 1; }
}

/* BLUEPRINT (diseño): círculo del plano late */
.ico-blueprint .ico-blueprint-circle {
  transform-origin: 32px 28px;
  animation: step-blueprint 2s ease-in-out infinite;
}
@keyframes step-blueprint {
  0%, 100% { transform: scale(.85); opacity: .55; }
  50%      { transform: scale(1.05); opacity: 1; }
}

/* PROTO (prototipo): el LED parpadea */
.ico-proto .ico-proto-led {
  animation: step-proto-led 1.2s ease-in-out infinite;
}
@keyframes step-proto-led {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

/* FACTORY (producción): ventanas se encienden en secuencia */
.ico-factory .ico-factory-win  { animation: step-factory-win 1.8s ease-in-out infinite; animation-delay: 0s; }
.ico-factory .ico-factory-win2 { animation: step-factory-win 1.8s ease-in-out infinite; animation-delay: .3s; }
.ico-factory .ico-factory-win3 { animation: step-factory-win 1.8s ease-in-out infinite; animation-delay: .6s; }
@keyframes step-factory-win {
  0%, 60%, 100% { opacity: 1; }
  70%, 90%      { opacity: .25; }
}

/* SHIELD (soporte): el check se dibuja repetidamente */
.ico-shield .ico-shield-check {
  stroke-dasharray: 16;
  animation: step-shield-check 2.4s ease-in-out infinite;
}
@keyframes step-shield-check {
  0%   { stroke-dashoffset: 16; opacity: .3; }
  60%  { stroke-dashoffset: 0;  opacity: 1; }
  100% { stroke-dashoffset: 0;  opacity: 1; }
}

/* Móvil */
@media (max-width: 720px) {
  .timeline li {
    grid-template-columns: 52px auto 1fr;
    padding: 18px 20px;
    gap: 4px 14px;
  }
  .step-icon { width: 52px; height: 52px; border-radius: 12px; }
  .step-icon svg { width: 30px; height: 30px; }
  .timeline .step { font-size: 1.15rem; }
  .timeline h3 { font-size: 1rem; }
}

/* NEED CARDS (tarjetas de necesidades) */
.need-card { display: flex; flex-direction: column; }
.need-card p { flex: 1; margin-bottom: 18px; }
.need-card .btn {
  align-self: flex-start; font-size: .88rem; padding: 10px 18px;
}

/* CONTACTO */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 12px; color: var(--muted); }
.contact-info a { color: var(--cyan); text-decoration: none; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form span { font-size: .85rem; color: var(--muted); }
.contact-form input,
.contact-form textarea {
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-family: inherit; font-size: .95rem;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--cyan); }
.form-feedback { font-size: .9rem; color: var(--cyan); min-height: 18px; }

/* FOOTER */
.footer {
  padding: 26px 0; border-top: 1px solid var(--line);
  background: var(--bg-2); color: var(--muted); font-size: .85rem;
}
.footer-row { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ===== PANEL NEÓN ROTADOR (abajo-izquierda) ===== */
.neon-rotator {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: calc(24px + env(safe-area-inset-left, 0px));
  z-index: 900;
  width: 110px; height: 110px;
  border-radius: 22px;
  background: rgba(10, 20, 14, .78);
  border: 2px solid rgba(68, 255, 136, .65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 28px rgba(68, 255, 136, .65),
    0 0 60px rgba(68, 255, 136, .25),
    inset 0 0 22px rgba(68, 255, 136, .15);
  overflow: hidden;
  animation: neon-flicker 4.8s ease-in-out infinite;
  pointer-events: none;
}
/* Neón "perdiendo voltaje" cada cierto tiempo */
@keyframes neon-flicker {
  0%, 88%, 92%, 100% {
    box-shadow:
      0 0 28px rgba(68, 255, 136, .65),
      0 0 60px rgba(68, 255, 136, .25),
      inset 0 0 22px rgba(68, 255, 136, .15);
    opacity: 1;
  }
  90% {
    box-shadow:
      0 0 8px rgba(68, 255, 136, .25),
      inset 0 0 4px rgba(68, 255, 136, .08);
    opacity: .55;
  }
}

/* Cada icono ocupa el mismo lugar, opacidad rotando */
.neon-icon {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  opacity: 0;
  color: #44ff88;
  animation: neon-cycle 18s ease-in-out infinite;
}
.neon-icon svg {
  width: 62px; height: 62px;
  filter:
    drop-shadow(0 0 6px rgba(68, 255, 136, 1))
    drop-shadow(0 0 12px rgba(68, 255, 136, .6))
    drop-shadow(0 0 1px #fff);
}
.neon-label {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  color: #44ff88;
  text-shadow:
    0 0 6px rgba(68, 255, 136, 1),
    0 0 10px rgba(68, 255, 136, .6);
}

/* Cada icono visible ~3s dentro del ciclo de 18s, con crossfade */
.neon-1 { animation-delay: 0s; }
.neon-2 { animation-delay: 3s; }
.neon-3 { animation-delay: 6s; }
.neon-4 { animation-delay: 9s; }
.neon-5 { animation-delay: 12s; }
.neon-6 { animation-delay: 15s; }

@keyframes neon-cycle {
  0%   { opacity: 0; transform: scale(.85) rotate(-8deg); }
  3%   { opacity: 1; transform: scale(1) rotate(0); }
  14%  { opacity: 1; transform: scale(1) rotate(0); }
  17%  { opacity: 0; transform: scale(.85) rotate(8deg); }
  100% { opacity: 0; transform: scale(.85) rotate(8deg); }
}

/* Animaciones internas de cada icono mientras está visible */
.neon-1 .neon-line { animation: neon-line-pulse 1.8s ease-in-out infinite; }
@keyframes neon-line-pulse {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; stroke-width: 2.4; }
}

.neon-2 .neon-chip-core {
  animation: neon-chip-beat 1.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes neon-chip-beat {
  0%, 100% { fill-opacity: .1; transform: scale(1); }
  50%      { fill-opacity: .6; transform: scale(1.06); }
}

.neon-3 .neon-wave {
  transform-origin: 24px 36px;
  animation: neon-wave-pulse 1.6s ease-out infinite;
}
.neon-3 .neon-wave-1 { animation-delay: 0s; }
.neon-3 .neon-wave-2 { animation-delay: .2s; }
.neon-3 .neon-wave-3 { animation-delay: .4s; }
@keyframes neon-wave-pulse {
  0%, 100% { opacity: .25; }
  50%      { opacity: 1; }
}

.neon-4 svg { animation: neon-pcb-spark 2s ease-in-out infinite; }
@keyframes neon-pcb-spark {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(68,255,136,1)) drop-shadow(0 0 12px rgba(68,255,136,.5)); }
  50%      { filter: drop-shadow(0 0 14px rgba(68,255,136,1)) drop-shadow(0 0 22px rgba(168,255,94,.7)); }
}

.neon-5 .neon-ai-node {
  animation: neon-ai-blink 1.2s ease-in-out infinite;
}
.neon-5 .neon-ai-node:nth-of-type(2) { animation-delay: .3s; }
.neon-5 .neon-ai-node:nth-of-type(3) { animation-delay: .6s; }
@keyframes neon-ai-blink {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; }
}

.neon-6 .neon-code {
  stroke-dasharray: 30;
  animation: neon-code-draw 2s ease-in-out infinite;
}
@keyframes neon-code-draw {
  0%   { stroke-dashoffset: 30; opacity: .3; }
  60%  { stroke-dashoffset: 0;  opacity: 1; }
  100% { stroke-dashoffset: 0;  opacity: 1; }
}

@media (max-width: 720px) {
  .neon-rotator {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
    width: 88px; height: 88px;
    border-radius: 18px;
  }
  .neon-icon svg { width: 50px; height: 50px; }
  .neon-label { font-size: 9px; letter-spacing: 1.5px; }
}

/* ===== BOTÓN DE NARRADOR POR SECCIÓN ===== */
.voice-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 14px;
  margin-left: 16px;
  background: rgba(68, 255, 136, .12);
  border: 1.5px solid rgba(68, 255, 136, .4);
  border-radius: 999px;
  cursor: pointer;
  vertical-align: middle;
  font-family: inherit;
  position: relative;
  transition: all .25s;
}
.voice-btn .voice-icon {
  font-size: 30px;
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  animation: voice-icon-shake 1.8s ease-in-out infinite;
  transform-origin: center;
}
.voice-btn .voice-text {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text);
  font-family: ui-monospace, monospace;
  white-space: nowrap;
}
.voice-btn:hover {
  background: rgba(68, 255, 136, .22);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(68, 255, 136, .5);
}
.voice-btn.speaking {
  background: linear-gradient(135deg, #44ff88, #00e0a0);
  border-color: transparent;
  animation: voice-pulse 1.2s ease-in-out infinite;
}
.voice-btn.speaking .voice-text { color: #06070d; }
.voice-btn.speaking::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid #44ff88;
  opacity: .6;
  animation: voice-ring 1.4s ease-out infinite;
  pointer-events: none;
}
@keyframes voice-icon-shake {
  0%, 100% { transform: rotate(0) scale(1); }
  15%      { transform: rotate(-10deg) scale(1.06); }
  30%      { transform: rotate(10deg)  scale(1.10); }
  45%      { transform: rotate(-7deg)  scale(1.06); }
  60%      { transform: rotate(5deg)   scale(1.03); }
}
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(68,255,136,.5); }
  50%      { box-shadow: 0 0 0 12px rgba(68,255,136,0); }
}
@keyframes voice-ring {
  0%   { transform: scale(.95); opacity: .6; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* Móvil: pill compacto */
@media (max-width: 720px) {
  .voice-btn {
    padding: 7px 14px 7px 11px;
    margin-left: 10px;
    margin-top: 6px;
    gap: 8px;
  }
  .voice-btn .voice-icon { font-size: 24px; width: 30px; height: 30px; }
  .voice-btn .voice-text { font-size: .72rem; letter-spacing: .8px; }
}

/* ===== BOTÓN FLOTANTE "IDEA" (WhatsApp) — pill con icono + texto ===== */
.idea-fab {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px 12px 14px;
  background: linear-gradient(135deg, rgba(0, 229, 255, .18) 0%, rgba(155, 92, 255, .18) 100%);
  border: 1.5px solid rgba(0, 229, 255, .55);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .3px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 10px 28px -8px rgba(0, 229, 255, .55),
    0 0 0 0 rgba(0, 229, 255, .5),
    inset 0 1px 0 rgba(255, 255, 255, .15);
  animation: idea-fab-pulse 2.4s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease;
}
.idea-fab:hover {
  transform: translateY(-3px) scale(1.08);
  animation: idea-flicker .15s steps(2) infinite;
  box-shadow:
    0 16px 36px -8px rgba(0, 229, 255, .9),
    0 0 0 6px rgba(0, 229, 255, .15),
    inset 0 1px 0 rgba(255, 255, 255, .2);
  border-color: #aef4ff;
}
.idea-fab:hover svg {
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 1)) drop-shadow(0 0 4px #fff);
}
.idea-fab:hover .idea-filament {
  animation: idea-filament-glow .25s ease-in-out infinite;
  stroke-width: 2.2;
}

/* ⚡ Anillo eléctrico rotando (capa exterior) */
.idea-fab::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    #00e5ff 8%,
    transparent 16%,
    transparent 33%,
    #9b5cff 41%,
    transparent 49%,
    transparent 66%,
    #ffffff 74%,
    transparent 82%
  );
  opacity: 0;
  z-index: -1;
  filter: blur(3px);
  transition: opacity .2s ease;
  pointer-events: none;
}
.idea-fab:hover::before {
  opacity: 1;
  animation: idea-electric-spin .6s linear infinite;
}

/* ⚡ Segundo anillo eléctrico girando en reverso */
.idea-fab::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    transparent 0%,
    #ffffff 10%,
    transparent 20%,
    transparent 50%,
    #00e5ff 60%,
    transparent 70%
  );
  opacity: 0;
  z-index: -1;
  filter: blur(2px);
  transition: opacity .2s ease;
  pointer-events: none;
}
.idea-fab:hover::after {
  opacity: .9;
  animation: idea-electric-spin .4s linear infinite reverse;
}

@keyframes idea-electric-spin {
  to { transform: rotate(360deg); }
}

/* Parpadeo eléctrico estilo neón saturado */
@keyframes idea-flicker {
  0%, 100% { filter: none; }
  50%      { filter: brightness(1.3) saturate(1.4); }
}
.idea-fab:active { transform: translateY(-1px) scale(1); }
.idea-fab svg {
  width: 46px; height: 46px;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 10px rgba(68, 255, 136, 1)) drop-shadow(0 0 3px rgba(255,255,255,.5));
  animation: idea-bulb-dance 2.4s ease-in-out infinite, idea-bulb-glow 1.2s ease-in-out infinite;
  transform-origin: center bottom;
}
.idea-fab .idea-filament {
  animation: idea-filament-glow .6s ease-in-out infinite;
  stroke-width: 2.6;
}

/* Glow muy fuerte pulsando rápido — destellos verdes intensos */
@keyframes idea-bulb-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 6px rgba(68,255,136,.8))
      drop-shadow(0 0 2px rgba(255,255,255,.4));
  }
  50% {
    filter:
      drop-shadow(0 0 22px rgba(68,255,136,1))
      drop-shadow(0 0 36px rgba(168,255,94,.8))
      drop-shadow(0 0 8px rgba(255,255,255,.9));
  }
}

/* Filamento parpadea muy rápido (idea encendiéndose) */
@keyframes idea-filament-glow {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; filter: drop-shadow(0 0 6px rgba(68,255,136,1)); }
}

/* MARACA + SALTO + DESCANSO — secuencia divertida que se repite */
@keyframes idea-bulb-dance {
  /* === Fase 1: maraca rápida (sacudida lateral fuerte) === */
  0%   { transform: translateY(0) rotate(0deg); }
  3%   { transform: translateY(0) rotate(-22deg); }
  6%   { transform: translateY(0) rotate(22deg); }
  9%   { transform: translateY(0) rotate(-20deg); }
  12%  { transform: translateY(0) rotate(20deg); }
  15%  { transform: translateY(0) rotate(-16deg); }
  18%  { transform: translateY(0) rotate(16deg); }
  21%  { transform: translateY(0) rotate(-10deg); }
  24%  { transform: translateY(0) rotate(10deg); }
  27%  { transform: translateY(0) rotate(0deg); }

  /* === Fase 2: SALTA en el aire === */
  33%  { transform: translateY(-18px) rotate(-10deg) scale(1.1); }
  39%  { transform: translateY(-8px)  rotate(8deg)   scale(1.05); }
  45%  { transform: translateY(-18px) rotate(-6deg)  scale(1.1); }
  51%  { transform: translateY(0)     rotate(0deg)   scale(1); }

  /* === Fase 3: aterrizaje (squash & stretch) === */
  54%  { transform: translateY(0) rotate(0deg) scaleY(.82) scaleX(1.18); }
  58%  { transform: translateY(0) rotate(0deg) scaleY(1.08) scaleX(.93); }
  62%  { transform: translateY(0) rotate(0deg) scale(1); }

  /* === Fase 4: descanso hasta el próximo ciclo === */
  100% { transform: translateY(0) rotate(0deg); }
}
@keyframes idea-fab-pulse {
  0%, 100% {
    box-shadow:
      0 10px 28px -8px rgba(0, 229, 255, .55),
      0 0 0 0 rgba(0, 229, 255, .5),
      inset 0 1px 0 rgba(255, 255, 255, .15);
  }
  50% {
    box-shadow:
      0 10px 28px -8px rgba(0, 229, 255, .55),
      0 0 0 14px rgba(0, 229, 255, 0),
      inset 0 1px 0 rgba(255, 255, 255, .15);
  }
}

/* Texto del botón — siempre visible al lado del icono */
.idea-fab-tooltip {
  display: inline-block;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .3px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .idea-fab {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    padding: 10px 18px 10px 12px;
    font-size: .82rem;
    gap: 8px;
  }
  .idea-fab svg { width: 38px; height: 38px; }
}
@media (max-width: 380px) {
  .idea-fab {
    padding: 9px 16px 9px 10px;
    font-size: .76rem;
  }
  .idea-fab svg { width: 32px; height: 32px; }
}

/* MOBILE NAV */
@media (max-width: 700px) {
  .nav-links { display: none; }
}

/* ===== SECCIÓN DE CONTACTO FINAL (sin formulario, con bandera animada) ===== */
.contact-final { text-align: center; max-width: 780px; margin: 0 auto; }
.contact-final .contact-info {
  list-style: none;
  padding: 0;
  margin: 22px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
}
.contact-final .contact-info a {
  color: var(--cyan, #00e5ff);
  text-decoration: none;
  transition: color .2s;
}
.contact-final .contact-info a:hover { color: var(--pink, #ff3da6); }

/* Bandera de Colombia animada, integrada al diseño */
.co-flag-hero {
  margin: 48px auto 0;
  max-width: 620px;
}
.co-flag-hero-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  height: 180px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .08),
    0 0 40px -6px rgba(0, 229, 255, .25);
  animation: co-flag-wave 6s ease-in-out infinite;
  transform-origin: left center;
}
.co-flag-hero-stripe {
  position: relative;
  overflow: hidden;
}
.co-flag-hero-yellow { flex: 2; background: linear-gradient(180deg, #ffe165 0%, #fcd116 50%, #dcb200 100%); }
.co-flag-hero-blue   { flex: 1; background: linear-gradient(180deg, #0044c4 0%, #0033a0 50%, #002478 100%); }
.co-flag-hero-red    { flex: 1; background: linear-gradient(180deg, #e02439 0%, #ce1126 50%, #a30d1e 100%); }

/* Brillo que recorre cada franja como si el sol reflejara sobre una bandera */
.co-flag-hero-shimmer {
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.35) 50%,
    rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  animation: co-flag-shimmer 4.5s linear infinite;
  pointer-events: none;
}
.co-flag-hero-blue .co-flag-hero-shimmer  { animation-delay: .5s; }
.co-flag-hero-red  .co-flag-hero-shimmer  { animation-delay: 1s; }
@keyframes co-flag-shimmer {
  0%   { left: -60%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}
/* Ondulación de la bandera completa (efecto viento) */
@keyframes co-flag-wave {
  0%, 100% { transform: perspective(800px) rotateY(0deg) rotateX(0deg); }
  25%      { transform: perspective(800px) rotateY(-2deg) rotateX(1deg); }
  50%      { transform: perspective(800px) rotateY(0deg) rotateX(-1deg); }
  75%      { transform: perspective(800px) rotateY(2deg) rotateX(1deg); }
}

.co-flag-hero-caption {
  text-align: center;
  margin: 18px 0 0;
  font-size: 1rem;
  color: var(--muted, #a8b0c0);
  letter-spacing: .5px;
}
.co-flag-hero-caption strong {
  color: var(--text, #fff);
  font-weight: 800;
  background: linear-gradient(90deg, #fcd116 0%, #0033a0 50%, #ce1126 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 640px) {
  .co-flag-hero-wrap { height: 130px; border-radius: 12px; }
  .co-flag-hero-caption { font-size: .9rem; }
}

/* ===== SOMBREROS VUELTIAOS COLGANDO DE LA BANDERA ===== */
.co-flag-hero-wrap { overflow: visible; }
.co-sombrero {
  position: absolute;
  top: -58px;
  width: 84px;
  height: 68px;
  z-index: 3;
  transform-origin: 50% -8px;         /* pivote arriba (donde cuelga la cuerda) */
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.45));
  pointer-events: none;
}
.co-sombrero-left {
  left: 22px;
  animation: co-sombrero-swing-left 4.5s ease-in-out infinite;
}
.co-sombrero-right {
  right: 22px;
  animation: co-sombrero-swing-right 4.5s ease-in-out infinite .8s;
}
@keyframes co-sombrero-swing-left {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}
@keyframes co-sombrero-swing-right {
  0%, 100% { transform: rotate(8deg); }
  50%      { transform: rotate(-8deg); }
}
@media (max-width: 640px) {
  .co-sombrero { width: 62px; height: 50px; top: -42px; }
  .co-sombrero-left  { left: 12px; }
  .co-sombrero-right { right: 12px; }
}
