@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --fondo: #fff1f6;
  --texto: #2f2926;
  --muted: #776b64;
  --rojo: #d95b59;
  --amarillo: #f3c35b;
  --azul: #5d93d6;
  --crema: #fff4ea;
  --rosa: #ffddea;
  --borde: rgba(178, 97, 128, 0.22);
  --sombra: rgba(120, 65, 91, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Quicksand', system-ui, sans-serif;
  color: var(--texto);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 170, 196, 0.35), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(255, 219, 235, 0.42), transparent 28%),
    radial-gradient(circle at 72% 86%, rgba(243, 195, 91, 0.20), transparent 32%),
    linear-gradient(180deg, #fff1f6 0%, #fff8fb 48%, #fff0f5 100%);
}

main { position: relative; z-index: 2; }

.fondo-flores {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.fondo-flores span {
  position: absolute;
  font-size: clamp(38px, 7vw, 96px);
  opacity: 0.24;
  animation: flotar 8s ease-in-out infinite;
}

.fondo-flores span:nth-child(1) { left: 5%; top: 8%; color: var(--rojo); font-size: clamp(42px, 7vw, 92px); }
.fondo-flores span:nth-child(2) { left: 18%; top: 18%; color: var(--azul); animation-delay: .4s; font-size: clamp(30px, 5vw, 68px); }
.fondo-flores span:nth-child(3) { left: 34%; top: 7%; color: var(--amarillo); animation-delay: .8s; font-size: clamp(34px, 5vw, 72px); }
.fondo-flores span:nth-child(4) { right: 28%; top: 15%; color: var(--rojo); animation-delay: 1.2s; font-size: clamp(28px, 4vw, 58px); }
.fondo-flores span:nth-child(5) { right: 8%; top: 9%; color: var(--azul); animation-delay: 1.6s; font-size: clamp(44px, 7vw, 96px); }

.fondo-flores span:nth-child(6) { left: 8%; top: 38%; color: var(--amarillo); animation-delay: 2s; font-size: clamp(28px, 4vw, 56px); }
.fondo-flores span:nth-child(7) { left: 24%; top: 44%; color: var(--rojo); animation-delay: 2.4s; font-size: clamp(34px, 5vw, 74px); }
.fondo-flores span:nth-child(8) { right: 23%; top: 38%; color: var(--azul); animation-delay: 2.8s; font-size: clamp(32px, 5vw, 70px); }
.fondo-flores span:nth-child(9) { right: 6%; top: 43%; color: var(--amarillo); animation-delay: 3.2s; font-size: clamp(30px, 5vw, 64px); }
.fondo-flores span:nth-child(10) { left: 47%; top: 28%; color: var(--rojo); animation-delay: 3.6s; font-size: clamp(24px, 4vw, 50px); }

.fondo-flores span:nth-child(11) { left: 4%; bottom: 18%; color: var(--azul); animation-delay: 4s; font-size: clamp(38px, 6vw, 84px); }
.fondo-flores span:nth-child(12) { left: 19%; bottom: 8%; color: var(--rojo); animation-delay: 4.4s; font-size: clamp(28px, 5vw, 62px); }
.fondo-flores span:nth-child(13) { left: 38%; bottom: 16%; color: var(--amarillo); animation-delay: 4.8s; font-size: clamp(34px, 5vw, 76px); }
.fondo-flores span:nth-child(14) { right: 34%; bottom: 8%; color: var(--azul); animation-delay: 5.2s; font-size: clamp(30px, 5vw, 66px); }
.fondo-flores span:nth-child(15) { right: 12%; bottom: 18%; color: var(--rojo); animation-delay: 5.6s; font-size: clamp(42px, 7vw, 92px); }

.fondo-flores span:nth-child(16) { left: 52%; top: 5%; color: var(--azul); animation-delay: 6s; font-size: clamp(24px, 4vw, 52px); }
.fondo-flores span:nth-child(17) { left: 58%; bottom: 28%; color: var(--amarillo); animation-delay: 6.4s; font-size: clamp(26px, 4vw, 58px); }
.fondo-flores span:nth-child(18) { right: 45%; top: 57%; color: var(--rojo); animation-delay: 6.8s; font-size: clamp(24px, 4vw, 54px); }
.fondo-flores span:nth-child(19) { left: 13%; top: 66%; color: var(--azul); animation-delay: 7.2s; font-size: clamp(26px, 4vw, 60px); }
.fondo-flores span:nth-child(20) { right: 18%; top: 68%; color: var(--amarillo); animation-delay: 7.6s; font-size: clamp(28px, 4vw, 64px); }

@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

.pantalla {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.pantalla.activa {
  display: flex;
  animation: aparecer .55s ease both;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(12px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tarjeta {
  width: min(92vw, 620px);
  background: rgba(255, 252, 253, .84);
  border: 1px solid var(--borde);
  border-radius: 34px;
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 24px 70px var(--sombra);
  backdrop-filter: blur(16px);
  text-align: center;
}

.tarjeta-login { width: min(92vw, 430px); position: relative; }

.sello {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--rosa);
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: .82rem;
  color: var(--muted);
  transform: rotate(3deg);
}

.logo {
  width: min(58vw, 180px);
  margin: 4px auto 10px;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(92, 63, 43, .13));
}

h1, h2 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.1;
  margin: 8px 0 14px;
}

h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.7rem); }

