/* ==========================================================================
   Mercado Digital — estilos
   Estructura: 1 Tokens · 2 Base · 3 Utilidades · 4 Botones · 5 Header
   6 Hero · 7 Tarjetas · 8 Planes · 9 Portfolio · 10 Nosotros · 11 Proceso
   12 FAQ · 13 Contacto · 14 Footer/WhatsApp/Toast · 15 Animación · 16 Responsive
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------ */
:root {
  --ink-950: #050b1c;
  --ink-900: #081231;
  --ink-850: #07102a;
  --ink-800: #0c1b45;
  --blue: #2a6df0;
  --blue-deep: #1a46d1;
  --cyan: #38c4ff;
  --wa: #25d366;

  --bg: var(--ink-950);
  --text: #eaf1ff;
  --muted: #a8b6d8;
  --accent: #5cc8ff;
  --card: rgba(255, 255, 255, .04);
  --card-border: rgba(120, 160, 255, .18);
  --line: rgba(120, 160, 255, .2);
  --shadow-card: 0 18px 40px -22px rgba(0, 0, 0, .7);

  --grad: linear-gradient(135deg, var(--blue), var(--blue-deep));
  --grad-text: linear-gradient(90deg, #5fd0ff, #3f7dff);

  --font: "Sora", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --fs-sm: .9rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.02rem, 1.1vw + .8rem, 1.2rem);
  --fs-h2: clamp(1.75rem, 3.2vw + .6rem, 2.75rem);
  --fs-h1: clamp(2.15rem, 5.2vw + .4rem, 4rem);

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4.25rem, 9vw, 7.5rem);
  --header-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Secciones claras: sólo cambian las variables */
.section--light {
  --bg: #f2f6ff;
  --text: #0a1433;
  --muted: #475577;
  --accent: #1a46d1;
  --card: #fff;
  --card-border: rgba(20, 50, 140, .1);
  --line: rgba(20, 50, 140, .14);
  --shadow-card: 0 18px 40px -26px rgba(20, 50, 140, .45);
}
.section--deep { --bg: var(--ink-850); }

