/* Josia Brew · página de presentación. Colores del kit de marca: café #563522, crema #FFF3DF, ámbar #F3B65B. */

@font-face {
  font-family: "Arvo";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("marca/Arvo-Bold.ttf") format("truetype");
}

:root {
  --cafe: #563522;
  --cafe-oscuro: #3d2517;
  --crema: #fff3df;
  --crema-suave: #fffaf1;
  --ambar: #f3b65b;
  --ambar-oscuro: #d9953a;
  --texto: #2b1c12;
  --texto-suave: #6b5546;
  --borde: #ecdcc4;
  --verde: #5c8a4f;
  --rojo: #b5452f;
  --radio: 16px;
  --sombra: 0 10px 30px rgba(61, 37, 23, .10);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--crema-suave);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}

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

h1, h2, h3 { font-family: "Arvo", Georgia, serif; font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

a { color: inherit; }

.contenedor { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7em 1.3em; border-radius: 999px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.boton:hover { transform: translateY(-1px); }
.boton:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; }
.boton-ambar { background: var(--ambar); color: var(--cafe-oscuro); box-shadow: 0 4px 14px rgba(243, 182, 91, .35); }
.boton-ambar:hover { background: #f6c477; }
.boton-claro { background: rgba(255, 243, 223, .12); color: var(--crema); border: 1.5px solid rgba(255, 243, 223, .35); }
.boton-claro:hover { background: rgba(255, 243, 223, .2); }
.boton-borde { color: var(--crema); border: 1.5px solid rgba(255, 243, 223, .5); padding: .45em 1.1em; font-size: .95rem; }
.boton-borde:hover { background: rgba(255, 243, 223, .12); }
.boton-grande { font-size: 1.1rem; padding: .85em 1.6em; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 10; background: var(--cafe); color: var(--crema); box-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.cabecera-fila { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo img { width: 150px; height: auto; }
.menu { display: flex; gap: 24px; margin-left: auto; }
.menu a { text-decoration: none; opacity: .85; font-size: .97rem; }
.menu a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Portada */
.portada {
  background:
    radial-gradient(1200px 500px at 85% 10%, rgba(243, 182, 91, .22), transparent 60%),
    linear-gradient(180deg, var(--cafe) 0%, var(--cafe-oscuro) 100%);
  color: var(--crema);
  padding: 72px 0 96px;
}
.portada-texto { text-align: center; }
.antetitulo { color: var(--ambar); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .8em; }
.portada h1 { max-width: 17em; margin-left: auto; margin-right: auto; }
.bajada { font-size: 1.15rem; opacity: .9; max-width: 36em; margin-left: auto; margin-right: auto; }
.acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* Pantallas reales: computador al fondo y celular delante */
.escena { position: relative; margin-top: 56px; padding-right: 150px; }
.escena figure { margin: 0; }
.escena figcaption { margin-top: 14px; font-size: .95rem; color: rgba(255, 243, 223, .82); }
.escena figcaption strong { display: inline-block; margin-right: .5em; color: var(--ambar); font-family: "Arvo", Georgia, serif; }
.escena figcaption span { transition: opacity .3s ease; }

.pc { max-width: 900px; }
.pc-barra {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  background: #efe4d3; border-radius: 12px 12px 0 0;
}
.pc-barra i { width: 11px; height: 11px; border-radius: 50%; background: #d6c3a8; }
.pc-barra span { margin-left: 14px; padding: 2px 14px; border-radius: 999px; background: #fffaf1; color: var(--texto-suave); font-size: .78rem; }
.pc .pantallas { border-radius: 0 0 12px 12px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); aspect-ratio: 1400 / 856; }

.cel { position: absolute; right: 0; bottom: -28px; width: 250px; }
.cel-marco {
  padding: 10px; background: #1d130c; border-radius: 36px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .07);
}
.cel .pantallas { border-radius: 27px; aspect-ratio: 391 / 844; }
.cel figcaption { text-align: center; }

.pantallas { position: relative; overflow: hidden; background: var(--crema-suave); }
.pantallas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .8s ease; }
.pantallas img.activa { opacity: 1; }

/* Secciones */
.seccion { padding: 84px 0; }
.seccion h2 { text-align: center; }
.seccion-bajada { text-align: center; color: var(--texto-suave); font-size: 1.08rem; max-width: 40em; margin: 0 auto 44px; }
.seccion-crema { background: var(--crema); }
.seccion-cafe { background: var(--cafe); color: var(--crema); }

.tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 26px; box-shadow: var(--sombra); }
.tarjeta p { color: var(--texto-suave); margin: 0; font-size: .98rem; }
.tarjeta-icono { width: 46px; height: 46px; border-radius: 12px; background: var(--crema); display: grid; place-items: center; margin-bottom: 16px; }
.tarjeta-icono svg { width: 26px; height: 26px; fill: none; stroke: var(--cafe); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.dos-columnas h2, .dos-columnas .seccion-bajada { text-align: left; margin-left: 0; margin-bottom: 0; }
.lista-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lista-check li { position: relative; padding: 14px 16px 14px 50px; background: #fff; border: 1px solid var(--borde); border-radius: 12px; }
.lista-check li::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ambar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233d2517' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.pasos { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pasos li { position: relative; padding: 26px; border-radius: var(--radio); background: #fff; border: 1px solid var(--borde); }
.pasos p { color: var(--texto-suave); margin: 0; font-size: .98rem; }
.paso-numero { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--cafe); color: var(--crema); font-family: "Arvo", Georgia, serif; margin-bottom: 14px; }

/* Recuadros: se levantan al pasar el mouse (solo donde hay mouse) */
.tarjeta, .pasos li, .lista-check li { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tarjeta-icono, .paso-numero { transition: background-color .25s ease, color .25s ease, transform .25s ease; }
@media (hover: hover) {
  .tarjeta:hover, .pasos li:hover, .lista-check li:hover {
    transform: translateY(-5px);
    border-color: var(--ambar);
    box-shadow: 0 18px 40px rgba(61, 37, 23, .16);
  }
  .tarjeta:hover .tarjeta-icono { background: var(--ambar); transform: scale(1.06); }
  .pasos li:hover .paso-numero { background: var(--ambar); color: var(--cafe-oscuro); transform: scale(1.06); }
}

/* Aparecen con un fundido al bajar por la página (la clase la pone el script) */
.aparece { opacity: 0; }
.aparece.visible { animation: aparecer .6s ease both; }
@keyframes aparecer {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

.contacto { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contacto img { margin-bottom: 14px; }
.contacto p { opacity: .9; font-size: 1.1rem; margin-bottom: 26px; }
.contacto .boton { white-space: normal; word-break: break-all; }

/* Pie */
.pie { background: var(--cafe-oscuro); color: rgba(255, 243, 223, .75); font-size: .92rem; padding: 22px 0; }
.pie-fila { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pie a { text-underline-offset: 3px; }

/* Tablet */
@media (max-width: 900px) {
  .dos-columnas { grid-template-columns: 1fr; }
  .portada { padding: 52px 0 64px; }
  .escena { padding-right: 0; }
  .pc { max-width: none; }
  .cel { position: static; width: 240px; margin: 40px auto 0; }
  .dos-columnas h2, .dos-columnas .seccion-bajada { text-align: center; margin-left: auto; margin-right: auto; }
  .tarjetas { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: 1fr; }
}

/* Celular */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .contenedor { padding: 0 16px; }
  .menu { display: none; }
  .cabecera-fila { justify-content: space-between; height: 60px; }
  .logo img { width: 128px; }
  .seccion { padding: 60px 0; }
  .tarjetas { grid-template-columns: 1fr; }
  .escena { margin-top: 40px; }
  .pc-barra { height: 26px; }
  .pc-barra span { display: none; }
  .escena figcaption { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton, .pantallas img, .tarjeta, .pasos li, .lista-check li, .tarjeta-icono, .paso-numero { transition: none; }
  .tarjeta:hover, .pasos li:hover, .lista-check li:hover { transform: none; }
  .boton:hover { transform: none; }
}
