/* ==========================================================================
   mipaginaweb.click — hoja de estilos principal
   ========================================================================== */

:root {
  --bg:        #0d0d0f;
  --bg-2:      #15151a;
  --bg-3:      #1c1c22;
  --bg-deep:   #08080a;
  --line:      #1d1d23;
  --line-2:    #24242b;
  --border:    #2a2a32;
  --border-3:  #34343e;
  --border-4:  #3a3a44;
  --text:      #f2f0ec;
  --muted:     #a6a6ae;
  --dim:       #8b8b93;
  --faint:     #6d6d76;
  --amber:     #f2b73c;
  --orange:    #ff7a45;
  --pad:       clamp(20px, 5vw, 64px);
  --radius:    18px;
  --max:       1440px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--text); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--orange); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--amber); color: var(--bg);
  padding: 12px 18px; border-radius: 0 0 10px 0; z-index: 200; font-size: 15px;
}
.skip:focus { left: 0; color: var(--bg); }

/* ---------- Tipografía ---------------------------------------------------- */

h1 { margin: 0; font-size: clamp(34px, 6vw, 64px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; text-wrap: pretty; }
h2 { margin: 0; font-size: clamp(26px, 4vw, 40px); font-weight: 600; letter-spacing: -.03em; text-wrap: pretty; }
h3 { margin: 0; font-size: clamp(19px, 2.4vw, 22px); font-weight: 600; letter-spacing: -.02em; }

.eye { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.eye--orange { color: var(--orange); }
.mut { color: var(--muted); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.55; margin: 0; text-wrap: pretty; }
.sm { color: var(--dim); font-size: 14px; }

/* ---------- Botones ------------------------------------------------------- */

.cta, .gh, .f, .pb {
  font-family: inherit; cursor: pointer; border: 0; display: inline-block; text-align: center;
}

.cta {
  background: var(--amber); color: var(--bg); font-size: 15px; font-weight: 500;
  padding: 13px 22px; border-radius: 11px; transition: transform .16s ease, background .16s ease;
}
.cta:hover { transform: translateY(-2px); color: var(--bg); background: #ffc75a; }

.cta--lg { font-size: 16px; padding: 16px 28px; }

.gh {
  border: 1px solid var(--border-4); font-size: 15px; padding: 13px 22px; border-radius: 11px;
  background: transparent; color: var(--text); transition: border-color .16s ease, color .16s ease;
}
.gh:hover { border-color: var(--text); color: var(--text); }

.f {
  padding: 11px 20px; border: 1px solid var(--border-3); border-radius: 10px; font-size: 14px;
  color: #c9c9d1; background: transparent;
  transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}
.f:hover { transform: scale(1.06); border-color: var(--text); color: var(--text); }
.f.on { background: var(--text); border-color: var(--text); color: var(--bg); }

/* ---------- Cabecera ------------------------------------------------------ */

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13,13,15,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head__in {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px var(--pad);
}
.brand { font-size: clamp(19px, 2.4vw, 23px); font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.brand:hover { color: var(--text); }

.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav-l { color: var(--dim); font-size: 15px; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; transition: color .18s ease; }
.nav-l:hover { color: var(--text); }
.nav-l.on { color: var(--orange); }
/* El CTA del menú desplegable sólo aparece en móvil */
.nav > .cta { display: none; }

.burger {
  display: none; background: none; border: 1px solid var(--border-4); border-radius: 10px;
  padding: 9px 12px; cursor: pointer; color: var(--text);
}
.burger span { display: block; width: 18px; height: 2px; background: currentColor; margin: 3px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .site-head__in > .cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav .nav-l { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; text-align: left; }
  .nav > .cta { display: inline-block; margin-top: 16px; align-self: flex-start; }
}

/* ---------- Secciones ----------------------------------------------------- */

.sec { padding: clamp(44px, 6vw, 88px) var(--pad); max-width: var(--max); margin: 0 auto; }
.sec--tight { padding-top: 0; }
.sec--head { padding-bottom: clamp(28px, 4vw, 48px); }

.stack { display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 24px); align-items: flex-start; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Tarjetas ------------------------------------------------------ */

.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); padding: 22px; }
.card--pad { padding: clamp(24px, 3.6vw, 44px); }
.card__stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Hero ---------------------------------------------------------- */

.hero { display: flex; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__copy { flex: 1; display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 26px); align-items: flex-start; }
.hero__copy p { max-width: 440px; }
.hero__art { flex: 1.1; }
.hero__art .frame { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; aspect-ratio: 5/3; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero { flex-direction: column; align-items: stretch; } .hero__copy p { max-width: none; } }

/* Hero sin imagen: el texto necesita una medida legible, no todo el ancho */
.hero--solo { padding-bottom: clamp(32px, 4vw, 56px); }
.hero--solo .hero__copy { max-width: 780px; }
.hero--solo .hero__copy p { max-width: 560px; }

/* ---------- Métricas ------------------------------------------------------ */

.stats { display: flex; gap: 32px; border-top: 1px solid var(--line); padding-top: 36px; flex-wrap: wrap; }
.stat__n { font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; letter-spacing: -.03em; }
.stat + .stat { border-left: 1px solid var(--line-2); padding-left: 32px; }
@media (max-width: 520px) { .stat + .stat { border-left: 0; padding-left: 0; } }

/* ---------- Testimonio ---------------------------------------------------- */

.quote { display: flex; gap: clamp(20px, 3vw, 36px); align-items: center; flex-wrap: wrap; }
.quote__av { width: 76px; height: 76px; border-radius: 50%; background: var(--line-2); border: 1px solid var(--border-3); overflow: hidden; flex: none; display: flex; align-items: flex-end; justify-content: center; }
.quote__txt { margin: 0; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.45; font-weight: 500; letter-spacing: -.01em; text-wrap: pretty; }

/* ---------- Banda CTA ----------------------------------------------------- */

.band {
  margin: 0 var(--pad) clamp(56px, 7vw, 96px); padding: clamp(28px, 4.4vw, 56px);
  background: var(--bg-2); border: 1px solid #22222a; border-radius: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 48px);
  max-width: calc(var(--max) - var(--pad) * 2);
}
.band__actions { display: flex; gap: 12px; flex: none; flex-wrap: wrap; }
@media (max-width: 780px) { .band { flex-direction: column; align-items: flex-start; } }
@media (min-width: 1568px) { .band { margin-left: auto; margin-right: auto; } }

/* ---------- Planes -------------------------------------------------------- */

.plan {
  border: 1px solid var(--border); border-radius: 20px; background: var(--bg-2); padding: 28px;
  display: flex; flex-direction: column; gap: 14px; justify-content: space-between;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.plan:hover { transform: translateY(-4px) scale(1.02); border-color: var(--text); box-shadow: 0 20px 40px rgba(0,0,0,.55); }
.plan--feat { background: #1a1416; }
.plan .pn { color: var(--dim); font-size: 14px; transition: color .2s ease; }
.plan:hover .pn { color: var(--orange); }
.plan__price { font-size: clamp(34px, 4.4vw, 44px); font-weight: 600; letter-spacing: -.035em; }
.plan .pb {
  border: 1px solid var(--border-4); background: transparent; color: var(--text); font-size: 15px;
  padding: 13px; border-radius: 11px; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.plan:hover .pb { background: var(--amber); color: var(--bg); border-color: var(--amber); }

/* ---------- Tabla comparativa -------------------------------------------- */

.table-scroll { border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.table-scroll > div { min-width: 620px; }
.row-h { display: flex; padding: 16px 20px; background: var(--bg-3); font-size: 14px; color: var(--dim); }
.row-t { display: flex; padding: 16px 20px; border-top: 1px solid var(--line-2); font-size: 15px; align-items: center; }
.row-h span:first-child, .row-t span:first-child { flex: 2; }
.row-h span, .row-t span { flex: 1; }
.no { color: var(--faint); }

/* ---------- Pasos --------------------------------------------------------- */

.step { display: flex; flex-direction: column; gap: 14px; }
.step__n { width: 40px; height: 40px; border-radius: 10px; background: var(--amber); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 600; }

/* ---------- Portfolio ----------------------------------------------------- */

.p { cursor: pointer; transition: transform .22s ease; background: none; border: 0; padding: 0; text-align: left; font-family: inherit; width: 100%; display: block; }
.p .shot { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color .22s ease, box-shadow .22s ease; aspect-ratio: 4/3; }
.p .shot img { width: 100%; height: 100%; object-fit: cover; }
.p:hover { transform: translateY(-6px) scale(1.02); }
.p:hover .shot { border-color: var(--text); box-shadow: 0 22px 44px rgba(0,0,0,.6), 0 2px 0 rgba(255,255,255,.14) inset; }
.p:hover .p-t { color: var(--orange); }
.p-t { transition: color .22s ease; font-size: 15px; color: var(--dim); padding-top: 14px; display: block; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters .count { margin-left: auto; }
.grid-work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
@media (max-width: 900px) { .grid-work { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; } }
@media (max-width: 560px) { .grid-work { grid-template-columns: 1fr; } }

/* ---------- Lightbox ------------------------------------------------------ */

.lb {
  position: fixed; inset: 0; z-index: 100; background: rgba(6,6,8,.94); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; padding: clamp(16px, 3vw, 40px);
}
.lb[hidden] { display: none; }
.lb__bar { width: 100%; max-width: 1180px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lb__stage {
  width: 100%; max-width: 1180px; max-height: 70vh; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; background: #101015; display: flex; align-items: center; justify-content: center;
}
.lb__stage img { max-width: 100%; max-height: 70vh; width: auto; height: auto; object-fit: contain; }
.lb__thumbs { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.lb__thumbs button { border: 2px solid var(--border); border-radius: 10px; padding: 0; background: none; cursor: pointer; overflow: hidden; width: 118px; height: 76px; }
.lb__thumbs button.on { border-color: var(--amber); }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 620px) { .lb__thumbs button { width: 80px; height: 54px; } }

/* ---------- Blog ---------------------------------------------------------- */

.feature { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: flex; }
.feature__img { flex: 1; min-height: 300px; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { flex: 1; padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
@media (max-width: 820px) { .feature { flex-direction: column; } .feature__img { min-height: 220px; } }

.post { display: flex; gap: 20px; align-items: flex-start; }
.post .shot { width: 200px; height: 130px; flex: none; aspect-ratio: auto; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.post .shot img { width: 100%; height: 100%; object-fit: cover; }
.post__body { display: flex; flex-direction: column; gap: 8px; }
.post__title { font-size: clamp(18px, 2.2vw, 20px); font-weight: 500; transition: color .22s ease; }
.post:hover .post__title { color: var(--orange); }
@media (max-width: 560px) { .post { flex-direction: column; } .post .shot { width: 100%; height: 190px; } }

.blog-layout { display: flex; gap: 32px; align-items: flex-start; }
.blog-layout__main { flex: 2; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.blog-layout__side { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 900px) { .blog-layout { flex-direction: column; } .blog-layout__side { width: 100%; } }

.news { background: var(--amber); color: var(--bg); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.news .in { background: #fff; border-color: #d99f2c; color: var(--bg); }
.news .gh { background: var(--bg); border-color: var(--bg); color: var(--text); align-self: flex-start; }
/* El aviso del formulario cae sobre el ámbar, donde los verdes y rojos claros
   de .form__note apenas se leerían. */
.news .form__note.ok { color: #1f5b2a; }
.news .form__note.err { color: #8a1c08; }

/* ---------- Artículo ------------------------------------------------------ */

.article { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--pad) clamp(56px, 7vw, 96px); }
.article h1 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 20px; }
.article h2 { font-size: clamp(23px, 3vw, 30px); margin: 0 0 16px; }
.article p { margin-bottom: 18px; }
.article p.lede { font-size: clamp(17px, 2.2vw, 20px); }
.article .gap { margin-bottom: 40px; }
.article__hero { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; margin-bottom: 44px; }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article ul { font-size: clamp(15px, 1.6vw, 17px); margin: 0 0 40px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.back { margin-bottom: 28px; display: inline-block; color: var(--dim); font-size: 15px; }

/* ---------- Formularios --------------------------------------------------- */

.in {
  border: 1px solid #2f2f38; border-radius: 11px; background: #101015; color: var(--text);
  font-family: inherit; font-size: 15px; padding: 14px 16px; width: 100%;
}
.in::placeholder { color: var(--faint); }
.in:invalid:not(:placeholder-shown) { border-color: #a3453a; }
textarea.in { resize: vertical; }

.form { flex: 1.5; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form__row { display: flex; gap: 16px; }
@media (max-width: 560px) { .form__row { flex-direction: column; } }
.contact-layout { display: flex; gap: 32px; align-items: flex-start; }
.contact-layout__side { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 860px) { .contact-layout { flex-direction: column; } .contact-layout__side { width: 100%; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--dim); }
.check input { margin-top: 3px; }
.form__note { font-size: 14px; margin: 0; }
.form__note.ok { color: #7fd18c; }
.form__note.err { color: #ff9a86; }

/* ---------- Pie ----------------------------------------------------------- */

.site-foot { background: var(--bg-deep); border-top: 1px solid var(--line); padding: clamp(36px, 5vw, 56px) var(--pad) 32px; }
.site-foot__in { max-width: var(--max); margin: 0 auto; }
.site-foot__cols { display: flex; gap: clamp(28px, 5vw, 64px); align-items: flex-start; flex-wrap: wrap; }
.site-foot__brand { flex: 1; min-width: 220px; }
.site-foot__col { display: flex; flex-direction: column; gap: 10px; }
.site-foot__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--faint);
}
.site-foot__bottom a { color: var(--faint); }
.site-foot__legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Utilidades ---------------------------------------------------- */

.is-hidden { display: none !important; }
.amber-note { font-size: 15px; color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Títulos que cambian de color al pasar por su tarjeta (sin heredar tamaño) */
.hov { transition: color .22s ease; }
.p:hover .hov { color: var(--orange); }

/* Casilla de consentimiento dentro del bloque amarillo de la newsletter */
.news__check { color: var(--bg); font-size: 13px; line-height: 1.45; }
.news__check a { color: var(--bg); text-decoration: underline; }
.news__check a:hover { color: var(--bg); }

/* Campo trampa anti-spam: invisible para personas, presente en el DOM para bots.
   No se usa display:none porque algunos bots lo detectan y lo saltan. */
.trampa {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
