/* 11CI Media — portafolio ligero para enviar a un cliente */

:root {
  --bg: #f3f6f9;
  --paper: #ffffff;
  --ink: #142033;
  --muted: #5b6b80;
  --line: #e2e8f0;
  --blue: #0a63c9;
  --blue-dark: #084f9f;
  --blue-soft: #e7f1fb;
  --shadow: 0 18px 40px rgba(20, 32, 51, 0.06);
  --radius: 18px;
  --wrap: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.05rem;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); }

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { transform: translateY(12px); }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; }

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.15rem, 5vw, 3.45rem);
  font-weight: 680;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

h3 { margin: 0 0 8px; font-size: 1.25rem; }

.lead { margin: 0; color: var(--muted); font-size: 1.08rem; }

.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head p:last-child { margin: 0; color: var(--muted); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand img { width: 168px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav a:not(.btn):hover { color: var(--blue); }

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.btn-primary {
  background: var(--blue);
  color: white;
}

.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: #c5d0de; }

.hero { padding: 56px 0 28px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 36px;
  align-items: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 22px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.92rem;
  color: #314258;
}

.profile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  text-align: center;
}

.profile img {
  width: min(240px, 70%);
  margin: 0 auto 14px;
  border-radius: 50%;
}

.profile-name { margin: 0; font-size: 1.35rem; font-weight: 750; letter-spacing: -0.03em; }
.profile-role { margin: 4px 0 14px; color: var(--muted); }

.profile-links {
  display: grid;
  gap: 6px;
}

.profile-links a { font-weight: 650; overflow-wrap: anywhere; }

.profile-place {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.services, .work, .steps, .contact { padding: 36px 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 22px;
  min-height: 100%;
}

.service-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 750;
  letter-spacing: 0.04em;
}

.service-grid p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.preview-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--blue-soft);
  border-radius: 14px;
  color: #16365c;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.work-list { display: grid; gap: 14px; }

.sheet {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
}

.sheet-body { padding: 8px 10px 8px 0; }
.sheet-meta { margin: 0 0 6px; color: var(--muted); font-size: 0.92rem; }

.pill {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sheet-body p { margin: 0 0 12px; }

.tech-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.tech li {
  padding: 4px 9px;
  border-radius: 8px;
  background: #f4f7fb;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 650;
}

.sheet-link {
  display: inline-flex;
  font-weight: 750;
}

.sheet-link.is-waiting { color: var(--muted); font-weight: 600; }

.mock {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d7e0ea;
  background: #f7fafc;
  min-height: 168px;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: #eef3f8;
  border-bottom: 1px solid #e1e8f0;
}

.mock-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5d0dc;
}

.mock-bar em {
  margin-left: 6px;
  font-style: normal;
  font-size: 0.72rem;
  color: #7b8ba0;
}

.mock-stage { padding: 12px; }

.mock-stage b,
.mock-stage s {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #d5e4f5;
  margin-bottom: 8px;
}

