/* Portafolio de webs de ejemplo · El Mostrador Web
   Colores y letras de la marca (..\..\marca\MARCA.md). */
:root {
  --bg: #F6F1E7;
  --surface: #FFFDF8;
  --surface-2: #EFE8DA;
  --border: #E3DACB;
  --text: #1A1A17;
  --text-2: #4A4740;
  --text-3: #6B665C;
  --accent: #1F5A43;
  --accent-dark: #164534;
  --accent-light: #E5EFE8;
  --terracota: #C8553D;
  --mostaza: #E9B44C;
  --grad: linear-gradient(120deg, #1F5A43 0%, #2F7A5A 100%);
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16,18,40,.04), 0 4px 16px rgba(16,18,40,.06);
  --shadow-md: 0 2px 6px rgba(16,18,40,.05), 0 12px 32px rgba(16,18,40,.10);
  --gutter: clamp(1rem, 4vw, 4.5rem);
  --top-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font-body); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ----- Cabecera ----- */
.top { position: sticky; top: 0; z-index: 50; height: var(--top-h); display: flex; align-items: center; gap: 1.5rem;
  padding: 0 var(--gutter); background: rgba(246,241,231,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; min-width: 0; }
.logo-ico { flex: none; width: 38px; height: 38px; }
.logo-full { font: 800 1.2rem/1.1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-full i { font-style: normal; font-weight: 500; color: var(--terracota); }
.nav { display: none; gap: 1.5rem; }
.nav a { text-decoration: none; color: var(--text-2); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--accent); }

/* ----- Botones ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.4rem;
  background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 999px; text-decoration: none;
  font: 600 1rem/1.2 var(--font-display); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-light); border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .9rem; white-space: nowrap; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ----- Secciones ----- */
main > section { padding: clamp(2.5rem, 7vw, 5rem) var(--gutter); }
.eyebrow { font: 600 .8rem/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.section-head { max-width: 46rem; margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin-bottom: .6rem; }
.section-head p:last-child { color: var(--text-2); }

/* ----- Portada ----- */
.hero { padding-top: clamp(2.5rem, 8vw, 5.5rem) !important; }
.hero h1 { font-size: clamp(2.1rem, 7.5vw, 4.2rem); font-weight: 700; letter-spacing: -.02em; max-width: 16ch; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--text-2); max-width: 40rem; margin: 1.25rem 0 1.75rem; }
.facts { list-style: none; margin: 2.25rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--border); display: grid; gap: .75rem; color: var(--text-2); }
.facts strong { color: var(--text); }

