/* =========================================================
   SOSAWEBS — Hoja de estilos pública
   Colores tomados del logotipo (degradado cian → azul → azul rey)
   ========================================================= */
:root {
  --c1: #00a6ff;          /* cian del logo */
  --c2: #0a6cf5;          /* azul medio */
  --c3: #0646e6;          /* azul rey */
  --navy: #0b1b3f;        /* azul marino del eslogan */
  --navy-2: #13275a;
  --ink: #0f1d3d;
  --muted: #5a6a8a;
  --line: #dde6f5;
  --bg: #ffffff;
  --bg-soft: #f3f7ff;
  --bg-tint: #e8f1ff;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --grad: linear-gradient(135deg, var(--c1) 0%, var(--c2) 52%, var(--c3) 100%);
  --grad-v: linear-gradient(180deg, var(--c1), var(--c3));
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 6px rgba(11, 27, 63, .06);
  --shadow: 0 14px 40px -12px rgba(10, 60, 170, .22);
  --shadow-lg: 0 30px 70px -20px rgba(10, 60, 170, .35);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-slab: 'Zilla Slab', Georgia, serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; margin: 0; color: var(--navy); letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(10, 108, 245, .45); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .6em 1.1em; font-size: .88rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(6, 70, 230, .55); }
.btn-primary:hover { box-shadow: 0 16px 32px -10px rgba(6, 70, 230, .65); }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--c2); color: var(--c2); }
.btn-ghost { color: var(--navy); background: rgba(255, 255, 255, .7); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--c2); color: var(--c2); }
.btn-white { background: #fff; color: var(--c3); }
.btn-white:hover { box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); }
.btn-wa { background: var(--wa); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c2); margin-bottom: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--c1); border-radius: 2px; transform: rotate(45deg); box-shadow: 0 0 0 4px rgba(0, 166, 255, .18); }
.eyebrow-light { color: rgba(255, 255, 255, .85); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(11, 27, 63, .25); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 50px; width: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--navy); transition: background .2s, color .2s; }
.main-nav ul a:hover, .main-nav ul a.is-active { background: var(--bg-tint); color: var(--c2); }
.nav-head, .nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle, .nav-close { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); align-items: center; justify-content: center; }
.nav-toggle .ic, .nav-close .ic { width: 22px; height: 22px; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(11, 27, 63, .45); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 60; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 90px; overflow: hidden; }
.hero-bg, .page-hero .hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(0, 166, 255, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(6, 70, 230, .10), transparent 60%),
    linear-gradient(180deg, #f6f9ff, #fff);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(10, 108, 245, .18) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); margin-top: 20px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 40px 0 0; padding-top: 28px; border-top: 1px dashed var(--line); }
.hero-stats dt { font-family: var(--font-slab); font-size: 2rem; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats dd { margin: 6px 0 0; font-size: .85rem; color: var(--muted); font-weight: 500; }

.hero-visual { position: relative; min-height: 470px; }
.hero-iso { position: absolute; width: 78%; right: -12%; top: -8%; opacity: .1; filter: blur(.5px); transform: rotate(-8deg); pointer-events: none; }
.browser { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f4f7fd; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4dcec; }
.browser-bar i:first-child { background: #ff6b6b; } .browser-bar i:nth-child(2) { background: #ffc145; } .browser-bar i:nth-child(3) { background: #3ccf6e; }
.browser-bar span { margin-left: 10px; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; padding: 3px 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-shot { aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--bg-soft); position: relative; }
.browser-shot img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transition: transform 3.5s cubic-bezier(.4, 0, .2, 1); }
.hero-browser { position: absolute; left: 0; top: 30px; width: 88%; box-shadow: var(--shadow-lg); }
.is-auto img { animation: autoScroll 14s ease-in-out infinite alternate; }
@keyframes autoScroll { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(calc(-100% + 300px)); } }
.phone { position: absolute; right: 0; bottom: 0; width: 34%; aspect-ratio: 9 / 18.5; background: var(--navy); border-radius: 30px; padding: 8px; box-shadow: var(--shadow-lg); }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 34%; height: 14px; background: var(--navy); border-radius: 999px; z-index: 2; }
.phone-shot { height: 100%; border-radius: 23px; overflow: hidden; background: #fff; }
.phone-shot img { width: 100%; height: auto; }
.phone-shot.is-auto img { animation-duration: 18s; animation-name: autoScrollPhone; }
@keyframes autoScrollPhone { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(calc(-100% + 340px)); } }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow); font-size: .82rem; font-weight: 700; color: var(--navy); animation: floaty 6s ease-in-out infinite;
}
.float-chip .ic { color: var(--c2); }
.chip-a { left: -14px; bottom: 70px; }
.chip-b { right: 26%; top: 0; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* ---------- Secciones ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.section-head-row { max-width: none; text-align: left; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-row > div { max-width: 640px; }

/* ---------- Servicios ---------- */
.services { background: var(--bg-soft); }
.services::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--line); }
.tabs {
  display: flex; gap: 6px; padding: 6px; margin: 0 auto 28px; width: max-content; max-width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 0;
  background: transparent; color: var(--muted); font-weight: 700; font-size: .95rem; white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s;
}
.tab:hover { color: var(--c2); }
.tab.is-active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(6, 70, 230, .6); }
.tab-panel { animation: fadeUp .45s ease both; }
.tab-intro { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.pay-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px;
  margin: -8px auto 32px; padding: 12px 20px; background: #fff; border: 1px dashed #bcd0f2; border-radius: 999px; width: max-content; max-width: 100%;
  font-size: .88rem; color: var(--muted); font-weight: 600;
}
.pay { padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem; }
.pay-pp { background: #eaf1ff; color: #003087; font-style: italic; }
.pay-mp { background: #e6f7ff; color: #009ee3; }
.pay-note { font-weight: 500; font-size: .8rem; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plans-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; }
.plan {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px 28px; transition: transform .3s, box-shadow .3s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.is-featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -13px; left: 28px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.plan-name { font-size: 1.3rem; font-weight: 800; }
.plan-desc { color: var(--muted); font-size: .92rem; margin-top: 8px; min-height: 3em; }
.plan-price { display: flex; align-items: flex-end; gap: 10px; margin: 22px 0 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.plan-price .amount { font-family: var(--font-slab); font-weight: 700; font-size: 2.7rem; line-height: .9; color: var(--navy); }
.plan.is-featured .plan-price .amount { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-price .cur { font-size: .75rem; color: var(--muted); font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: .04em; }
.plan-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; flex: 1; }
.plan-list li { display: flex; gap: 10px; font-size: .93rem; line-height: 1.45; }
.plan-list .ic { width: 20px; height: 20px; padding: 3px; border-radius: 6px; background: var(--bg-tint); color: var(--c2); stroke-width: 3; margin-top: 1px; }
.services-foot { text-align: center; margin-top: 40px; color: var(--muted); }
.services-foot a { color: var(--c2); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-photo { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.about-art {
  aspect-ratio: 4 / 4.4; border-radius: 28px; background: var(--grad); display: grid; place-items: center; overflow: hidden; position: relative; box-shadow: var(--shadow-lg);
}
.about-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1.5px); background-size: 22px 22px; }
.about-art img { width: 62%; filter: brightness(0) invert(1); opacity: .95; position: relative; }
.about-badge {
  position: absolute; right: -18px; bottom: 34px; background: #fff; border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; max-width: 250px;
}
.about-badge strong { font-family: var(--font-slab); font-size: 2.3rem; line-height: 1; color: var(--c2); }
.about-badge span { font-size: .8rem; color: var(--muted); font-weight: 600; line-height: 1.3; }
.about-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
.prose { margin-top: 20px; color: var(--muted); display: grid; gap: 14px; }
.values { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.values li { display: flex; gap: 14px; }
.value-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--bg-tint); color: var(--c2); }
.value-ic .ic { width: 22px; height: 22px; }
.values h3 { font-size: 1rem; font-weight: 700; }
.values p { font-size: .88rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }

.process {
  list-style: none; margin: 80px 0 0; padding: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  background: var(--navy); border-radius: 28px; color: #fff; position: relative; overflow: hidden;
}
.process::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 100% 0%, rgba(0, 166, 255, .35), transparent 60%); }
.process li { position: relative; }
.step-n { font-family: var(--font-slab); font-size: 2.4rem; font-weight: 700; line-height: 1; background: var(--grad-v); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.4); }
.process h3 { color: #fff; font-size: 1.08rem; margin-top: 12px; }
.process p { color: rgba(255, 255, 255, .7); font-size: .9rem; margin-top: 6px; line-height: 1.5; }
.process li:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: 70px; right: -14px; height: 2px; background: linear-gradient(90deg, rgba(0, 166, 255, .6), transparent); }