.mock-stage b { width: 58%; background: var(--blue); height: 10px; }
.mock-stage b.wide { width: 78%; }
.mock-stage s { width: 92%; background: #d7e1ec; height: 6px; }

.tiles, .cols, .news { display: grid; gap: 6px; margin-top: 10px; }
.tiles { grid-template-columns: 1fr 1fr; }
.cols { grid-template-columns: 1fr 1fr 1fr; }
.news { grid-template-columns: 1.3fr 1fr; }

.tiles span,
.cols span,
.news span {
  display: block;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(#ffffff, #e7eef6);
  border: 1px solid #e1e8f0;
}

.news span:first-child { grid-row: span 2; height: 90px; background: #d7e8f8; }

.empty {
  margin: 8px 0 0;
  color: var(--muted);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-list li {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step-list strong { display: block; margin-bottom: 6px; }
.step-list span { color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-list a {
  font-weight: 750;
  font-size: 1.08rem;
  text-decoration: none;
}

.form { display: grid; gap: 12px; }

.form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid #d5deea;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
  color: var(--ink);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid #b9d4f5;
  border-color: var(--blue);
  background: white;
}

.form-note { margin: 0; color: var(--blue-dark); font-size: 0.95rem; }

.footer {
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner img { width: 36px; height: auto; }
.footer-inner p { margin: 0; }
.footer-inner p:last-child { margin-left: auto; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-grid,
  .service-grid,
  .step-list,
  .contact-grid { grid-template-columns: 1fr 1fr; }

  .service-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .menu-btn { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav.is-open { display: flex; }

  .nav a:not(.btn) { padding: 12px 4px; }

  .nav-cta { margin-top: 8px; }

  .hero { padding-top: 32px; }
  .hero-grid,
  .sheet,
  .step-list,
  .contact-grid,
  .service-grid { grid-template-columns: 1fr; }

  .sheet-body { padding: 4px 6px 8px; }
  .contact-grid { padding: 22px 18px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Portafolio de proyectos reales */
.preview-note { display: none; }
.work-list.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.project-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: #b9cce2;
  box-shadow: 0 20px 42px rgba(20,32,51,.10);
}
.project-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.project-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dbe8f5, #f5f8fb);
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease;
}
.project-card:hover .project-cover img { transform: scale(1.035); }
.cover-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(10, 30, 55, .88);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}
.cover-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #35516e;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, #e6eff8, #f9fbfd);
}
.sheet-body { padding: 18px 19px 20px; }
.sheet-meta { font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.project-domain { margin: -3px 0 12px; color: #718198; font-size: .82rem; overflow-wrap: anywhere; }
.project-summary { color: var(--muted); font-size: .94rem; line-height: 1.55; margin: 0 0 14px; }
.project-card .sheet-link { margin-top: auto; font-size: .9rem; }

/* Ficha detallada del proyecto */
.project-dialog { display: none; position: fixed; inset: 0; z-index: 100; padding: 24px; align-items: center; justify-content: center; }
.project-dialog.is-open { display: flex; }
.dialog-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 36, .78); backdrop-filter: blur(5px); }
.dialog-panel {
  position: relative; z-index: 1; width: min(940px, 100%); max-height: 92vh;
  overflow: auto; background: #fff; border-radius: 20px; box-shadow: 0 30px 90px #07142666;
}
.dialog-close {
  position: absolute; top: 13px; right: 13px; z-index: 3; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.96); color: var(--ink);
  font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 3px 14px #0b1a2a20;
}
.dialog-cover {
  min-height: 180px; display: flex; align-items: end; padding: 24px 32px;
  color: white; background: linear-gradient(125deg, #0a63c9, #77a9d8);
}
.dialog-cover-label { font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.dialog-content { padding: 30px 34px 36px; }
.dialog-content h2 { margin: 0 0 5px; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.dialog-domain { display: inline-block; margin-bottom: 16px; font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.dialog-summary { max-width: 780px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.dialog-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; padding: 22px 0; margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dialog-columns h3, .gallery-head h3 { margin: 0 0 10px; font-size: 1.08rem; }
.dialog-columns p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.7; }
.dialog-tech { margin: 0 0 10px; }
.tech-disclaimer { font-size: .82rem !important; color: #75849a !important; }
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 28px 0 15px; }
.gallery-head .kicker { margin-bottom: 5px; }
.gallery-head h3 { margin: 0; }
.gallery-head > span { color: #7b899c; font-size: .68rem; font-weight: 750; letter-spacing: .08em; }
.project-gallery { display: grid; grid-template-columns: 1.35fr 1fr  .72fr; gap: 12px; align-items: start; margin-bottom: 24px; }
.gallery-shot { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #f4f7fa; }
.gallery-shot img { width: 100%; height: 180px; object-fit: cover; object-position: top; }
.gallery-shot:nth-child(3) img { height: 180px; }
.gallery-shot figcaption { padding: 9px 10px; color: #627188; font-size: .75rem; font-weight: 650; }
.gallery-unavailable { min-height: 130px; display: grid; place-items: center; color: #6c7c90; font-size: .8rem; }
.dialog-visit { margin-top: 3px; }
.dialog-lock { overflow: hidden; }

@media (max-width: 980px) {
  .work-list.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .work-list.project-grid { grid-template-columns: 1fr; }
  .project-cover { aspect-ratio: 16 / 9; }
  .dialog-columns { grid-template-columns: 1fr; gap: 18px; }
  .dialog-content { padding: 25px 22px 28px; }
  .project-dialog { padding: 10px; }
  .dialog-panel { max-height: 96vh; }
  .dialog-cover { min-height: 140px; padding: 20px; }
  .project-gallery { grid-template-columns: 1fr 1fr; }
  .gallery-shot:nth-child(3) { grid-column: 1 / -1; max-width: 55%; }
  .gallery-shot img, .gallery-shot:nth-child(3) img { height: 150px; }
  .gallery-head { display: block; }
  .gallery-head > span { display: block; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card, .project-cover img { transition: none; }
}

/* Galería con capturas locales de varias páginas por proyecto */
.project-gallery {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.gallery-shot img,
.gallery-shot:nth-child(3) img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: top center;
}
.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  border: 1px dashed #cbd7e5;
  border-radius: 12px;
  color: var(--muted);
  background: #f8fafc;
  font-size: .92rem;
}
.screenshot-unavailable {
  display: grid;
  place-items: center;
  min-height: 180px;
}
@media (max-width: 800px) {
  .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-shot:nth-child(3) { grid-column: auto; max-width: none; }
  .gallery-shot img,
  .gallery-shot:nth-child(3) img { height: 170px; }
}