/* ----- Pestañas por tipo de negocio ----- */
.chips { position: sticky; top: var(--top-h); z-index: 40; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 1.5rem; padding: .75rem var(--gutter); background: rgba(246,241,231,.95); backdrop-filter: blur(10px); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 500 .95rem/1.2 var(--font-body); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip-n { font-size: .78rem; background: var(--surface-2); color: var(--text-3); border-radius: 999px; padding: .1rem .45rem; }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.chip[aria-pressed="true"] .chip-n { background: rgba(255,255,255,.18); color: #fff; }

/* ----- Tarjetas ----- */
.group-title { font-size: 1.15rem; margin: 2rem 0 .9rem; color: var(--text-2); font-weight: 600; }
.group-title:first-child { margin-top: 0; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c9d9cf; }
.card-img { aspect-ratio: 8 / 5; background: var(--surface-2); border-bottom: 1px solid var(--border); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.25rem 1.25rem; flex: 1; }
.card-kind { font: 600 .75rem/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card-body h3 { font-size: 1.3rem; }
.card-text { color: var(--text-2); font-size: .95rem; }
.card-go { margin-top: auto; padding-top: .8rem; font: 600 .95rem/1 var(--font-display); color: var(--accent); }
.card-go::after { content: ' →'; }

/* ----- Tipos de web ----- */
.tipos-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.tipo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; }
.tipo h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.tipo p { color: var(--text-2); font-size: .97rem; }
.tipos-nota { margin-top: 1.25rem; padding: 1.1rem 1.25rem; background: var(--accent-light); border-radius: var(--radius); color: var(--text-2); }
.tipos-nota strong { color: var(--text); }

/* ----- Pasos ----- */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.pasos li { position: relative; padding-left: 3.4rem; }
.pasos span { position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--grad); color: #fff; font: 700 1rem/1 var(--font-display); }
.pasos h3 { font-size: 1.1rem; margin-bottom: .3rem; padding-top: .35rem; }
.pasos p { color: var(--text-2); font-size: .97rem; }

/* ----- Preguntas ----- */
.faq details { border-bottom: 1px solid var(--border); max-width: 46rem; }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font: 600 1.05rem/1.3 var(--font-display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--text-2); padding: 0 0 1.2rem; }

/* ----- Contacto ----- */
main > .contacto { text-align: center; }
.contacto h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: .75rem; }
.contacto > p { color: var(--text-2); max-width: 36rem; margin: 0 auto 1.5rem; }
.contacto .cta { justify-content: center; }
.aviso { padding: .9rem 1.2rem; border: 2px dashed #D9A400; background: #FFF8DC; color: #5C4500; border-radius: var(--radius); font-weight: 500; }

/* ----- Pie ----- */
.foot { border-top: 1px solid var(--border); padding: 1.75rem var(--gutter) 2.5rem; text-align: center; color: var(--text-3); font-size: .9rem; display: grid; gap: .35rem; }
.foot strong { color: var(--text-2); }

/* ----- Pantallas más anchas ----- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tipos-grid { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .logo { margin-right: 0; }
  .nav { margin: 0 auto; }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tipos-grid { grid-template-columns: repeat(4, 1fr); }
  .pasos { grid-template-columns: repeat(4, 1fr); }
  .chips { position: static; flex-wrap: wrap; overflow: visible; background: none; backdrop-filter: none; }
}
/* A todo el ancho: en pantallas grandes caben más tarjetas por fila y la portada va en dos columnas */
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); column-gap: clamp(2rem, 5vw, 6rem); align-items: center; }
  .hero > * { grid-column: 1; }
  .hero h1 { font-size: clamp(3.2rem, 4.6vw, 5.6rem); max-width: 18ch; }
  .hero .lead { margin-bottom: 2rem; }
  .hero .facts { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 0; border: 0; grid-template-columns: 1fr; gap: 1rem; }
  .hero .facts li { padding: 1.3rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); font-size: 1.05rem; }
  .hero .facts strong { font: 600 1.1rem/1.3 var(--font-display); }
  main > .faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 6rem); align-items: start; }
  .faq .section-head { grid-column: 1 / -1; }
  .faq details { max-width: none; }
}
@media (min-width: 1700px) {
  .section-head h2 { font-size: 2.8rem; }
  .tipo { padding: 1.9rem; }
  .tipo h3 { font-size: 1.35rem; }
  .tipo p, .pasos p { font-size: 1.05rem; }
  .pasos h3 { font-size: 1.25rem; }
}
@media (max-width: 420px) {
  .top { gap: .6rem; }
  .logo { gap: .4rem; }
  .logo-ico { width: 30px; height: 30px; }
  .logo-full { font-size: .98rem; overflow: visible; }
  .top .btn-sm { padding: .4rem .8rem; font-size: .84rem; }
}

/* ----- Visor de una demo (ver.html) ----- */
.visor-body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: #1B1C22; }
.visor-bar { flex: none; height: 52px; display: flex; align-items: center; gap: .75rem; padding: 0 .75rem; background: var(--text); color: #fff; }
.visor-volver { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 .85rem; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff; text-decoration: none; font: 600 .9rem/1 var(--font-display); white-space: nowrap; }
.visor-volver:hover { background: rgba(255,255,255,.22); }
.visor-info { min-width: 0; margin-right: auto; display: flex; flex-direction: column; line-height: 1.2; }
.visor-info strong { font: 600 .95rem/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visor-info span { font-size: .78rem; color: #B9BAC6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visor-vistas { display: none; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; }
.visor-vistas button { min-height: 34px; padding: 0 .9rem; border: 0; border-radius: 999px; background: transparent; color: #D5D6E0; font: 500 .85rem/1 var(--font-body); cursor: pointer; }
.visor-vistas button[aria-pressed="true"] { background: #fff; color: var(--text); }
.visor-sola { display: none; color: #D5D6E0; font-size: .85rem; white-space: nowrap; }
.visor-bar .btn-sm { min-height: 36px; }
.visor-caja { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: stretch; }
.visor-caja iframe { width: 100%; height: 100%; border: 0; background: #fff; }
@media (min-width: 900px) {
  .visor-vistas { display: flex; }
  .visor-sola { display: inline; }
  .visor-caja[data-vista="movil"] { align-items: center; padding: 16px; }
  .visor-caja[data-vista="movil"] iframe { width: 390px; height: min(100%, 800px); border-radius: 28px; box-shadow: 0 0 0 10px #000, 0 30px 80px rgba(0,0,0,.5); }
}
@media (max-width: 520px) {
  .visor-bar .btn-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card-img img, .btn { transition: none; }
}
@media (max-width: 359px) {
  .logo-full { font-size: .92rem; }
  .logo-full i { display: none; }
}
