/* Lo común de las páginas del sitio (la de descarga tiene el suyo). Los colores son los de la app
   (res/values/colors.xml). */
:root {
  color-scheme: light;
  --oscuro: #638491;
  --acento: #CC7A38;
  --titulo: #213843;
  --texto: #3E5561;
  --secundario: #58707B;
  --superficie: #FFFFFF;
  --borde: rgba(70, 95, 107, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--texto); line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(#D3E0E4, #F1F6F7 600px) #F1F6F7;
}
h1, h2, h3 { color: var(--titulo); line-height: 1.2; margin: 0; }
a { color: inherit; }
.ancho { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Portada */
.portada {
  color: #fff; padding: 56px 0 64px;
  background: linear-gradient(rgba(35, 45, 70, .70), rgba(30, 70, 85, .90)), url(/portada.jpg) center / cover #2C4F68;
}
.portada .ancho { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; text-align: center; }
.portada .logo { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.portada .marca { font-size: 17px; font-weight: 600; opacity: .9; margin: 16px 0 8px; }
.portada h1 { color: #fff; font-size: clamp(30px, 6vw, 46px); max-width: 720px; margin: 0 auto 14px; text-wrap: balance; }
.portada p { font-size: 18px; margin: 0 auto 28px; max-width: 560px; color: rgba(255, 255, 255, .88); }
.portada .fotos { display: none; }

.tiendas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tienda {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 250px; padding: 14px 22px; border-radius: 14px; font-size: 17px;
  font-weight: 600; text-decoration: none; color: #fff; background: var(--acento);
}
.tienda svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.tienda:hover { filter: brightness(1.08); }

/* Los números de Play */
.cifras {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin: -28px auto 0; position: relative; max-width: 860px;
}
.cifra {
  background: var(--superficie); border: 1px solid var(--borde); border-radius: 18px;
  padding: 16px 10px; text-align: center; box-shadow: 0 10px 28px rgba(33, 56, 67, .10);
}
.cifra b { display: block; font-size: 24px; color: var(--titulo); }
.cifra span { font-size: 14px; color: var(--secundario); }

/* Secciones con captura */
.funcion {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: 72px 0; border-bottom: 1px solid var(--borde);
}
.funcion:nth-of-type(even) .fotos { order: -1; }
.etiqueta {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acento);
}
.funcion h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 14px; text-wrap: balance; }
.funcion p { font-size: 17px; margin: 0 0 12px; }
.fotos { display: flex; justify-content: center; gap: 16px; }
.telefono {
  width: 250px; max-width: 46%; aspect-ratio: 540 / 1135; border-radius: 26px; overflow: hidden;
  border: 6px solid #1E2A30; background: #1E2A30; box-shadow: 0 18px 40px rgba(33, 56, 67, .28);
}
.fotos .telefono:only-child { max-width: 70%; }
.telefono img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fotos .telefono + .telefono { margin-top: 48px; }

/* Los íconos de la app, pintados con el color de la página */
.icono {
  display: inline-block; width: 22px; height: 22px; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}

/* Y además */
.mas { padding: 72px 0; }
.mas > h2, .preguntas > h2 { font-size: clamp(26px, 4vw, 34px); text-align: center; margin-bottom: 32px; }
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: 18px; padding: 20px; }
.tarjeta .icono { width: 34px; height: 34px; color: var(--oscuro); }
.tarjeta h3 { font-size: 18px; margin: 12px 0 6px; }
.tarjeta p { margin: 0; font-size: 15px; color: var(--secundario); }

/* Preguntas frecuentes */
.preguntas { padding: 0 0 72px; max-width: 760px; margin: 0 auto; }
.preguntas details {
  background: var(--superficie); border: 1px solid var(--borde); border-radius: 16px;
  padding: 0 20px; margin-bottom: 10px;
}
.preguntas summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
  font-size: 17px; font-weight: 600; color: var(--titulo);
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--acento);
}
.preguntas details[open] summary::after { content: "−"; }
.preguntas details p { margin: 0 0 18px; font-size: 16px; }

/* Cierre */
.cierre { text-align: center; padding: 64px 0; color: #fff; background: linear-gradient(135deg, #524A7A, #2A6F83); }
.cierre h2 { color: #fff; font-size: clamp(26px, 4vw, 34px); margin-bottom: 10px; }
.cierre p { margin: 0 0 26px; color: rgba(255, 255, 255, .85); font-size: 17px; }
footer { padding: 28px 0 40px; font-size: 14px; color: var(--secundario); text-align: center; }
footer p { margin: 0 0 8px; }
footer nav { display: flex; justify-content: center; gap: 20px; margin-top: 12px; }

/* Páginas de texto: privacidad y soporte */
.encabezado { padding: 20px 0; background: #2C4F68; }
.encabezado a { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; }
.encabezado img { width: 40px; height: 40px; border-radius: 10px; }
.texto { max-width: 760px; margin: 0 auto; padding: 40px 16px 56px; }
.texto h1 { font-size: clamp(28px, 5vw, 36px); margin-bottom: 6px; }
.texto .fecha { color: var(--secundario); margin: 0 0 28px; }
.texto h2 { font-size: 20px; margin: 30px 0 10px; }
.texto p, .texto li { font-size: 16px; }
.texto .contacto {
  background: var(--superficie); border: 1px solid var(--borde); border-radius: 18px; padding: 20px; margin: 24px 0;
}
.texto .contacto p { margin: 0; }
.texto .contacto a { color: var(--acento); font-weight: 600; }

@media (min-width: 900px) {
  .portada .ancho { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); text-align: left; }
  .portada h1, .portada p { margin-left: 0; }
  .portada .tiendas { justify-content: flex-start; }
  .portada .fotos { display: flex; }
  .portada .telefono { max-width: 280px; width: 100%; }
  /* En computadora el satélite animado ya está en la portada. */
  .funcion .solo-celular { display: none; }
  .funcion .solo-celular + .telefono { margin-top: 0; }
}

@media (max-width: 760px) {
  .funcion { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 56px 0; text-align: center; }
  .funcion:nth-of-type(even) .fotos { order: 0; }
  .tienda { width: 100%; min-width: 0; }
  .cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