/* 2. BASE -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: 1.65; color: #eaf1ff; background: var(--ink-950); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: #fff; color: #050b1c; padding: .6rem 1rem; border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 2.5rem; height: 2.5rem; stroke-width: 1.5; color: var(--accent); }

/* 3. UTILIDADES -------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.container--narrow { max-width: 820px; }
.section { background: var(--bg); color: var(--text); padding-block: var(--section-y); position: relative; overflow: hidden; }
.section--dark, .section--deep { background-image: radial-gradient(60rem 30rem at 85% -10%, rgba(42, 109, 240, .16), transparent 60%); }
.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section__head--sub { margin: clamp(3rem, 7vw, 5rem) auto 2rem; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
h4 { font-size: 1.02rem; font-weight: 600; }
.eyebrow { display: inline-block; margin-bottom: .9rem; font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.lead { margin-top: 1rem; font-size: var(--fs-lead); color: var(--muted); }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { display: flex; justify-content: center; margin-top: clamp(2rem, 5vw, 3rem); }
.note { max-width: 760px; margin: 2.5rem auto 0; text-align: center; font-size: var(--fs-sm); color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 2rem 0; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* 4. BOTONES ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem 1.5rem; border: 1.5px solid transparent; border-radius: 999px; font-weight: 600; font-size: .96rem; line-height: 1.2; text-align: center; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .6rem 1.1rem; font-size: .88rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(42, 109, 240, .9), 0 0 0 1px rgba(120, 190, 255, .25) inset; }
.btn--primary:hover { box-shadow: 0 14px 38px -8px rgba(56, 196, 255, .75), 0 0 0 1px rgba(160, 215, 255, .5) inset; }
.btn--ghost { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline { color: var(--accent); border-color: var(--accent); background: transparent; }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--wa { color: #7dffb1; border-color: rgba(37, 211, 102, .55); background: rgba(37, 211, 102, .1); }
.btn--wa:hover { background: var(--wa); color: #04210f; border-color: var(--wa); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; color: var(--accent); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2rem 0 1rem; }

/* 5. HEADER ------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(5, 11, 28, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.site-header.is-scrolled { border-color: var(--line); background: rgba(5, 11, 28, .92); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand__mark { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; font-weight: 700; font-size: 1.05rem; letter-spacing: .14em; line-height: 1; color: #fff; }
.brand__text small { margin-top: .32rem; font-size: .62rem; font-weight: 500; letter-spacing: .5em; color: #4f93ff; }
.nav__menu { display: flex; align-items: center; gap: 1.25rem; }
.nav__links { display: flex; gap: .15rem; }
.nav__links a, .nav__cta { white-space: nowrap; }
.nav__links a { display: block; padding: .5rem .7rem; border-radius: 8px; font-size: .88rem; font-weight: 500; color: #c9d6f2; transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; background: rgba(120, 160, 255, .12); }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 12px; color: #fff; cursor: pointer; }
.nav__toggle .icon { width: 24px; height: 24px; }
.nav__toggle .icon--close, .nav__toggle[aria-expanded="true"] .icon--open { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }

/* Redes sociales (sólo se muestran si están configuradas) */
.social { display: flex; flex-wrap: wrap; gap: .5rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: #c9d6f2; transition: color .2s, border-color .2s, background-color .2s, transform .25s var(--ease); }
.social a:hover { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.social--nav a { width: 34px; height: 34px; }
.social--nav .icon { width: 17px; height: 17px; }

/* 6. HERO -------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); background-image:
  radial-gradient(44rem 28rem at 78% 28%, rgba(42, 109, 240, .32), transparent 65%),
  radial-gradient(30rem 20rem at 10% 90%, rgba(56, 196, 255, .1), transparent 70%),
  linear-gradient(rgba(120, 160, 255, .05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(120, 160, 255, .05) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero h1 { font-size: var(--fs-h1); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.hero .lead { max-width: 34rem; }
.hero__tags { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__tags li { display: flex; align-items: center; gap: .5rem; }
.hero__tags li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }

.hero__visual { position: relative; min-height: clamp(340px, 42vw, 470px); }
.mock { position: absolute; background: linear-gradient(165deg, #10255a, #091534); border: 1px solid var(--card-border); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8), 0 0 60px -20px rgba(42, 109, 240, .5); overflow: hidden; }
.mock--browser { inset: 0 12% 14% 0; border-radius: 20px; }
.mock__bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid var(--card-border); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.mock__bar span { flex: 1; height: 14px; margin-left: 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.mock__body { display: grid; gap: 12px; padding: 16px; }
.mock__banner { position: relative; display: grid; align-content: center; gap: 8px; height: clamp(110px, 14vw, 150px); padding: 0 24px 0 100px; border-radius: 14px; background: linear-gradient(120deg, #1b4fd8, #0e2a78 70%); }
.mock__banner b { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .55); }
.mock__banner b.w60 { width: 60%; background: rgba(255, 255, 255, .25); }
.mock__logo { position: absolute; left: 20px; top: 50%; width: 62px; height: 62px; transform: translateY(-50%); }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__row i { display: block; height: clamp(50px, 7vw, 74px); border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid var(--card-border); }
.mock__line { height: 9px; border-radius: 6px; background: rgba(255, 255, 255, .13); }
.w70 { width: 70%; } .w60 { width: 60%; }
.mock--phone { right: 0; bottom: 0; width: clamp(140px, 17vw, 190px); padding: 22px 12px 14px; display: grid; gap: 9px; border-radius: 28px; border: 2px solid rgba(140, 180, 255, .35); transform: rotate(4deg); }
.mock__notch { position: absolute; top: 7px; left: 50%; width: 40px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .2); transform: translateX(-50%); }
.post { display: flex; align-items: center; gap: 7px; }
.post__avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); }
.post__name { width: 50%; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .25); }
.post__img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle at 30% 20%, #2f6bff, #0c1f55); }
.post__img svg { width: 62%; height: 62%; }
.post__img--sm { aspect-ratio: 16/8; color: #fff; }
.post__img--sm .icon { width: 28px; height: 28px; }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border: 1px solid var(--card-border); border-radius: 999px; background: rgba(9, 21, 52, .85); backdrop-filter: blur(8px); font-size: .8rem; font-weight: 600; color: #fff; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8); animation: float 6s ease-in-out infinite; }
.float-chip .icon { color: var(--cyan); }
.float-chip.c1 { left: -2%; top: 14%; }
.float-chip.c2 { right: 4%; top: 4%; animation-delay: -2s; }
.float-chip.c3 { left: 8%; bottom: 2%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-9px); } }

/* 7. TARJETAS ---------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 2rem); box-shadow: var(--shadow-card); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.service, .solution { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.service p, .solution p { color: var(--muted); font-size: .96rem; }
.service .btn { margin-top: auto; }
.service:hover, .solution:hover { transform: translateY(-5px); border-color: var(--accent); }
.icon-box { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: .4rem; border-radius: 16px; color: #fff; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(42, 109, 240, .9); }
.icon-box .icon { width: 26px; height: 26px; }
.icon-box--sm { width: 46px; height: 46px; border-radius: 14px; }
.icon-box--sm .icon { width: 22px; height: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .76rem; color: var(--muted); }
.solution .link-arrow { margin-top: auto; padding-top: .4rem; }

/* 8. PLANES ------------------------------------------------------------ */
.plan { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.plan__tag { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.plan__desc { color: var(--muted); font-size: .95rem; }
.plan__price { padding-block: .9rem; border-block: 1px solid var(--line); }
.plan__amount { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.plan__price small { margin-left: .4rem; font-size: .8rem; color: var(--muted); }
.checklist { display: grid; gap: .65rem; margin-bottom: .75rem; font-size: .93rem; color: #d2dcf5; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: .22rem; background: var(--cyan); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan .btn { margin-top: auto; }
.plan--grow { border: 1.5px solid transparent; background: linear-gradient(165deg, #10286a, #0a1740) padding-box, linear-gradient(135deg, #5fd0ff, #2a6df0 60%, #1a46d1) border-box; box-shadow: 0 30px 70px -28px rgba(42, 109, 240, .85); }
.plan--pro { background: linear-gradient(165deg, #0e2a6b, #07102a 75%); border-color: rgba(56, 196, 255, .35); }
.plan__badge { position: absolute; top: -13px; right: 1.5rem; padding: .3rem .9rem; border-radius: 999px; background: linear-gradient(90deg, #5fd0ff, #2a6df0); color: #04112e; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* 9. PORTFOLIO --------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.filter { padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font-size: .86rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.filter:hover { color: var(--accent); border-color: var(--accent); }
.filter.is-active { color: #fff; background: var(--grad); border-color: transparent; }
.project { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.project:hover { transform: translateY(-5px); border-color: var(--accent); }
.project__media { aspect-ratio: 4/3; background: linear-gradient(145deg, #12285f, #0a1634); display: grid; place-items: center; padding: 18px; position: relative; }
.project__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project__body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1.25rem 1.4rem 1.5rem; }
.project__cat { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.project__body p { font-size: .9rem; color: var(--muted); }
.project__body .link-arrow { margin-top: auto; padding-top: .5rem; }
.badge-demo { align-self: flex-start; padding: .2rem .65rem; border-radius: 999px; background: rgba(26, 70, 209, .1); border: 1px dashed var(--accent); font-size: .7rem; font-weight: 600; color: var(--accent); }
/* miniaturas ilustrativas dibujadas con CSS (sin imágenes pesadas) */
.tm { width: 100%; height: 100%; display: grid; gap: 8px; color: #fff; }
.tm i, .tm__bar { display: block; border-radius: 8px; background: rgba(255, 255, 255, .14); }
.tm--web { grid-template-rows: 14px 1fr 38px; }
.tm--web .tm__hero { background: linear-gradient(120deg, #2a6df0, #12337f); }
.tm--web .tm__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tm--grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.tm--grid i:nth-child(odd) { background: linear-gradient(160deg, #3a79f5, #17409b); }
.tm--posts { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.tm--posts i:nth-child(3n+1) { background: linear-gradient(160deg, #38c4ff, #2a6df0); }
.tm--posts i:nth-child(3n+2) { background: rgba(255, 255, 255, .16); }
.tm--poster { position: relative; display: block; }
.tm--poster i { position: absolute; width: 46%; height: 88%; top: 6%; border: 1px solid rgba(255, 255, 255, .2); }
.tm--poster .p1 { left: 8%; background: linear-gradient(170deg, #38c4ff, #1a46d1); transform: rotate(-6deg); }
.tm--poster .p2 { right: 8%; background: linear-gradient(170deg, #2a3f86, #0c1f55); transform: rotate(5deg); }
.tm--video { display: grid; place-items: center; }
.tm--video i { grid-area: 1/1; width: 40%; height: 100%; border-radius: 16px; background: linear-gradient(170deg, #2a6df0, #0c1f55); border: 1px solid rgba(255, 255, 255, .25); }
.tm--video .icon { grid-area: 1/1; width: 34px; height: 34px; }

/* 10. NOSOTROS --------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.about__copy p + p { margin-top: 1rem; color: var(--muted); }
.about__media img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--card-border); box-shadow: 0 30px 70px -30px rgba(42, 109, 240, .7); }
.why__item { padding: 1.5rem; border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--card); transition: transform .3s var(--ease), border-color .3s; }
.why__item:hover { transform: translateY(-4px); border-color: var(--accent); }
.why__item h4 { margin: 1rem 0 .4rem; }
.why__item p { font-size: .9rem; color: var(--muted); }
.why__item--cta { display: flex; flex-direction: column; justify-content: center; gap: .8rem; background: var(--grad); border-color: transparent; }
.why__item--cta h4 { margin: 0; font-size: 1.15rem; }
.why__item--cta .link-arrow { color: #fff; }

/* 11. PROCESO ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.step { position: relative; text-align: center; padding-inline: .5rem; }
.step__n { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--grad); font-size: 1.35rem; font-weight: 700; color: #fff; box-shadow: 0 0 0 6px rgba(42, 109, 240, .18), 0 12px 30px -10px rgba(42, 109, 240, .9); position: relative; z-index: 1; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 30px; left: calc(50% + 40px); width: calc(100% - 80px + 1.5rem); border-top: 2px dashed rgba(120, 160, 255, .35); }
.step p { margin-top: .5rem; font-size: .93rem; color: var(--muted); }

/* 12. FAQ -------------------------------------------------------------- */
.faq { display: grid; gap: .75rem; }
.faq__item { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--accent); box-shadow: var(--shadow-card); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.35rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--accent); transition: transform .3s var(--ease); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__a { padding: 0 1.35rem 1.3rem; color: var(--muted); }

/* 13. CONTACTO --------------------------------------------------------- */
.section--contact { background-image: radial-gradient(50rem 30rem at 15% 20%, rgba(42, 109, 240, .22), transparent 60%), radial-gradient(40rem 26rem at 95% 100%, rgba(56, 196, 255, .1), transparent 60%); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info .btn { margin-top: 1.75rem; }
.contact__meta { display: grid; gap: .7rem; margin-block: 1.75rem; color: var(--muted); font-size: .95rem; }
.contact__meta li { display: flex; align-items: center; gap: .7rem; }
.contact__meta .icon { color: var(--accent); }
.contact__follow { margin-bottom: .75rem; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.form { display: grid; gap: 1.1rem; color-scheme: dark; background: rgba(9, 21, 52, .7); backdrop-filter: blur(10px); }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-size: .86rem; font-weight: 500; color: #d2dcf5; }
.field label span { color: var(--cyan); }
.field label small { color: var(--muted); font-size: .78rem; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .05); color: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field select option, .field select optgroup { background: #0a1634; color: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(56, 196, 255, .2); }
.field [aria-invalid="true"] { border-color: #ff7b8a; }
.field__error { font-size: .82rem; color: #ff9aa6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.form__actions .btn { flex: 1 1 220px; }
.form__hint, .form__privacy { font-size: .82rem; color: var(--muted); }
.form__status { padding: .8rem 1rem; border-radius: 12px; font-size: .92rem; border: 1px solid var(--line); }
.form__status.is-ok { color: #8bffbd; border-color: rgba(37, 211, 102, .5); background: rgba(37, 211, 102, .08); }
.form__status.is-error { color: #ffb0b9; border-color: rgba(255, 123, 138, .5); background: rgba(255, 123, 138, .08); }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading .icon { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 14. FOOTER · WHATSAPP · TOAST --------------------------------------- */
.site-footer { background: #030816; color: #c9d6f2; padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer__brand { display: grid; gap: 1.1rem; justify-items: start; }
.footer__brand p { max-width: 24rem; font-size: .93rem; color: var(--muted); }
.footer__title { margin-bottom: 1rem; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.site-footer nav ul { display: grid; gap: .6rem; font-size: .93rem; }
.site-footer nav a { color: var(--muted); transition: color .2s; }
.site-footer nav a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.legal { display: flex; gap: 1.25rem; }
.legal a:hover { color: #fff; }

.wa-float { position: fixed; z-index: 60; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .6rem; height: 58px; min-width: 58px; padding: 0 15px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; font-size: .92rem; box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .65); transition: transform .25s var(--ease), box-shadow .25s; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: pulse 2.6s ease-out infinite; pointer-events: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float .icon { width: 28px; height: 28px; stroke-width: 1.9; }
.wa-float__label { display: none; color: #04210f; }
@keyframes pulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 92px; max-width: min(92vw, 440px); padding: .85rem 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: #0c1b45; color: #fff; font-size: .92rem; text-align: center; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .8); transform: translateX(-50%); animation: toast-in .35s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* 14b. CARRUSEL DE TRABAJOS ------------------------------------------- */
.carousel__track { position: relative; display: flex; gap: 1.25rem; padding: .5rem .25rem 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-drag { scroll-snap-type: none; user-select: none; -webkit-user-select: none; }
.carousel__track img { -webkit-user-drag: none; user-select: none; }
.slide { flex: 0 0 calc((100% - 2.5rem) / 3); scroll-snap-align: start; }
.slide .project__media { aspect-ratio: 16 / 11; }
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .5rem; }
.carousel__btn { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--text); cursor: pointer; transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.carousel__btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.06); }
.carousel__btn[data-prev] .icon { transform: scaleX(-1); }
.carousel__dots { display: flex; align-items: center; gap: .55rem; }
.carousel__dots button { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.carousel__dots button::before { content: ""; position: absolute; inset: -12px -4px; }
.carousel__dots button[aria-current="true"] { width: 30px; background: var(--cyan); }

/* 14c. CURSOR PERSONALIZADO (sólo mouse; se activa desde JS) ---------- */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 200; border-radius: 50%; opacity: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--blue); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9), 0 0 14px rgba(56, 196, 255, .75); transition: opacity .2s, scale .2s; }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(42, 109, 240, .9); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 0 18px -4px rgba(56, 196, 255, .6); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s, opacity .2s; }
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-on .cursor-dot.is-hidden, .cursor-on .cursor-ring.is-hidden { opacity: 0; }
.cursor-ring.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(42, 109, 240, .16); }
.cursor-ring.is-down { width: 28px; height: 28px; margin: -14px 0 0 -14px; background: rgba(42, 109, 240, .25); }
.cursor-dot.is-hover { scale: .5; }
.cursor-on, .cursor-on a, .cursor-on button, .cursor-on summary, .cursor-on label, .cursor-on .carousel__track { cursor: none; }
.cursor-on select { cursor: pointer; }
.cursor-on input, .cursor-on textarea { cursor: text; }

/* 15. ANIMACIÓN DE ENTRADA -------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.grid > .reveal:nth-child(3n+2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3n+3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 16. RESPONSIVE ------------------------------------------------------- */
@media (min-width: 768px) { .wa-float__label { display: inline; } }
@media (min-width: 1100px) and (max-width: 1279px) { .nav__menu { gap: .6rem; } .social--nav { display: none; } }
@media (max-width: 1099px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu { position: absolute; top: var(--header-h); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 1.5rem; background: var(--ink-950); border-bottom: 1px solid var(--line); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; }
  .nav__links a { padding: .8rem .5rem; font-size: 1rem; }
  .nav__cta { align-self: stretch; }
  .social--nav a { width: 40px; height: 40px; }
}
@media (max-width: 900px) {
  .slide { flex-basis: calc((100% - 1.25rem) / 2); }
  .hero__grid, .about, .contact { grid-template-columns: 1fr; }
  .hero__visual { min-height: 380px; max-width: 520px; width: 100%; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .step:not(:last-child)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .slide { flex-basis: 84%; }
  .btn-row .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__visual { min-height: 330px; }
  .float-chip.c1 { left: 0; }
  .toast { bottom: 84px; }
  .footer__grid { grid-template-columns: 1fr; }
}