/* ---------- Proyectos ---------- */
.clients { background: var(--bg-soft); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project .browser { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); }
.project:hover .browser-shot img { transform: translateY(calc(-100% + 230px)); }
.shot-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #b4c3e0; }
.shot-empty .ic { width: 48px; height: 48px; }
.project-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.project-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.chip { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: 4px 10px; border-radius: 999px; }
.chip-client { background: var(--grad); color: #fff; }
.chip-demo { background: var(--bg-tint); color: var(--c3); }
.project-cat { font-size: .82rem; color: var(--muted); font-weight: 600; }
.project h3 { font-size: 1.15rem; font-weight: 800; }
.project p { color: var(--muted); font-size: .9rem; margin-top: 8px; flex: 1; line-height: 1.55; }
.link-arrow { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--c2); font-weight: 700; font-size: .92rem; align-self: flex-start; }
.link-arrow:hover { gap: 10px; }
.link-arrow .ic { transition: transform .2s; }

/* ---------- Reseñas ---------- */
.rating-sum { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 20px; }
.rating-sum strong { font-family: var(--font-slab); font-size: 2.4rem; line-height: 1; color: var(--navy); }
.rating-sum small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: #ffb400; }
.stars .ic { width: 17px; height: 17px; }
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 20px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative;
}
.review-q { position: absolute; right: 22px; top: 20px; color: var(--bg-tint); }
.review-q .ic { width: 46px; height: 46px; stroke-width: 2.5; }
.review blockquote { margin: 0; color: var(--ink); font-size: .97rem; flex: 1; line-height: 1.6; }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.review figcaption img, .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar { display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; }
.review figcaption strong { display: block; font-size: .95rem; color: var(--navy); }
.review figcaption small { color: var(--muted); font-size: .8rem; }
.carousel-nav { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; transition: all .2s; }
.round-btn:hover { background: var(--grad); color: #fff; border-color: transparent; }
.round-btn:disabled { opacity: .35; pointer-events: none; }

/* ---------- Contacto ---------- */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.contact-cta { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: 28px; padding: 52px 48px; box-shadow: var(--shadow-lg); }
.contact-pattern {
  position: absolute; right: -80px; bottom: -80px; width: 360px; height: 360px; opacity: .14;
  background: url('../img/isotipo.png') center / contain no-repeat; filter: brightness(0) invert(1); transform: rotate(-12deg);
}
.contact-cta h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; position: relative; }
.contact-cta .hl { background: none; color: #c9ecff; -webkit-text-fill-color: #c9ecff; }
.contact-cta p { color: rgba(255, 255, 255, .88); margin: 18px 0 30px; max-width: 460px; position: relative; }
.contact-cta .btn { position: relative; }
.contact-num { display: block; margin-top: 16px; font-weight: 700; color: rgba(255, 255, 255, .8); position: relative; letter-spacing: .03em; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.info-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; transition: border-color .2s, transform .2s; min-width: 0; }
a.info-card:hover { border-color: var(--c2); transform: translateY(-3px); }
.info-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--bg-tint); color: var(--c2); display: grid; place-items: center; }
.info-card small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.info-card strong { display: block; color: var(--navy); font-size: .95rem; margin-top: 2px; line-height: 1.4; overflow-wrap: anywhere; }
.info-social { grid-column: 1 / -1; flex-direction: column; gap: 10px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--grad); transform: translateY(-3px); }
.socials .ic { width: 19px; height: 19px; }
.socials-dark a { background: var(--bg-tint); color: var(--c2); }
.socials-dark a:hover { color: #fff; }

.faq { margin-top: 64px; max-width: 860px; margin-inline: auto; }
.faq-title { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; }
.faq-title .ic { color: var(--c2); }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .2s; }
.faq-item.is-open { border-color: #b9cff5; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: none; border: 0; font-weight: 700; color: var(--navy); font-size: 1rem; }
.faq-plus { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--bg-tint); color: var(--c2); transition: transform .3s, background .3s, color .3s; }
.faq-item.is-open .faq-plus { transform: rotate(45deg); background: var(--grad); color: #fff; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Página portafolio ---------- */
.page-hero { position: relative; padding: 70px 0 40px; overflow: hidden; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
.page-hero .lead { margin-inline: auto; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.crumbs a { color: var(--c2); }
.portfolio-page { padding-top: 30px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 32px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.filter span { font-size: .75rem; background: var(--bg-tint); color: var(--c2); border-radius: 999px; padding: 1px 8px; }
.filter.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.filter.is-active span { background: rgba(255, 255, 255, .25); color: #fff; }
.filter-select select { appearance: none; padding: 11px 42px 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%230a6cf5' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center no-repeat; font: inherit; font-weight: 600; font-size: .9rem; color: var(--navy); }
.project.is-hidden { display: none; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }
.cta-band {
  margin-top: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--grad); color: #fff; border-radius: 28px; padding: 44px 48px; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .72); padding: 72px 0 28px; }
.footer-pattern { position: absolute; inset: 0; background: radial-gradient(700px 360px at 90% 0%, rgba(0, 166, 255, .22), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(6, 70, 230, .25), transparent 60%); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { height: 56px; width: auto; }
.footer-brand p { margin: 18px 0 22px; font-size: .92rem; max-width: 320px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.site-footer ul a:hover { color: #fff; }
.footer-contact li a, .footer-contact li span { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { margin-top: 3px; color: var(--c1); }
.footer-bottom { position: relative; margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.to-top:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: flex-end; gap: 12px; }
.wa-btn {
  width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -6px rgba(18, 140, 75, .6); position: relative; transition: transform .2s;
}
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: waPulse 2.4s ease-out infinite; }
.wa-btn:hover { transform: scale(1.07); }
.wa-btn .ic { width: 32px; height: 32px; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-bubble {
  position: relative; background: #fff; border-radius: 16px 16px 4px 16px; padding: 12px 34px 12px 16px; box-shadow: var(--shadow);
  font-size: .85rem; max-width: 220px; opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; transition: all .35s; margin-bottom: 10px;
}
.wa-bubble strong { display: block; color: var(--navy); font-size: .82rem; }
.wa-bubble span { color: var(--muted); line-height: 1.4; display: block; }
.wa-float.show-bubble .wa-bubble { opacity: 1; transform: none; pointer-events: auto; }
.wa-bubble-close { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--muted); display: grid; place-items: center; }
.wa-bubble-close .ic { width: 13px; height: 13px; }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =================== RESPONSIVO =================== */
@media (max-width: 1080px) {
  .main-nav ul a { padding: 8px 9px; font-size: .88rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { height: 40px; }
  .nav-toggle { display: inline-flex; }
  /* backdrop-filter crea un contenedor para elementos fixed: se quita en móvil para que el menú ocupe toda la pantalla */
  .site-header { background: rgba(255, 255, 255, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .main-nav { visibility: hidden; }
  .nav-open .main-nav { visibility: visible; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: #fff; z-index: 70;
    padding: 20px 22px 28px; display: flex; flex-direction: column; gap: 18px;
    transform: translateX(105%); transition: transform .35s cubic-bezier(.4, 0, .2, 1), visibility .35s; box-shadow: -20px 0 50px -20px rgba(11, 27, 63, .35); overflow-y: auto;
  }
  .nav-open .main-nav { transform: none; }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { z-index: 80; }
  .nav-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .nav-head img { height: 38px; width: auto; }
  .nav-close { display: inline-flex; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav ul a { font-size: 1.05rem; padding: 13px 14px; border-radius: 12px; }
  .nav-cta-mobile { display: inline-flex; margin-top: auto; }

  .hero { padding: 40px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 0; aspect-ratio: 1 / .82; max-width: 620px; width: 100%; margin-inline: auto; }
  .plans, .projects { grid-template-columns: repeat(2, 1fr); }
  .plans-1 { grid-template-columns: minmax(0, 420px); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 520px; width: 100%; margin-inline: auto; }
  .about-badge { right: 12px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process li::after { display: none; }
  .carousel-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  body { font-size: 15.5px; }
  .header-cta span { display: none; }
  .header-cta { width: 44px; height: 44px; padding: 0; }
  .header-cta .ic { width: 22px; height: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { gap: 16px 24px; }
  .hero-stats > div { flex: 1 1 28%; }
  .hero-stats dt { font-size: 1.6rem; }
  .hero-stats dd { font-size: .78rem; }
  .float-chip { font-size: .72rem; padding: 8px 12px; }
  .chip-a { left: 0; bottom: 18px; }
  .chip-b { right: 30%; top: -4px; }
  .phone { border-radius: 22px; padding: 6px; }
  .phone-shot { border-radius: 17px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .tabs { width: 100%; border-radius: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .tab { flex-direction: column; gap: 4px; padding: 10px 6px; border-radius: 14px; font-size: .76rem; line-height: 1.2; white-space: normal; text-align: center; }
  .tab .ic { width: 20px; height: 20px; }
  .pay-strip { border-radius: 18px; }
  .plans, .plans-2, .projects { grid-template-columns: 1fr; }
  .plan { padding: 28px 22px 22px; }
  .values { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; padding: 28px 24px; margin-top: 56px; gap: 22px; }
  .carousel-track { grid-auto-columns: 88%; gap: 14px; }
  .contact-cta { padding: 38px 26px; border-radius: 22px; }
  .contact-cta .btn { width: 100%; }
  .contact-info { grid-template-columns: 1fr; }
  .faq-q { padding: 16px 18px; font-size: .95rem; }
  .faq-a p { padding: 0 18px 18px; }
  .section-head-row .btn { width: 100%; }
  .rating-sum { width: 100%; }
  .filters { flex-direction: column; align-items: stretch; }
  .filter-group { justify-content: center; }
  .filter-select select { width: 100%; }
  .cta-band { padding: 32px 24px; border-radius: 22px; }
  .cta-band .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-btn { width: 56px; height: 56px; }
  .wa-btn .ic { width: 29px; height: 29px; }
}

/* ---------- 404 ---------- */
.page-404 { padding: 90px 0 110px; }
.big-404 { font-family: var(--font-slab); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.hero-actions.center { justify-content: center; }

/* ---------- Página de opinión ---------- */
.review-page { padding: 56px 0 90px; text-align: left; }
.review-box { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: var(--shadow); }
.review-box h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 800; }
.review-box .lead { margin: 12px 0 26px; }
.review-form { display: grid; gap: 18px; }
.fld { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--navy); }
.fld small { font-weight: 500; color: var(--muted); }
.fld input, .fld textarea { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); font: inherit; font-weight: 500; color: var(--ink); background: var(--bg-soft); }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--c2); background: #fff; box-shadow: 0 0 0 4px rgba(10, 108, 245, .12); }
.rate { border: 0; padding: 0; margin: 0; }
.rate legend { font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.rate-stars input { position: absolute; opacity: 0; }
.rate-stars label { color: #d6deec; cursor: pointer; transition: transform .15s, color .15s; }
.rate-stars label .ic { width: 40px; height: 40px; }
.rate-stars label:hover { transform: scale(1.1); }
.rate-stars input:checked ~ label, .rate-stars label:hover, .rate-stars label:hover ~ label { color: #ffb400; }
.rate-stars input:focus-visible + label { outline: 3px solid rgba(10, 108, 245, .4); border-radius: 8px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--c2); margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: flex; gap: 10px; background: #fdecec; color: #a42323; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; font-size: .9rem; }
.form-alert .ic { margin-top: 3px; }
.thanks { text-align: center; display: grid; justify-items: center; gap: 12px; }
.thanks .lead { margin: 0 0 8px; }
.thanks .btn { width: min(100%, 340px); }
.thanks-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; }
.thanks-ic .ic { width: 34px; height: 34px; }
.muted-sm { color: var(--muted); font-size: .9rem; max-width: 420px; }
.grecaptcha-badge { visibility: hidden; }
@media (max-width: 640px) { .review-box { padding: 28px 20px; border-radius: 22px; } .rate-stars label .ic { width: 36px; height: 36px; } }

.rc-note { font-size: .72rem; color: var(--muted); text-align: center; margin: 0; }
.rc-note a { text-decoration: underline; }