p {
  line-height: 1.65;
  font-size: 1.05rem;
}

.subtitulo, .mini {
  color: var(--muted);
}

.mini {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

label {
  display: block;
  text-align: left;
  margin-top: 22px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--muted);
}

input {
  width: 100%;
  border: 1px solid var(--borde);
  background: rgba(255, 255, 255, .92);
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  outline: none;
}

input:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(93, 147, 214, .14);
}

.boton {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 24px;
  margin-top: 18px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.boton:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(92, 63, 43, .16);
}

.boton:active { transform: scale(.98); }

.principal {
  width: 100%;
  color: white;
  background: linear-gradient(135deg, var(--rojo), #c84662);
}

.grande {
  color: white;
  background: linear-gradient(135deg, var(--rojo), var(--azul));
  padding: 16px 28px;
}

.secundario {
  color: var(--texto);
  background: var(--crema);
  border: 1px solid var(--borde);
}

.error {
  min-height: 24px;
  color: var(--rojo);
  font-size: .92rem;
  font-weight: 600;
}

.tarjeta-emocional {
  background:
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,221,234,.58));
}

.historia {
  width: min(94vw, 760px);
}

.top-historia {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.contador {
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--borde);
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
}

.icono {
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  color: var(--texto);
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--borde);
}

.marco-ilustracion {
  background: rgba(255,255,255,.55);
  border: 1px solid var(--borde);
  border-radius: 36px;
  padding: clamp(14px, 3vw, 26px);
  box-shadow: 0 22px 55px rgba(92, 63, 43, .13);
}

.ilustracion {
  display: block;
  width: min(86vw, 450px);
  max-height: 345px;
  object-fit: contain;
  margin: auto;
}

.texto-carrusel {
  margin: 18px auto 0;
  width: min(92vw, 650px);
  padding: clamp(22px, 4vw, 32px);
}

.carta {
  text-align: left;
  max-width: 700px;
}

.carta h2, .carta .mini {
  text-align: center;
}

.carta .boton {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.video-final { width: min(94vw, 840px); }

.video-contenedor {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 26px;
  overflow: hidden;
  background: #1f1b19;
  margin: 20px 0;
  border: 1px solid var(--borde);
}

.video-contenedor iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: relative;
  z-index: 2;
}

.video-placeholder { display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  color: #fff8f1;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(217,91,89,.25), transparent 40%),
    #1f1b19;
}

@media (max-width: 560px) {
  .pantalla { padding: 18px; }
  .tarjeta { border-radius: 28px; }
  .boton { width: 100%; }
  .top-historia .boton { width: 46px; }
}


/* ===== Pantalla de acceso limpia con imagen PNG ===== */

#pantallaAcceso {
  background: #ffffff;
}

#pantallaAcceso .tarjeta-login {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 55px rgba(120, 65, 91, 0.12);
  border: 1px solid rgba(178, 97, 128, 0.16);
}

.foto-inicio {
  width: min(68vw, 240px);
  height: min(68vw, 240px);
  object-fit: cover;
  display: block;
  margin: 0 auto 22px;
  border-radius: 32px;
  border: 6px solid #fff4f8;
  box-shadow: 0 18px 42px rgba(120, 65, 91, 0.18);
}

.frase-inicio {
  max-width: 340px;
  margin: 0 auto 22px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  line-height: 1.22;
  color: #2f2926;
}

#pantallaAcceso input {
  margin-top: 0;
  text-align: center;
}

#pantallaAcceso input::placeholder {
  color: #b18898;
  opacity: 1;
}


/* ===== Ajuste final: video local MP4 ===== */

.video-local {
  width: 100%;
  height: 100%;
  display: block;
  background: #1f1b19;
  border: 0;
  object-fit: contain;
}

.video-contenedor {
  display: block;
}

/* Pantalla inicial completamente blanca */
#pantallaAcceso {
  background: #ffffff;
}

/* Flores decorativas visibles también sobre fondo blanco */
.fondo-flores span {
  opacity: 0.24;
}
