/* =====================================================================
   ESTILOS · Crubi Studios  (diseño "glassmorphism": paneles de vidrio esmerilado)
   GUÍA RÁPIDA
   - Colores y tipografías: variables en :root.
   - Intensidad del vidrio: variables --vidrio-* (más opacidad = más sólido, más blur = más difuso).
   - Fondo de colores difusos detrás del vidrio: body::before.
   - Movimiento (crossfade, elemento compartido, desenfoque): sección "MOVIMIENTO".
   Secciones: Base · Vidrio · Navegación · Inicio · Páginas · Formularios · Legal · Pie · Admin · Movimiento · Responsive
   ===================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  color-scheme: dark;
  --ink: #0a0b10;
  --white: #f7f7fa;
  --muted: #b0b4c2;
  --purple: #9b70ff;
  --blue: #72a8ff;
  --green: #61d4a4;
  --orange: #ffb35c;
  --line: rgba(255, 255, 255, .13);
  /* Vidrio */
  --vidrio-fondo: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  --vidrio-borde: 1px solid rgba(255, 255, 255, .14);
  --vidrio-blur: blur(18px) saturate(150%);
  --vidrio-sombra: 0 12px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .16);
  --display: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
  --code: "JetBrains Mono", monospace;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--ink); color: var(--white); font-family: var(--body); -webkit-font-smoothing: antialiased; }
