/* Plantilla Fábrica de Webs. La marca del cliente se cambia SOLO en :root. */
:root {
  --color-fondo: #fbf8f3;
  --color-texto: #2b2420;
  --color-suave: #6b5f57;
  --color-marca: #7a4a2b;
  --color-marca-texto: #ffffff;
  --color-borde: #e4dcd2;
  --color-whatsapp: #1f7a4d;
  --fuente: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ancho: 68rem;
  --radio: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--fuente); color: var(--color-texto); background: var(--color-fondo); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--color-marca); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--color-marca); outline-offset: 2px; }

.saltar { position: absolute; left: -999px; }
.saltar:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 1rem; }

.cabecera { border-bottom: 1px solid var(--color-borde); background: var(--color-fondo); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--color-texto); }
.menu { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.menu a { text-decoration: none; color: var(--color-texto); }

.portada { padding: 4rem 0 3rem; }
.portada h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; margin: 0 0 1rem; }
.portada p { font-size: 1.15rem; color: var(--color-suave); max-width: 40rem; }

.boton { display: inline-block; background: var(--color-marca); color: var(--color-marca-texto); padding: .8rem 1.4rem; border-radius: var(--radio); text-decoration: none; font-weight: 600; border: 0; font: inherit; cursor: pointer; }
.boton:hover { filter: brightness(1.1); }

.seccion { padding: 3rem 0; border-top: 1px solid var(--color-borde); }
.seccion h2 { font-size: 1.75rem; margin-top: 0; }

.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.tarjeta { background: #fff; border: 1px solid var(--color-borde); border-radius: var(--radio); padding: 1.25rem; }
.tarjeta h3 { margin-top: 0; }
.precio { font-weight: 700; color: var(--color-marca); }

.formulario { display: grid; gap: 1rem; max-width: 36rem; }
.formulario label { font-weight: 600; display: block; margin-bottom: .25rem; }
.formulario input, .formulario textarea { width: 100%; padding: .7rem; border: 1px solid var(--color-borde); border-radius: .5rem; font: inherit; background: #fff; }
.formulario .casilla { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.formulario .casilla input { width: auto; margin-top: .35rem; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nota { font-size: .9rem; color: var(--color-suave); }

.pie { border-top: 1px solid var(--color-borde); padding: 2rem 0 6rem; font-size: .95rem; color: var(--color-suave); }
.pie .contenedor { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }

.whatsapp { position: fixed; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .5rem; background: var(--color-whatsapp); color: #fff; padding: .8rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.2); z-index: 5; }
.whatsapp svg { width: 1.3rem; height: 1.3rem; }

.legal { max-width: 46rem; padding: 2rem 0 4rem; }

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

/* ---- Componentes v0.2 ---- */
.aviso-demo { background: var(--color-texto); color: var(--color-fondo); text-align: center; font-size: .85rem; padding: .45rem 1rem; }
.aviso-demo a { color: inherit; }
.portada .contenedor { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .portada .contenedor { grid-template-columns: 1.2fr 1fr; } }
.ilustracion { width: 100%; max-width: 28rem; justify-self: center; }
.etiqueta { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-marca); margin-bottom: .5rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.boton-sec { display: inline-block; padding: .8rem 1.4rem; border-radius: var(--radio); border: 2px solid var(--color-marca); color: var(--color-marca); text-decoration: none; font-weight: 600; }
.datos { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; color: var(--color-suave); font-size: .95rem; list-style: none; padding: 0; }
.carta-grupo { margin-bottom: 2rem; }
.carta-grupo h3 { border-bottom: 2px solid var(--color-borde); padding-bottom: .4rem; }
.item { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed var(--color-borde); align-items: baseline; }
.item p { margin: .15rem 0 0; color: var(--color-suave); font-size: .95rem; }
.item .precio { white-space: nowrap; margin: 0; }
.pedir { font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dos-col { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .dos-col { grid-template-columns: 1fr 1fr; } }
.lista-check { list-style: none; padding: 0; }
.lista-check li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; }
.lista-check li::before { content: "✓"; position: absolute; left: 0; color: var(--color-marca); font-weight: 700; }
.horario { width: 100%; border-collapse: collapse; }
.horario td { padding: .4rem 0; border-bottom: 1px solid var(--color-borde); }
.horario td:last-child { text-align: right; }
.franja { background: var(--color-marca); color: var(--color-marca-texto); }
.franja .contenedor { padding-block: 2.5rem; text-align: center; }
.franja .boton { background: var(--color-marca-texto); color: var(--color-marca); }
.franja h2 { margin-top: 0; }
.credito { opacity: .8; }
.credito a { color: inherit; }

/* Celular con indicativo y contador del mensaje */
.contador { margin: .25rem 0 0; font-size: .85rem; color: var(--color-suave); text-align: right; }
.contador-cerca { color: #b3261e; font-weight: 600; }
.formulario input:user-invalid, .formulario textarea:user-invalid { border-color: #b3261e; }

/* Selector de país con bandera: el <select> nativo va encima, invisible (accesible y cómodo en celular) */
.telefono { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.pais { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 30px 0 12px; border: 1px solid var(--color-borde); border-radius: .5rem; background: #fff; min-height: 48px; }
.pais::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--color-suave); border-bottom: 2px solid var(--color-suave); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pais-bandera { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.pais-codigo { font-size: 16px; font-weight: 600; }
.pais select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.pais:focus-within { border-color: #2340ff; box-shadow: 0 0 0 3px rgba(35, 64, 255, .2); }
#telefono_pais_otro { margin-top: 8px; }
.error { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: #b3261e; font-weight: 600; }
.con-error { border-color: #b3261e !important; }
