/* Página para que los clientes envíen fotos (se abre con el QR de «Fotos de clientes»). */
* { box-sizing: border-box; }
html, body { margin: 0; background: #1a1014; color: #f4dde5; font-family: 'Poppins', Arial, sans-serif; }
body { min-height: 100vh; min-height: 100dvh; }
.fotos-lienzo { position: fixed; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.fotos-pagina { position: relative; z-index: 1; width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.fotos-cabecera { padding: 28px 22px; border: 1px solid rgba(255, 127, 179, .3); border-radius: 30px; background: linear-gradient(180deg, rgba(46, 31, 36, .9), rgba(29, 18, 22, .9)); text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); animation: fotos-subir .8s ease both 2.4s; }
.fotos-logo { width: min(170px, 46vw); height: auto; }
.fotos-kicker { display: block; margin: 10px 0 4px; color: #ff7fb3; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fotos-cabecera h1, .fotos-modal-caja h2, .fotos-galeria h2 { margin: 0 0 10px; color: #fff; font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
.fotos-cabecera h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.fotos-cabecera p { max-width: 560px; margin: 0 auto 20px; color: #c9b3bd; line-height: 1.65; font-size: .95rem; }
.fotos-boton-grande { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: min(360px, 100%); min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #c44c79, #a83b65); color: #fff; font-family: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 10px 26px rgba(168, 59, 101, .4); }
.fotos-boton-grande:disabled { opacity: .6; cursor: wait; }
.fotos-boton-borde { width: min(360px, 100%); min-height: 46px; margin-top: 10px; border: 1px solid rgba(255, 127, 179, .4); border-radius: 999px; background: transparent; color: #fff; font-family: inherit; font-weight: 600; cursor: pointer; }
.fotos-galeria { margin-top: 26px; text-align: center; animation: fotos-subir .8s ease both 2.6s; }
.fotos-galeria h2 { font-size: 1.35rem; }
.fotos-galeria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fotos-galeria-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1px solid rgba(255, 127, 179, .25); }
.fotos-pie { margin-top: 24px; text-align: center; }
.fotos-pie a { color: #ff9cc4; }

/* Bienvenida */
.fotos-bienvenida { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle at 50% 45%, #4a1a30, #12090d 70%); animation: fotos-desvanecer .7s ease forwards 2.2s; pointer-events: none; }
.fotos-aro { position: absolute; width: 240px; height: 240px; border-radius: 50%; border: 2px solid rgba(233, 196, 106, .8); box-shadow: 0 0 40px rgba(233, 196, 106, .45), inset 0 0 30px rgba(255, 127, 179, .35); animation: fotos-aro 1.6s ease-out both; }
.fotos-bienvenida-logo { position: relative; width: 170px; height: auto; animation: fotos-logo 1.2s cubic-bezier(.2, .9, .3, 1.3) both .2s; }
.fotos-bienvenida-texto { position: relative; margin: 140px 0 0; color: #ffe6f0; font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; font-style: italic; text-align: center; animation: fotos-subir .8s ease both .9s; }
@keyframes fotos-aro { from { transform: scale(.2); opacity: 0; } 60% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes fotos-logo { from { transform: scale(.3) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fotos-subir { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fotos-desvanecer { to { opacity: 0; visibility: hidden; } }

/* Ventanita */
.fotos-modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(10, 5, 8, .75); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.fotos-modal[hidden] { display: none; }
.fotos-modal-caja { position: relative; width: min(520px, 100%); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); overflow-y: auto; padding: 26px 20px 22px; border: 1px solid rgba(233, 196, 106, .45); border-radius: 28px; background: linear-gradient(180deg, #33222a, #1d1216); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); animation: fotos-pop .35s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes fotos-pop { from { opacity: 0; transform: translateY(24px) scale(.95); } to { opacity: 1; transform: none; } }
.fotos-cerrar { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 1px solid rgba(255, 127, 179, .3); border-radius: 50%; background: rgba(0, 0, 0, .3); color: #fff; font-size: 1.35rem; cursor: pointer; }
.fotos-modal-caja form { display: flex; flex-direction: column; }
.fotos-modal-caja label { margin: 10px 0 4px; color: #fff; font-size: .84rem; font-weight: 600; }
.fotos-modal-caja input:not([type=checkbox]), .fotos-modal-caja textarea { width: 100%; padding: 12px; border: 1px solid #51464a; border-radius: 12px; background: #191214; color: #f4dde5; font-family: inherit; font-size: 1rem; }
.fotos-modal-caja input:focus, .fotos-modal-caja textarea:focus { outline: none; border-color: #ff7fb3; }
.fotos-elegir { display: flex !important; flex-direction: column; align-items: center; gap: 4px; margin: 6px 0 0 !important; padding: 22px 12px; border: 2px dashed rgba(255, 127, 179, .5); border-radius: 20px; background: rgba(255, 127, 179, .06); text-align: center; cursor: pointer; }
.fotos-elegir i { color: #ff7fb3; font-size: 2rem; }
.fotos-elegir small { color: #b7a3ac; font-weight: 400; }
.fotos-previas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.fotos-previas div { position: relative; }
.fotos-previas img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.fotos-previas button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #d94d77; color: #fff; font-size: .8rem; line-height: 22px; cursor: pointer; }
.fotos-consentimiento { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; color: #c9b3bd !important; font-size: .8rem !important; }
.fotos-consentimiento input { margin-top: 3px; accent-color: #a83b65; }
.fotos-estado { min-height: 1.3em; margin: 10px 0; color: #ffd1e3; font-size: .85rem; text-align: center; }
.fotos-estado.error { color: #ff9cb8; }
.fotos-form .fotos-boton-grande, #fotos-enviar { width: 100%; }
.fotos-exito { text-align: center; }
.fotos-exito p { color: #c9b3bd; line-height: 1.6; }
.fotos-exito-check { width: 78px; height: 78px; margin: 10px auto 14px; border-radius: 50%; background: linear-gradient(135deg, #2e9e5b, #57c785); color: #fff; font-size: 2.6rem; line-height: 78px; animation: fotos-logo .7s cubic-bezier(.2, .9, .3, 1.4) both; }
[hidden] { display: none !important; }
html.cake-ligero .fotos-modal { -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) { .fotos-bienvenida { display: none; } .fotos-cabecera, .fotos-galeria { animation: none; } }