/* Manchas de color fijas: el vidrio las desenfoca y por eso "se ve" translúcido. Cambia los colores aquí. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45vw 45vw at 12% 8%, rgba(124, 77, 255, .38), transparent 62%), radial-gradient(40vw 40vw at 88% 18%, rgba(47, 123, 255, .30), transparent 62%),
              radial-gradient(45vw 45vw at 75% 92%, rgba(25, 199, 154, .20), transparent 62%), radial-gradient(35vw 35vw at 8% 88%, rgba(255, 159, 74, .18), transparent 62%); }
/* Grano muy suave encima de todo: quita la sensación de "plano digital". Bájale la opacidad para que se note menos. */
body::after { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 10px; background: var(--white); color: var(--ink); font: 600 14px var(--body); transition: top .2s; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.page-width { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- Vidrio: todo lo que se ve como panel translúcido ---------- */
.site-header, .site-footer, .service-card, .project-card, .mini-grid li, .steps li, .cta-band, .contact-form, .contact-info, .team-placeholder,
.legal-doc, .code-art, .panel-admin, .login-box, .bento li, .plan, .plans-info > div, .home-plans {
  background: var(--vidrio-fondo); border: var(--vidrio-borde); box-shadow: var(--vidrio-sombra);
  -webkit-backdrop-filter: var(--vidrio-blur); backdrop-filter: var(--vidrio-blur);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { /* navegadores antiguos: panel más sólido */
  .site-header, .site-footer, .service-card, .project-card, .mini-grid li, .steps li, .cta-band, .contact-form, .contact-info, .team-placeholder, .legal-doc, .code-art, .panel-admin, .login-box, .bento li, .plan, .plans-info > div, .home-plans { background: #1b1d27; }
}

/* ---------- Navegación ---------- */
.site-header { position: sticky; top: 12px; z-index: 10; width: min(1120px, calc(100% - 24px)); margin: 12px auto 0; border-radius: 999px; transition: box-shadow .3s; view-transition-name: cabecera; }
.site-header.scrolled { box-shadow: 0 14px 44px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255,255,255,.18); }
.nav-wrap { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: calc(100% - 16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px var(--display); white-space: nowrap; }
.brand-mark { display: block; width: 32px; height: 32px; } /* logo: public/img/logo.svg */
.nav-links { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.nav-links a { padding: 8px 2px; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"], .footer-links a:hover { color: var(--white); }
.nav-links a[aria-current="page"] { box-shadow: 0 2px 0 var(--purple); }
.nav-quote { padding: 11px 18px; border-radius: 999px; background: linear-gradient(135deg, #ffc27a, var(--orange)); color: #1a1208; font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav-links .solo-movil { display: none; } /* "Cotizar proyecto" dentro del menú: solo en celular, donde se oculta el botón naranja */
.nav-toggle { display: none; height: 40px; padding: 0 16px; border: var(--vidrio-borde); border-radius: 999px; background: rgba(255,255,255,.06); color: var(--white); font: 500 13px var(--body); cursor: pointer; }

/* ---------- Inicio ---------- */
.hero { min-height: 640px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 48px; padding-block: 76px 70px; }
.hero h1, .page-heading h1, .about-layout h1 { max-width: 760px; margin: 16px 0 0; font: 600 clamp(40px, 6vw, 72px)/1.04 var(--display); letter-spacing: -.025em; }
.hero-description { max-width: 490px; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.eyebrow { margin: 0; color: var(--purple); font: 500 12px var(--code); text-transform: uppercase; letter-spacing: .04em; }
.eyebrow::before { content: "// "; color: #7b7f8d; }
.text-create { color: var(--purple); }
.text-trust { color: var(--blue); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 0 22px; font: 500 14px var(--display); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button-primary, .button-dark { background: linear-gradient(135deg, #a98aff, #7c4dff); color: #fff; box-shadow: 0 8px 28px rgba(124, 77, 255, .45), inset 0 1px 0 rgba(255,255,255,.3); }
.button-outline { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: var(--white); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.button-outline:hover { border-color: var(--purple); }
.button-dark { width: 100%; }
.button:disabled { cursor: wait; opacity: .7; }
/* Compromisos del hero (reemplazan a las cifras: solo cosas que se cumplen) */
.hero-points { display: grid; gap: 10px; margin: 40px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 12px; }
.hero-points li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1px solid rgba(97, 212, 164, .35);
  background: rgba(97, 212, 164, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2361d4a4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.hero-visual { position: relative; justify-self: end; }
.hero-code { position: absolute; left: -56px; bottom: -22px; margin: 0; padding: 14px 18px; border-radius: 14px; background: rgba(12, 13, 20, .82); border: var(--vidrio-borde); box-shadow: var(--vidrio-sombra); -webkit-backdrop-filter: var(--vidrio-blur); backdrop-filter: var(--vidrio-blur); color: var(--white); font: 13px/1.6 var(--code); transform: rotate(-2deg); }
.hero-code .c { color: #7b7f8d; } .hero-code .k { color: var(--purple); } .hero-code .s { color: var(--green); }
.code-art { position: relative; width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 48px; transform: rotate(3deg); }
.code-art img { width: 62%; height: auto; transform: rotate(-3deg); filter: drop-shadow(0 0 28px rgba(124, 77, 255, .45)); }
.code-art i { position: absolute; right: 12%; bottom: 15%; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 30px var(--blue); }
.home-services, .home-process, .home-projects { padding-block: 104px 0; }
.cta-band h2, .section-head h2, .intro h2, .home-plans h2 { margin: 0; font: 600 clamp(28px, 3.4vw, 40px)/1.15 var(--display); letter-spacing: -.02em; }
.cta-band h2 { font-size: clamp(24px, 2.6vw, 32px); }
.cta-band p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.section-head .eyebrow { margin-bottom: 12px; }
.link-arrow { color: var(--muted); font-size: 14px; transition: color .2s; }
.link-arrow span { display: inline-block; color: var(--green); transition: transform .2s; }
.link-arrow:hover { color: var(--white); } .link-arrow:hover span { transform: translateX(4px); }
/* Presentación honesta */
.intro { padding-block: 40px 0; }
.intro .eyebrow { margin-bottom: 18px; }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; padding-top: 28px; border-top: 1px solid var(--line); }
.intro-grid p { margin: 6px 0 0; max-width: 60ch; color: var(--muted); font-size: 17px; line-height: 1.75; }
/* Servicios en bento (bloques de distinto tamaño) */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(190px, auto); gap: 16px; margin: 0; padding: 0; list-style: none; }
.bento li { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 26px; border-radius: 22px; }
.bento .service-icon { margin-bottom: auto; }
.bento-main { grid-row: span 2; background: radial-gradient(120% 90% at 0% 0%, rgba(124, 77, 255, .28), transparent 60%), var(--vidrio-fondo) !important; }
.bento-wide { grid-column: span 2; }
.bento h3 { margin: 18px 0 0; font: 600 19px var(--display); letter-spacing: -.01em; }
.bento-main h3 { font-size: 28px; }
.bento p { margin: 0; max-width: 46ch; color: var(--muted); font-size: 14px; line-height: 1.65; }
/* Planes en el inicio */
.home-plans { display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 32px; margin-top: 104px; padding: 40px 44px; border-radius: 28px; background: radial-gradient(90% 140% at 100% 0%, rgba(255, 179, 92, .16), transparent 60%), var(--vidrio-fondo) !important; }
.home-plans .eyebrow { margin-bottom: 12px; color: var(--orange); }
.home-plans p { max-width: 54ch; margin: 14px 0 0; color: var(--muted); line-height: 1.7; }
.home-plans-price { display: grid; justify-items: start; gap: 2px; padding-left: 32px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.home-plans-price strong { color: var(--white); font: 600 40px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.home-plans-price .button { margin-top: 16px; }
.mini-grid, .steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.mini-grid { grid-template-columns: repeat(3, 1fr); }
.mini-grid li { padding: 26px; border-radius: 18px; }
.mini-grid h3 { margin: 0 0 8px; font: 600 18px var(--display); }
.mini-grid p, .steps span { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: paso; }
.steps li { counter-increment: paso; padding: 22px; border-radius: 18px; }
.steps li::before { content: counter(paso, decimal-leading-zero); display: block; margin-bottom: 12px; color: var(--orange); font: 500 13px var(--code); }
.steps strong { display: block; margin-bottom: 6px; font: 600 16px var(--display); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 96px auto 48px; padding: 40px 44px; border-radius: 28px; }
.cta-band h2 { margin: 0; }

/* ---------- Páginas internas ---------- */
.page-main { min-height: calc(100vh - 210px); padding-block: 84px 100px; }
.page-heading { max-width: 720px; margin-bottom: 42px; }
.page-heading h1, .about-layout h1 { font-size: clamp(38px, 5vw, 54px); }
.page-heading > p:last-child { max-width: 650px; margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.service-grid, .project-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card { min-height: 250px; padding: 26px; border-radius: 20px; }
.service-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(97, 212, 164, .16); border: 1px solid rgba(97, 212, 164, .3); color: var(--green); font: 500 13px var(--code); will-change: transform; transition: transform .12s ease-out; }
.service-card h2, .project-info h2 { margin: 24px 0 8px; font: 600 19px var(--display); }
.service-card p { min-height: 56px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.service-card a { display: inline-block; margin-top: 18px; color: var(--green); font-size: 13px; }
.project-card { overflow: hidden; border-radius: 20px; }
.project-preview { min-height: 225px; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 28px; overflow: hidden; }
.project-preview > span { color: #c4cbdc; font: 500 10px var(--code); }
.project-preview strong { font: 600 22px var(--display); }
.preview-one { background: linear-gradient(145deg, rgba(48, 92, 150, .75), rgba(17, 28, 45, .75)); }
.preview-two { background: linear-gradient(145deg, rgba(40, 110, 84, .75), rgba(18, 31, 32, .75)); }
.preview-three { background: linear-gradient(145deg, rgba(150, 90, 60, .75), rgba(33, 26, 28, .75)); }
.chart-bars { height: 58px; display: flex; align-items: end; gap: 10px; }
.chart-bars i { width: 24px; height: 44%; border-radius: 4px 4px 0 0; background: var(--blue); }
.chart-bars i:nth-child(2) { height: 75%; } .chart-bars i:nth-child(3) { height: 55%; } .chart-bars i:nth-child(4) { height: 100%; } .chart-bars i:nth-child(5) { height: 68%; }
.map-line { color: #8ee1ad; font: 17px var(--code); }
.shop-items { display: flex; gap: 10px; }
.shop-items i { width: 45px; height: 48px; border-radius: 6px; background: #f3b788; } .shop-items i:nth-child(2) { background: #bfc5d8; } .shop-items i:nth-child(3) { background: #d88872; }
.project-info { padding: 20px; }
.tag { color: var(--blue); font: 11px var(--code); }
.project-info h2 { margin: 9px 0 15px; }
.project-info a { color: var(--blue); font-size: 13px; }
.about-layout { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 70px; }
.about-description { max-width: 600px; margin: 22px 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.highlight-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; padding: 0; list-style: none; }
.highlight-list li { border: 1px solid rgba(255, 179, 92, .35); border-radius: 999px; padding: 9px 14px; background: rgba(255, 179, 92, .08); color: #ffc982; font: 12px var(--code); }
.team-placeholder { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 24px; color: #d1a9ff; }
.team-placeholder img { width: 150px; height: auto; filter: drop-shadow(0 0 24px rgba(124, 77, 255, .4)); }
.team-placeholder p { color: var(--muted); font: 12px var(--code); }

/* Aviso de proyectos conceptuales (no son clientes reales) */
.nota-concepto, .caso .nota-concepto { max-width: 720px; margin: 0 0 28px; padding: 14px 18px 14px 46px; border: 1px dashed rgba(255, 179, 92, .45); border-radius: 14px; color: #f1d2ac; font-size: 14px; line-height: 1.6;
  background: rgba(255, 179, 92, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8' fill='none' stroke='%23ffb35c' stroke-width='1.6'/%3E%3Cpath d='M10 9v5M10 6.2v.1' stroke='%23ffb35c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") 16px 15px / 18px no-repeat; }
.insignia-concepto, .caso .insignia-concepto { display: inline-block; margin: 14px 0 0; padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255, 179, 92, .45); color: var(--orange); font: 500 11px var(--code); text-transform: uppercase; letter-spacing: .05em; }
.caso .page-heading h1 { margin-top: 14px; }
/* Lista de proyectos: filas grandes alternadas, cada una lleva a su página */
.project-list { display: grid; gap: 28px; }
.project-list .project-card { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; border-radius: 28px; }
.project-list .project-card:nth-child(even) .project-preview { order: 2; }
.project-list .project-preview { min-height: 320px; padding: 44px; }
.project-list .project-preview strong { font-size: clamp(24px, 3vw, 34px); }
.project-list .project-info { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.project-list .project-info h2 { margin: 12px 0; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; }
.project-list .project-info p { max-width: 44ch; margin: 0 0 22px; color: var(--muted); line-height: 1.7; }
.project-list .project-info a { align-self: flex-start; padding: 11px 18px; border: 1px solid rgba(114, 168, 255, .35); border-radius: 999px; transition: background .2s, border-color .2s; }
.project-list .project-info a:hover { background: rgba(114, 168, 255, .12); border-color: var(--blue); }
.project-preview { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.project-card:hover .project-preview { transform: scale(1.02); }

/* ---------- Planes de mantenimiento (pages/planes.html) ---------- */
.plans-switch { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; border: var(--vidrio-borde); background: rgba(255, 255, 255, .05); }
.plans-switch button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 14px var(--display); cursor: pointer; transition: background .25s, color .25s; }
.plans-switch button:hover { color: var(--white); }
.plans-switch button[aria-pressed="true"] { background: linear-gradient(135deg, #a98aff, #7c4dff); color: #fff; box-shadow: 0 6px 20px rgba(124, 77, 255, .4); }
.plans-explica { margin: 14px 0 44px; color: var(--muted); font-size: 15px; }
.plan-precio small { margin-right: 4px; color: var(--muted); font: 500 14px var(--body); letter-spacing: 0; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plans[hidden] { display: none; }
.plan { display: flex; flex-direction: column; padding: 30px; border-radius: 26px; }
.plan header { position: relative; min-height: 214px; display: flex; flex-direction: column; }
.plan h2 { margin: 0; font: 600 26px var(--display); letter-spacing: -.02em; }
.plan-para { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.plan-precio { margin: auto 0 0; padding-top: 22px; }
.plan-precio strong { display: block; font: 600 clamp(22px, 2.3vw, 27px)/1.2 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-precio span { color: var(--muted); font: 12px var(--code); }
.plan-lista { display: grid; align-content: start; gap: 12px; margin: 26px 0 30px; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; line-height: 1.5; }
.plan-lista li { display: flex; gap: 10px; }
.plan-lista li::before { content: "✓"; flex: none; color: var(--green); font-weight: 600; }
.plan-lista .plan-todo { color: var(--muted); font-style: italic; }
.plan-lista .plan-todo::before { content: "+"; color: var(--muted); }
.plan .button { margin-top: auto; }
.plan-destacado { border-color: rgba(155, 112, 255, .55) !important; background: radial-gradient(120% 80% at 50% 0%, rgba(124, 77, 255, .3), transparent 65%), var(--vidrio-fondo) !important; box-shadow: 0 20px 60px rgba(76, 40, 170, .35), inset 0 1px 0 rgba(255, 255, 255, .2) !important; }
.plan-insignia { position: absolute; top: -44px; left: 0; margin: 0; padding: 5px 12px; border-radius: 8px; background: linear-gradient(135deg, #a98aff, #7c4dff); color: #fff; font: 500 11px var(--code); text-transform: uppercase; letter-spacing: .05em; }
.plans-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.plans-info > div { padding: 24px; border-radius: 20px; }
.plans-info h2 { margin: 0 0 8px; font: 600 17px var(--display); }
.plans-info p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
/* Luz que sigue al cursor (sitio.js pone --x y --y) */
@media (hover: hover) {
  .plan:not(.plan-destacado):hover, .bento li:not(.bento-main):hover { background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(155, 112, 255, .14), transparent 60%), var(--vidrio-fondo); }
}

/* ---------- Formularios ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 680px) 1fr; gap: 24px; align-items: start; }
.contact-form { width: 100%; display: grid; gap: 10px; padding: 30px; border-radius: 24px; }
.contact-form label { margin-top: 8px; font-size: 13px; font-weight: 500; }
.contact-form label span { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form textarea, .contact-form select, .login-box input, .panel-admin input, .panel-admin textarea, .panel-admin select { width: 100%; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 13px 14px; background: rgba(8, 9, 14, .45); color: var(--white); font: 14px var(--body); }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px rgba(155, 112, 255, .25); }
.contact-form input[type="checkbox"] { width: auto; margin-top: 2px; }
.contact-form .button { margin-top: 10px; }
.contact-form .check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.check a, .copyright a, .legal-doc a { text-decoration: underline; text-underline-offset: 3px; }
.aviso-datos { margin: 10px 0 4px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.aviso-datos a, .plans-nota a { text-decoration: underline; text-underline-offset: 3px; }
.plans-nota { margin: 18px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* campo trampa anti-robots: no lo borres */
.form-status { min-height: 20px; margin: 0; color: #8ee1ad; font-size: 13px; }
.form-status.error { color: #ff9a9a; }
.contact-info { padding: 28px; border-radius: 24px; }
.contact-info h2 { margin: 0 0 14px; font: 600 19px var(--display); }
.contact-info dt { margin-top: 14px; color: var(--muted); font: 11px var(--code); text-transform: uppercase; }
.contact-info dd { margin: 4px 0 0; font-size: 15px; }

/* ---------- Páginas legales ---------- */
.legal-doc { max-width: 820px; padding: 34px 38px; border-radius: 24px; }
.legal-doc h2 { margin: 28px 0 8px; font: 600 19px var(--display); }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--muted); font-size: 15px; line-height: 1.8; }
.legal-doc ul { padding-left: 20px; }
.legal-fecha { margin: 0 0 18px; color: var(--green) !important; font: 12px var(--code) !important; }

/* ---------- Pie de página y WhatsApp ---------- */
.site-footer { width: min(1120px, calc(100% - 24px)); margin: 0 auto 100px; border-radius: 28px; } /* margen inferior: espacio para el botón de WhatsApp */
.footer-content { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-block: 38px; }
.footer-description { max-width: 300px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer-title { margin: 0 0 15px; color: var(--white); font: 11px var(--code); text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; color: var(--muted); font-size: 13px; list-style: none; }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px; border-top: 1px solid var(--line); color: #9a9eac; font-size: 12px; }
.legal-links { display: flex; gap: 18px; }
.wa-pill { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 20; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .35), 0 4px 12px rgba(0, 0, 0, .4); transition: transform .2s ease, box-shadow .2s ease; }
.wa-pill:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37, 211, 102, .5), 0 4px 12px rgba(0, 0, 0, .4); }
.wa-pill svg { will-change: transform; transition: transform .12s ease-out; }

/* ---------- Panel de administración (public/admin) ---------- */
.admin-body .page-width { width: min(1000px, calc(100% - 32px)); }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px 12px; }
.admin-top h1 { margin: 0; font: 600 26px var(--display); }
.login-box { max-width: 420px; margin: 14vh auto 0; padding: 32px; border-radius: 24px; display: grid; gap: 12px; }
.login-box h1 { margin: 0 0 4px; font: 600 24px var(--display); }
.login-logo { width: 64px; height: 64px; }
.login-box p, .ayuda { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.tab { padding: 10px 18px; border: var(--vidrio-borde); border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); font: 500 13px var(--body); cursor: pointer; }
.tab[aria-selected="true"] { background: rgba(155, 112, 255, .3); color: var(--white); border-color: rgba(155, 112, 255, .6); }
.panel-admin { padding: 24px; border-radius: 22px; margin-bottom: 40px; }
.panel-admin[hidden], .login-box[hidden], [hidden] { display: none !important; }
.filtros { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; margin-bottom: 16px; }
.conteo { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.msg { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); margin-bottom: 10px; }
.msg summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.msg summary::-webkit-details-marker { display: none; }
.msg-nombre { font-weight: 600; }
.msg-fecha { margin-left: auto; color: var(--muted); font-size: 12px; }
.insignia { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font: 11px var(--code); }
.insignia.nuevo { color: var(--orange); border-color: rgba(255,179,92,.5); }
.insignia.atendido { color: var(--green); border-color: rgba(97,212,164,.5); }
.msg-cuerpo { padding: 0 16px 16px; display: grid; gap: 10px; font-size: 14px; }
.msg-datos { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); }
.msg-datos a { color: var(--blue); text-decoration: underline; }
.msg-texto { margin: 0; padding: 14px; border-radius: 10px; background: rgba(8,9,14,.4); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-min { padding: 9px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.07); color: var(--white); font: 500 13px var(--body); cursor: pointer; }
.btn-min:hover { border-color: var(--purple); }
.btn-min.peligro { color: #ff9a9a; border-color: rgba(255,154,154,.4); }
.btn-min.principal { background: linear-gradient(135deg, #a98aff, #7c4dff); border-color: transparent; }
.editor { min-height: 360px; font: 14px/1.6 var(--code) !important; resize: vertical; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.campos label, .editor-barra label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.editor-barra { display: grid; gap: 12px; }

/* ---------- Páginas de cada proyecto (public/pages/proyectos/*.html) ----------
   Cada página elige su color con una clase en <main>: caso-azul, caso-verde o caso-naranja (variable --acento). */
.caso-azul { --acento: var(--blue); --acento-suave: rgba(114, 168, 255, .16); }
.caso-verde { --acento: var(--green); --acento-suave: rgba(97, 212, 164, .16); }
.caso-naranja { --acento: var(--orange); --acento-suave: rgba(255, 179, 92, .16); }
.caso { padding-top: 48px; }
.caso .eyebrow { color: var(--acento); }
.caso h2 { margin: 0 0 18px; font: 600 26px/1.25 var(--display); }
.caso section { margin-top: 64px; }
.caso .page-heading { margin: 22px 0 36px; }
.volver { display: inline-flex; gap: 8px; color: var(--muted); font-size: 13px; transition: color .2s; }
.volver:hover { color: var(--white); }
.caso-resumen div, .caso-bloques > div, .caso-funciones li {
  background: var(--vidrio-fondo); border: var(--vidrio-borde); box-shadow: var(--vidrio-sombra);
  -webkit-backdrop-filter: var(--vidrio-blur); backdrop-filter: var(--vidrio-blur);
}
.caso-visual { border: var(--vidrio-borde); box-shadow: var(--vidrio-sombra); min-height: 380px; display: grid; place-items: center; padding: clamp(20px, 4vw, 48px); border-radius: 28px; overflow: hidden; }
.caso-resumen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px !important; }
.caso-resumen div { padding: 18px 20px; border-radius: 18px; }
.caso-resumen dt { color: var(--muted); font: 11px var(--code); text-transform: uppercase; }
.caso-resumen dd { margin: 6px 0 0; font: 500 16px var(--display); }
.caso-bloques { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.caso-bloques > div { padding: 28px; border-radius: 22px; }
.caso-bloques h2 { font-size: 21px; margin-bottom: 10px; }
.caso p, .caso-funciones p { color: var(--muted); line-height: 1.75; }
.caso-bloques p { margin: 0; }
.caso-funciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.caso-funciones li { padding: 24px; border-radius: 20px; }
.caso-funciones .service-icon { background: var(--acento-suave); border-color: color-mix(in srgb, var(--acento) 45%, transparent); color: var(--acento); }
.caso-funciones h3 { margin: 18px 0 6px; font: 600 17px var(--display); }
.caso-funciones p { margin: 0; font-size: 14px; }
.caso .highlight-list li { border-color: color-mix(in srgb, var(--acento) 40%, transparent); background: var(--acento-suave); color: var(--acento); }
.caso .cta-band { margin-inline: 0; }
.caso .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Maqueta 1: panel de analítica */
.mq-panel { width: min(100%, 640px); display: grid; gap: 14px; }
.mq-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mq-kpis div { padding: 14px; border-radius: 14px; background: rgba(8, 12, 22, .55); border: 1px solid rgba(114, 168, 255, .25); }
.mq-kpis span { display: block; color: #9fb4d9; font: 10px var(--code); text-transform: uppercase; }
.mq-kpis strong { display: block; margin-top: 6px; font: 600 clamp(16px, 3vw, 22px) var(--display); }
.mq-kpis em { color: var(--green); font: normal 11px var(--code); }
.mq-grafico { height: 170px; display: flex; align-items: end; gap: 3%; padding: 18px; border-radius: 14px; background: rgba(8, 12, 22, .55); border: 1px solid rgba(114, 168, 255, .25); }
.mq-grafico i { flex: 1; height: 35%; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--blue), rgba(114, 168, 255, .35)); }
.mq-grafico i:nth-child(2) { height: 52%; } .mq-grafico i:nth-child(3) { height: 44%; } .mq-grafico i:nth-child(4) { height: 63%; } .mq-grafico i:nth-child(5) { height: 58%; }
.mq-grafico i:nth-child(6) { height: 72%; } .mq-grafico i:nth-child(7) { height: 66%; } .mq-grafico i:nth-child(8) { height: 84%; } .mq-grafico i:nth-child(9) { height: 78%; } .mq-grafico i:nth-child(10) { height: 95%; }

/* Maqueta 2: app de delivery en un celular */
.mq-celular { width: 250px; padding: 18px 16px 22px; border-radius: 34px; background: #0d1512; border: 6px solid #1d2a25; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.mq-celular > span { display: block; color: #8ee1ad; font: 10px var(--code); }
.mq-celular > strong { display: block; margin: 6px 0 16px; font: 600 19px var(--display); }
.mq-pasos { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.mq-pasos li { display: flex; align-items: center; gap: 10px; }
.mq-pasos li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #3c5a4e; }
.mq-pasos .hecho { color: var(--white); } .mq-pasos .hecho::before { background: var(--green); border-color: var(--green); }
.mq-pasos .ahora { color: var(--green); } .mq-pasos .ahora::before { border-color: var(--green); box-shadow: 0 0 0 4px rgba(97, 212, 164, .2); }
.mq-repartidor { display: flex; justify-content: space-between; margin-top: 18px; padding: 12px; border-radius: 14px; background: rgba(97, 212, 164, .12); font-size: 12px; }
.mq-repartidor b { color: var(--green); }

/* Maqueta 3: tienda online en una ventana de navegador */
.mq-navegador { width: min(100%, 640px); border-radius: 16px; overflow: hidden; background: #1a1517; border: 1px solid rgba(255, 179, 92, .25); }
.mq-barra { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(0, 0, 0, .35); }
.mq-barra i { width: 9px; height: 9px; border-radius: 50%; background: #5a4a44; }
.mq-barra span { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--orange); color: #1a1208; font: 600 11px var(--body); }
.mq-productos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; }
.mq-productos div { display: grid; gap: 6px; font-size: 12px; }
.mq-productos i { aspect-ratio: 1; border-radius: 10px; background: #f3b788; }
.mq-productos div:nth-child(2) i { background: #bfc5d8; } .mq-productos div:nth-child(3) i { background: #d88872; } .mq-productos div:nth-child(4) i { background: #9fc7b0; }
.mq-productos b { color: var(--orange); font-weight: 600; }

@media (max-width: 900px) {
  .caso-funciones { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .caso section { margin-top: 44px; }
  .caso h2 { font-size: 22px; }
  .caso-visual { min-height: 300px; border-radius: 22px; }
  .caso-resumen, .caso-bloques, .caso-funciones, .caso .project-grid { grid-template-columns: 1fr; }
  .mq-kpis { gap: 8px; } .mq-kpis div { padding: 10px; }
  .mq-grafico { height: 120px; }
  .mq-productos { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- MOVIMIENTO: los 4 principios ---------- */
/* 1) CROSSFADE: al cambiar de página lo viejo se desvanece mientras lo nuevo aparece (transición nativa del navegador).
      La cabecera tiene su propio nombre (view-transition-name) para quedarse quieta durante el cambio. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .32s ease both salir; }
::view-transition-new(root) { animation: .32s ease both entrar; }
@keyframes salir { to { opacity: 0; } }
@keyframes entrar { from { opacity: 0; } }
/* 2) ELEMENTO COMPARTIDO: el h2 de la tarjeta pulsada (sitio.js le pone este mismo nombre) viaja hasta el h1 de la página nueva.
      En Proyectos también viaja la imagen: la vista previa de la tarjeta se convierte en la maqueta grande del proyecto. */
.page-heading h1, .about-layout h1 { view-transition-name: titulo-compartido; }
.caso-visual { view-transition-name: visual-compartido; }
::view-transition-group(titulo-compartido), ::view-transition-group(visual-compartido) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
/* 3) LUPA (magnification): la hace sitio.js; aquí solo la suavidad (transition en .service-icon y .wa-pill svg). */
/* 4) DESENFOQUE: al apuntar a una tarjeta, las demás se desenfocan y el ojo sabe dónde mirar. */
.service-card, .project-card, .mini-grid li, .caso-funciones li, .bento li, .plan { transition: filter .3s ease, opacity .3s ease, transform .3s ease, background .3s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bento:hover li:not(:hover), .plans:hover .plan:not(:hover) { opacity: .7; }
  .service-grid:hover .service-card:not(:hover), .project-grid:hover .project-card:not(:hover), .mini-grid:hover li:not(:hover), .caso-funciones:hover li:not(:hover) { filter: blur(3px) saturate(.7); opacity: .55; }
  .service-card:hover, .project-grid .project-card:hover, .mini-grid li:hover, .caso-funciones li:hover, .bento li:hover, .plan:hover { transform: translateY(-4px); }
}
/* 5) APARICIÓN: las secciones .revelar suben y aparecen al hacer scroll (sitio.js pone .con-revelado y .visible) */
.con-revelado .revelar { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.con-revelado .revelar.visible { opacity: 1; transform: none; }
/* Con el menú móvil abierto, el resto de la página se desenfoca */
main, .site-footer { transition: filter .3s ease; }
body:has(.nav-links.open) main, body:has(.nav-links.open) .site-footer { filter: blur(6px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { gap: 14px; font-size: 12px; }
  .service-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 24px; } .code-art { width: 280px; }
  .contact-layout { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; } .bento-main { grid-row: auto; grid-column: span 2; } .bento-wide { grid-column: span 2; }
  .plans { grid-template-columns: 1fr; max-width: 560px; gap: 48px; } .plans-switch button { padding: 0 14px; font-size: 13px; } .plan header { min-height: 0; }
  .plans-info, .home-plans { grid-template-columns: 1fr; }
  .home-plans-price { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .project-list .project-card { grid-template-columns: 1fr; } .project-list .project-card:nth-child(even) .project-preview { order: 0; }
  .project-list .project-preview { min-height: 240px; }
  .hero-code { left: -20px; }
  .filtros { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .page-width { width: min(calc(100% - 36px), 520px); }
  .site-header { border-radius: 28px; }
  .nav-wrap { min-height: 60px; }
  .nav-toggle { display: block; }
  .nav-quote { display: none; }
  .nav-links .solo-movil { display: list-item; }
  .nav-links .solo-movil a { color: var(--orange); }
  .nav-links { position: absolute; top: 70px; left: 0; right: 0; display: none; align-items: stretch; gap: 0; padding: 8px 18px 14px; border-radius: 24px; background: rgba(14, 15, 22, .92); border: var(--vidrio-borde); -webkit-backdrop-filter: var(--vidrio-blur); backdrop-filter: var(--vidrio-blur); }
  .nav-links.open { display: flex; flex-direction: column; }
  .nav-links a { display: block; padding: 13px 4px; font-size: 14px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 56px 48px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-description { font-size: 16px; }
  .code-art { width: 190px; }
  .hero-visual { justify-self: center; } .hero-code { display: none; }
  .hero-points { margin-top: 32px; }
  .home-services, .home-process, .home-projects { padding-block: 72px 0; }
  .home-plans { margin-top: 72px; padding: 28px 22px; }
  .intro-grid { grid-template-columns: 1fr; gap: 16px; }
  .bento { grid-template-columns: 1fr; } .bento-main, .bento-wide { grid-column: auto; }
  .project-list .project-preview, .project-list .project-info { padding: 26px; }
  .plan { padding: 24px; }
  .cta-band { margin-top: 72px; }
  .page-main { padding-block: 56px 72px; }
  .page-heading h1, .about-layout h1 { font-size: 39px; }
  .service-grid, .project-grid, .about-layout, .mini-grid, .steps, .campos { grid-template-columns: 1fr; }
  .about-layout { gap: 32px; }
  .team-placeholder { min-height: 250px; }
  .contact-form, .legal-doc, .contact-info { padding: 22px; }
  .cta-band { padding: 28px 22px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-content > div:first-child { grid-column: 1 / -1; }
  .wa-pill { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; }
  #f-buscar { grid-column: 1 / -1; } /* panel: buscador a lo ancho */
  .site-footer { margin-bottom: 88px; } /* espacio para que el botón de WhatsApp no tape el pie */
  /* iPhone hace zoom al tocar un campo con letra menor a 16px */
  .contact-form input, .contact-form textarea, .contact-form select, .login-box input, .panel-admin input, .panel-admin textarea, .panel-admin select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.fila-sup { margin-top: 16px; }
