* {
  box-sizing: border-box;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  margin: 0;
  background: #f1efe8;
  display: flex;
  justify-content: center;
  padding: 24px 12px;
}

.telefono {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 28px;
  padding: 14px;
  border: 1px solid #e3e1d8;
}

.puntos {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.punto {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d3d1c7;
}

.punto.activo {
  background: #d4537e;
}

#pantalla {
  background: #faf9f5;
  border-radius: 20px;
  min-height: 540px;
  padding: 24px 18px;
}

h2 {
  margin: 0 0 4px;
  font-weight: 500;
}

.ayuda {
  color: #5f5e5a;
  font-size: 13px;
  margin: 0 0 18px;
}

.ayuda-chica {
  font-size: 12px;
  color: #888780;
  margin: 0 0 20px;
}

label {
  font-size: 13px;
  color: #5f5e5a;
  display: block;
  margin-bottom: 4px;
}

input,
select {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #d3d1c7;
  padding: 0 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

input[type="range"] {
  padding: 0;
  height: auto;
  margin-bottom: 6px;
}

.fila-radio {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #5f5e5a;
  margin-bottom: 4px;
}

.fila-radio span:last-child {
  color: #2c2c2a;
  font-weight: 500;
}

.grilla-fotos {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.foto-vacia {
  aspect-ratio: 1;
  border-radius: 14px;
  background: #f1efe8;
  border: 1.5px dashed #b4b2a9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.boton-principal {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: none;
  background: #2c2c2a;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.boton-secundario {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #5f5e5a;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
}

.lista-personas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.tarjeta-persona {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid #ece9df;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f4c0d1;
  color: #72243e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  flex-shrink: 0;
}

.info-persona {
  flex: 1;
}

.nombre-persona {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
}

.distancia-persona {
  margin: 0;
  font-size: 12px;
  color: #5f5e5a;
}

.boton-like {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f4c0d1;
  color: #72243e;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.boton-like:disabled {
  background: #d3d1c7;
  color: #5f5e5a;
}

.centrado {
  text-align: center;
  padding: 60px 0;
}

/* --- Cabecera descubrir --- */
.cabecera-descubrir {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.boton-chats {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #f4c0d1;
  font-size: 18px;
  cursor: pointer;
}

.boton-volver {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #5f5e5a;
  cursor: pointer;
  padding: 0;
}

/* --- Chat --- */
.cabecera-chat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ece9df;
  margin-bottom: 10px;
}

.nombre-chat {
  font-weight: 500;
  font-size: 15px;
}

.burbuja-contenedor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 340px;
  padding: 4px 0 10px;
}

.burbuja {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.burbuja p { margin: 0; }

.burbuja.mia {
  background: #2c2c2a;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.burbuja.suya {
  background: #f1efe8;
  color: #2c2c2a;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.input-chat {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ece9df;
}

.input-chat input {
  flex: 1;
  margin: 0;
  height: 38px;
}

.boton-enviar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #2c2c2a;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

/* --- Foto en tarjeta de persona --- */
.avatar-foto {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* --- Perfil de otro usuario --- */
.foto-grande-contenedor {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
}

.foto-grande {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foto-contador {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 20px;
}

.foto-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foto-nav-izq { left: 10px; }
.foto-nav-der { right: 10px; }

/* --- Hora en burbujas --- */
.burbuja-hora {
  display: block;
  font-size: 10px;
  opacity: 0.6;
  margin-top: 3px;
  text-align: right;
}

/* --- Aviso de seguridad --- */

/* --- Aviso en chat --- */

/* =====================================================
   SPLASH SCREEN
   Idéntico en Android Chrome, Samsung Internet, iOS Safari
   y navegadores de escritorio. Todo el texto es HTML — el
   SVG contiene únicamente gráficos.
   ===================================================== */

.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(460px, 78vh, 540px);
  background: linear-gradient(180deg, #fff5f7 0%, #ffe8f0 100%);
  border-radius: 20px;
  padding: clamp(16px, 4vw, 28px) 16px clamp(24px, 5vw, 32px);
}

.splash-svg {
  width: min(88%, 320px);
  height: auto;
  display: block;
  flex-shrink: 0;
}

.splash-texto {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  animation: splash-aparecer 10s ease-out infinite;
}

.splash-nombre {
  margin: 0;
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(34px, 9vw, 52px);
  color: #c8001e;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.splash-linea {
  border: none;
  border-top: 0.5px solid rgba(200, 0, 30, 0.25);
  width: min(65%, 180px);
  margin: 5px 0 4px;
}

.splash-tagline {
  margin: 0;
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(11px, 3vw, 13px);
  color: #c0506a;
  letter-spacing: 0.08em;
}

.splash-ornamento {
  margin: 4px 0 0;
  font-family: Georgia, serif;
  font-size: 13px;
  color: #e8002d;
  opacity: 0.28;
}

.boton-splash {
  margin-top: clamp(16px, 4vw, 22px);
  width: min(200px, 62%);
  height: 46px;
  border-radius: 23px;
  border: none;
  background: #e8002d;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232, 0, 45, 0.3);
  opacity: 0;
  animation: splash-aparecer 10s ease-out 1;
  animation-fill-mode: forwards;
}

.boton-splash:active {
  transform: scale(0.97);
}

/* =====================================================
   ANIMACIONES DEL SPLASH
   Ciclo de 10s: corazones entran y chocan (~0-3.3s),
   estalla la chispa (~3.3-4.1s), aparece el texto y
   queda estático el resto del ciclo. Los corazones,
   rayos y partículas se repiten en loop decorativo;
   el texto y el botón aparecen una sola vez y quedan
   fijos (sin parpadeo).
   ===================================================== */

@keyframes entrarIzq {
  0%        { transform: translateX(-90px); opacity: 0; }
  8%        { opacity: 1; }
  25%       { transform: translateX(0); }
  29%       { transform: translateX(5px); }
  33%, 100% { transform: translateX(0); opacity: 1; }
}

@keyframes entrarDer {
  0%        { transform: translateX(90px); opacity: 0; }
  8%        { opacity: 1; }
  25%       { transform: translateX(0); }
  29%       { transform: translateX(-5px); }
  33%, 100% { transform: translateX(0); opacity: 1; }
}

@keyframes chispaAparecer {
  0%, 24%   { opacity: 0; transform: scale(0); }
  28%       { opacity: 1; transform: scale(1.4); }
  32%       { transform: scale(0.88); }
  36%       { transform: scale(1.06); }
  41%, 47%  { transform: scale(1); opacity: 1; }
  48%, 100% { opacity: 0; transform: scale(0.7); }
}

@keyframes rayosAparecer {
  0%, 24%  { opacity: 0; }
  28%, 39% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@keyframes particulaEmitir {
  0%, 25%   { opacity: 0; transform: translate(0, 0) scale(0); }
  31%       { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1); }
  44%, 100% { opacity: 0; transform: translate(calc(var(--tx) * 1.8), calc(var(--ty) * 1.8)) scale(0.2); }
}

@keyframes splash-aparecer {
  0%, 30%   { opacity: 0; transform: translateY(10px); }
  38%, 100% { opacity: 1; transform: translateY(0); }
}

.cor-izq { animation: entrarIzq 10s cubic-bezier(.4,0,.2,1) infinite; transform-origin: 170px 100px; }
.cor-der { animation: entrarDer 10s cubic-bezier(.4,0,.2,1) infinite; transform-origin: 170px 100px; }
.chispa  { animation: chispaAparecer 10s ease-out infinite; transform-origin: 170px 100px; }
.rayos   { animation: rayosAparecer 10s ease-out infinite; }

.particulas circle {
  animation: particulaEmitir 10s ease-out infinite;
  transform-origin: 170px 100px;
}

.p1 { --tx: -28px; --ty: -30px; animation-delay: 0s; }
.p2 { --tx:  30px; --ty: -26px; animation-delay: .04s; }
.p3 { --tx: -34px; --ty:   8px; animation-delay: .09s; }
.p4 { --tx:  36px; --ty:  12px; animation-delay: .07s; }
.p5 { --tx:   0px; --ty: -38px; animation-delay: .02s; }
.p6 { --tx: -20px; --ty:  30px; animation-delay: .11s; }
.p7 { --tx:  22px; --ty:  32px; animation-delay: .05s; }

@media (prefers-reduced-motion: reduce) {
  .splash-texto, .boton-splash,
  .cor-izq, .cor-der, .chispa, .rayos, .particulas circle {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
