:root {
  --navy: #073b59;
  --ink: #102a3a;
  --aqua: #1bbcc0;
  --paper: #f5f7f6;
  --line: #dce7e7;
  --muted: #657d87;
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: hidden; overscroll-behavior-x: none; background: var(--paper); }
body { min-width: 320px; margin: 0; overflow-x: hidden; overscroll-behavior-x: none; font-family: Inter, system-ui, sans-serif; background: var(--paper); color: var(--ink); }
button { font: inherit; cursor: pointer; }

.top { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(20px, calc((100% - 1400px) / 2)); background: var(--navy); color: #fff; }
/* Símbolo del kit de marca (fondo transparente): la propia guía de marca
   dice de usarlo así -sin el logotipo completo- para kiosk UI y formatos
   pequeños como esta cabecera. */
.brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-size: 20px; letter-spacing: -.01em; }
.brand img { height: 34px; width: auto; display: block; }
.brand-text { font-weight: 700; }
.brand-text b { font-weight: 400; opacity: .82; }
.top nav { display: flex; gap: 10px; align-items: center; }
.top button { border: 0; background: none; color: #fff; text-decoration: none; font-size: 14px; font-weight: 750; }
.nav-login, .nav-signup, .language, .help { min-height: 44px; padding: 0 18px; border: 1px solid #ffffffaa !important; border-radius: 999px !important; }
.nav-login { background: #062f49 !important; box-shadow: 0 6px 12px #001a2935; }
.nav-memories { min-height: 44px; padding: 0 9px !important; color: #d7fbf7 !important; }
.memories { padding: 0 9px; }
.language { min-width: 68px; padding: 0 13px; }
.help { display: grid; place-items: center; width: 44px; padding: 0; border: 0 !important; background: #fff !important; color: var(--navy) !important; font-size: 20px !important; }
#cartButton { display: none; }
.view { min-height: calc(100svh - 76px); }

.hero { display: grid; place-items: center; padding: 35px 20px; background: #fff; }
.card { width: min(100%, 650px); padding: 46px; border-radius: 29px; background: #fffffff4; box-shadow: 0 22px 55px #00233866; text-align: center; }
.welcome { width: min(100%, 720px); padding: 36px 10px; text-align: center; }
.welcome h1 { margin: 12px 0; font-size: clamp(39px, 5vw, 62px); letter-spacing: -3px; line-height: 1.02; }
.welcome p { max-width: 610px; margin: 0 auto; color: #3b515e; font-size: clamp(19px, 2.5vw, 27px); line-height: 1.35; }
.face-launch { display: block; padding: 0; margin: 25px auto 28px; border: 0; border-radius: 50%; background: none; }
.face-launch:focus-visible { outline: 4px solid #1bbcc0; outline-offset: 5px; }
.face-launch:hover .face-icon { transform: scale(1.05); }
.face-icon { display: block; width: 156px; height: 156px; transition: transform .18s ease; }
.welcome .primary { width: min(100%, 650px); min-height: 72px; border-radius: 999px; font-size: 23px; }
.camera-symbol { margin-right: 8px; font-size: 25px; vertical-align: -2px; }
.welcome .textbtn { margin-top: 12px; }
.brand-hero { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 4px; }
.brand-hero img { height: 32px; width: auto; }
.brand-hero span { font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #08799c; }
.how-steps { display: flex; justify-content: center; gap: 10px; margin: 20px auto 0; max-width: 560px; }
.how-steps > div { flex: 1; padding: 12px 8px; border-radius: 14px; background: #f0f7f7; }
.how-steps b { display: block; width: 26px; height: 26px; margin: 0 auto 6px; border-radius: 50%; background: var(--aqua); color: #073b59; font-size: 13px; line-height: 26px; font-weight: 900; }
.how-steps span { display: block; font-size: 12.5px; color: #3b515e; line-height: 1.25; }
.eyebrow { color: #078896; text-transform: uppercase; font-size: 11px; font-weight: 850; letter-spacing: 1px; }
.card h1, .gallery h1, .cart h1 { margin: 13px 0; font-size: clamp(35px, 5vw, 52px); letter-spacing: -2.6px; line-height: 1.04; }
.card p, .guide p { color: var(--muted); line-height: 1.5; }
.primary { min-height: 56px; padding: 0 26px; border: 0; border-radius: 16px; background: var(--navy); color: #fff; font-weight: 850; box-shadow: 0 10px 22px #073b593b; }
.textbtn { margin: 15px; border: 0; background: none; color: #08799c; font-weight: 800; }

.notfound-card .primary { border-radius: 999px; min-height: 60px; font-size: 17px; }
.tips-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 26px 0 10px; }
.tip { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 148px; }
.tip-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #e6f7f7; font-size: 28px; }
.tip p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
@media (max-width: 480px) { .tips-row { gap: 14px; } .tip { width: 118px; } .tip-icon { width: 54px; height: 54px; font-size: 24px; } }

.camera { display: grid; grid-template-columns: 1.08fr .92fr; gap: 26px; max-width: 1350px; margin: auto; padding: 28px; }
.preview { position: relative; min-height: 490px; overflow: hidden; border-radius: 28px; background: #143d50; }
.preview video, .preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview canvas { display: none; }
.round { position: absolute; z-index: 1; border: 0; border-radius: 50%; background: #fff; }
.close { top: 18px; left: 18px; width: 46px; height: 46px; font-size: 27px; }
.snap { bottom: 22px; left: calc(50% - 37px); width: 74px; height: 74px; border: 7px solid #fff; background: var(--aqua); transition: opacity .15s ease, transform .15s ease; }
.snap.disabled, .snap:disabled { opacity: .4; background: #9fb4b8; pointer-events: none; }
.guide .consent-legal { margin-top: 18px !important; }
.guide .consent-check { margin-top: 12px; }
.flip { right: 18px; bottom: 31px; width: 52px; height: 52px; font-size: 22px; }
.guide { display: flex; flex-direction: column; justify-content: center; }
.guide h1 { margin: 12px 0; font-size: clamp(35px, 5vw, 56px); letter-spacing: -2.7px; line-height: 1.03; }

.group { display: flex; align-items: center; gap: 16px; padding: 16px; margin-top: 23px; border-radius: 19px; background: #e5f8f6; }
.people {
  display: grid;
  place-items: center;
  flex: 0 0 104px;
  width: 104px;
  height: 76px;
  color: transparent;
  font-size: 0;
  animation: breathe 1.6s ease-in-out infinite;
}
.people img { width: 102px; height: 74px; }
.group b { display: block; margin-bottom: 3px; }
@keyframes breathe { 50% { transform: scale(1.055); } }

.search { display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, #073b59, #0d758a); }
.search .card { max-width: 600px; }
.ring { width: 88px; height: 88px; margin: 25px auto; border: 6px solid #d9f2f0; border-top-color: var(--aqua); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.gallery, .cart { padding: 38px max(20px, calc((100% - 1220px) / 2)) 110px; }
.gallery.has-gallery-checkout { padding-bottom: 112px; }
.gallery-checkout { position: fixed; z-index: 20; right: max(16px, calc((100vw - 1180px) / 2)); bottom: max(13px, env(safe-area-inset-bottom)); left: max(16px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px 12px 18px; border: 1px solid #0d7990; border-radius: 19px; background: linear-gradient(115deg,#063957,#087b8e); color: #fff; box-shadow: 0 18px 38px #00283d66; }
.gallery-checkout span { display: block; color: #bdeeed; font-size: 12px; font-weight: 750; }
.gallery-checkout strong { display: block; margin-top: 2px; font-size: 22px; letter-spacing: -.7px; }
.gallery-checkout .primary { flex: 0 0 auto; min-width: 174px; min-height: 48px; margin: 0; padding-inline: 20px; background: #ffdb45; color: #073b59; box-shadow: none; }
.account-memories { width: min(100%, 820px); margin: 0 auto; }
.account-memories > p { color: var(--muted); line-height: 1.5; }
.memory-card { margin-top: 18px; padding: 25px; border: 1px solid #cce3e4; border-radius: 22px; background: #fff; box-shadow: 0 10px 25px #073b5912; }
.memory-card h2 { margin: 7px 0; font-size: 25px; letter-spacing: -1px; }
.memory-card > p { color: var(--muted); }
.memory-card .primary { display: inline-grid; place-items: center; text-decoration: none; }
.pickup-qr { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 14px; border-radius: 17px; background: #e8f8f6; }
.pickup-qr img { width: 104px; height: 104px; padding: 5px; border-radius: 12px; background: #fff; }
.pickup-qr p { margin: 5px 0 0; color: #42636d; line-height: 1.4; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.people-picker { margin-top: 20px; }
.person-list { display: flex; align-items: center; gap: 13px; min-height: 64px; }
.person-avatar { position: relative; display: inline-grid; place-items: center; width: 62px; height: 62px; overflow: visible; border: 2px solid #d5eeee; border-radius: 50%; background: #e8f8f7; color: #087f91; font-size: 12px; font-weight: 850; }
.person-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.remove-person { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #54717a; font-size: 19px; line-height: 1; box-shadow: 0 2px 7px #073b5930; }
.add-person { display: inline-grid; place-items: center; width: 62px; height: 62px; border: 3px dashed #b5bfc4; border-radius: 50%; background: #fff; color: #69777d; font-size: 36px; font-weight: 400; line-height: 1; }
.add-person:hover, .add-person:focus-visible { border-color: #087f91; background: #e5f8f6; color: #087f91; outline: none; }
.tabs { display: flex; gap: 8px; }
.tabs button { padding: 10px 15px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-weight: 750; }
.tabs .on { background: var(--navy); color: #fff; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; background: #dceced; }
.photo img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; touch-action: manipulation; -webkit-user-drag: none; user-select: none; }
.photo button { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fffd; font-size: 24px; }
.report-icon { top: 12px !important; right: auto !important; left: 12px; width: 38px !important; height: 38px !important; font-size: 17px !important; color: #7a2b1b; }

.lightbox { position: fixed; z-index: 15; inset: 0; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 20px; background: rgba(5, 27, 42, .92); }
.lightbox-close { position: absolute; top: 18px; right: 18px; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #ffffff2a; color: #fff; font-size: 27px; }
.lightbox-nav { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%; background: #ffffff2a; color: #fff; font-size: 30px; }
.lightbox-nav:disabled { opacity: .3; }
.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }
.lightbox-img { max-width: min(92vw, 900px); max-height: 72vh; border-radius: 18px; object-fit: contain; box-shadow: 0 25px 70px #00000060; }
.lightbox-bar { display: flex; align-items: center; gap: 14px; width: min(92vw, 900px); padding-top: 16px; }
.lightbox-report { border: 1px solid #ffffff55; border-radius: 999px; padding: 0 18px; min-height: 46px; background: transparent; color: #fff; font-weight: 750; }
.lightbox-bar .primary { flex: 1; }
.bottom { position: fixed; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; padding: 13px max(20px, calc((100% - 1200px) / 2)); border-top: 1px solid var(--line); background: #fffffff2; backdrop-filter: blur(9px); }
.cartgrid { display: grid; grid-template-columns: 1fr 330px; gap: 25px; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.option { display: flex; justify-content: space-between; width: 100%; padding: 16px; margin-top: 11px; border: 1px solid var(--line); border-radius: 15px; background: #fff; text-align: left; }
.option.on { border: 2px solid var(--aqua); background: #ecfbf9; }
.summary p { display: flex; justify-content: space-between; color: var(--muted); }
.pay { display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, #073b59, #126d81); }
.field { width: 100%; height: 54px; padding: 0 14px; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; font: inherit; }
.camera-error { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(5, 27, 42, .58); backdrop-filter: blur(5px); }
.camera-error-card { width: min(100%, 560px); padding: 40px clamp(25px, 5vw, 52px) 30px; border: 2px solid #0a415e; border-radius: 30px; background: #fff; box-shadow: 0 28px 70px rgba(0, 19, 32, .34); text-align: center; }
.camera-error-card img { width: 98px; height: 98px; margin-bottom: 10px; }
.camera-error-card h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -1.6px; }
.camera-error-card p { max-width: 420px; margin: 0 auto 25px; color: var(--muted); font-size: 18px; line-height: 1.42; }
.camera-error-card .primary { width: 100%; }
.camera-error-card .textbtn { margin-bottom: 0; }

@media (max-width: 1080px) {
  .top { padding-inline: 24px; }
  .nav-memories { display: none; }
  .camera { grid-template-columns: 1fr; max-width: 820px; padding: 24px; }
  .preview { min-height: clamp(420px, 60vw, 600px); }
  .guide { max-width: 700px; margin: 0 auto; text-align: center; }
  .group { text-align: left; }
  .cartgrid { grid-template-columns: minmax(0, 1fr) 290px; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Cuando hay que aceptar el consentimiento antes de disparar, lo ponemos
     ANTES que el vídeo (en vez de debajo) y encogemos el vídeo: así se lee
     y se marca la casilla sin bajar, y el botón de disparo queda a mano
     justo debajo, sin tener que volver a subir la pantalla. */
  .camera.pending-consent { display: flex; flex-direction: column; }
  .camera.pending-consent .guide { order: -1; margin-bottom: 14px; }
  .camera.pending-consent .guide h1 { font-size: clamp(24px, 4.5vw, 32px); margin: 6px 0; }
  .camera.pending-consent .guide > p:not(.consent-legal) { display: none; }
  .camera.pending-consent .preview { min-height: clamp(260px, 42vw, 380px); }
}

@media (min-width: 1600px) {
  .top { height: 88px; }
  .view { min-height: calc(100svh - 88px); }
  .camera { max-width: 1520px; padding-top: 40px; }
  .preview { min-height: 620px; }
  .gallery, .cart { max-width: 1480px; margin-inline: auto; }
}

@media (max-width: 700px) {
  .top { height: 66px; }
  .view { min-height: calc(100svh - 66px); }
  .brand { font-size: 17px; }
  .brand img { height: 27px; }
  .nav-memories, .nav-login, .language { display: none; }
  .nav-signup { min-height: 39px; padding: 0 13px; font-size: 13px !important; }
  .help { width: 39px; height: 39px; min-height: 39px; }
  .welcome { padding: 20px 5px 50px; }
  .welcome h1 { font-size: 42px; }
  .face-launch { margin-block: 22px 26px; }
  .face-icon { width: 135px; height: 135px; }
  .welcome .primary { min-height: 65px; font-size: 21px; }
  .card { padding: 32px 21px; }
  .camera { grid-template-columns: 1fr; padding: 13px; align-items: end; }
  .preview { min-height: 325px; }
  .guide { padding: 7px 12px; }
  .guide h1 { font-size: 36px; }
  .photos { grid-template-columns: 1fr 1fr; gap: 11px; }
  .head { display: block; }
  .tabs { margin-top: 15px; }
  .cartgrid { grid-template-columns: 1fr; }
  .summary { order: -1; }
  .group { align-items: flex-start; }
  .people { flex-basis: 88px; width: 88px; transform-origin: center; }
}

@media (max-height: 900px) and (min-width: 701px) {
  .hero { align-items: start; padding-top: 24px; padding-bottom: 20px; }
  .welcome { padding-block: 12px; }
  .welcome h1 { margin-block: 8px; font-size: clamp(42px, 6vh, 54px); }
  .welcome p { max-width: 690px; font-size: clamp(19px, 3vh, 23px); }
  .face-launch { margin-block: 16px 18px; }
  .face-icon { width: 125px; height: 125px; }
  .welcome .primary { min-height: 60px; font-size: 20px; }
  .welcome .textbtn { margin-block: 9px 3px; }
  .camera { align-items: center; padding-block: 18px; }
  .preview { min-height: min(64svh, 500px); }
  .guide h1 { margin-block: 8px; font-size: clamp(40px, 6.5vh, 52px); }
  .guide p { margin-block: 8px; font-size: 17px; }
  .group { padding: 13px; margin-top: 12px; }
  .people { flex-basis: 86px; width: 86px; height: 66px; }
  .people img { width: 86px; height: 64px; }
  .snap { bottom: 15px; }
  .flip { bottom: 24px; }
}

@media (max-height: 700px) and (max-width: 700px) {
  .hero { align-items: start; padding-top: 10px; }
  .welcome { padding-block: 7px 20px; }
  .welcome h1 { margin-block: 6px; font-size: 34px; }
  .welcome p { font-size: 17px; }
  .face-launch { margin-block: 10px 13px; }
  .face-icon { width: 94px; height: 94px; }
  .welcome .primary { min-height: 55px; }
  .welcome .textbtn, .welcome .privacy { margin-top: 7px; }
  .brand-hero { display: none; }
  .how-steps { display: none; }
}

@media (max-width: 480px) {
  .top { padding-inline: 13px; }
  .brand { font-size: 15px; gap: 6px; }
  .brand img { height: 23px; }
  .nav-signup { padding-inline: 10px; font-size: 12px !important; }
  .top nav { gap: 7px; }
  .welcome h1 { font-size: 37px; letter-spacing: -2.2px; }
  .welcome p { font-size: 18px; }
  .face-launch { margin-block: 19px 22px; }
  .face-icon { width: 118px; height: 118px; }
  .welcome .primary { min-height: 60px; font-size: 19px; }
  .card { padding: 28px 18px; border-radius: 23px; }
  .card h1, .gallery h1, .cart h1 { font-size: 34px; letter-spacing: -1.8px; }
  .camera { padding: 9px; }
  .preview { min-height: min(66svh, 430px); border-radius: 22px; }
  .guide h1 { font-size: 32px; }
  .group { gap: 11px; padding: 13px; font-size: 14px; }
  .people { flex-basis: 72px; width: 72px; height: 64px; }
  .people img { width: 74px; height: 60px; }
  .gallery, .cart { padding-inline: 14px; }
  .photos { gap: 9px; margin-top: 20px; }
  .photo { border-radius: 14px; }
  .photo button { top: 8px; right: 8px; width: 36px; height: 36px; font-size: 20px; }
  .person-list { gap: 10px; }
  .person-avatar, .add-person { width: 55px; height: 55px; }
  .bottom { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .bottom .primary { min-height: 48px; padding-inline: 16px; font-size: 14px; }
  .panel { padding: 17px; border-radius: 18px; }
  .memory-card { padding: 19px; border-radius: 18px; }
  .pickup-qr { gap: 12px; padding: 11px; }
  .pickup-qr img { width: 86px; height: 86px; }
  .option { padding: 13px; }
  .camera-error { padding: 16px; }
  .camera-error-card { padding: 30px 21px 22px; border-radius: 24px; }
  .camera-error-card img { width: 78px; height: 78px; }
  .camera-error-card p { font-size: 16px; }
}

@media (max-width: 360px) {
  .nav-signup { display: none; }
  .top nav { gap: 5px; }
  .welcome h1 { font-size: 34px; }
  .photos { grid-template-columns: 1fr; }
}

@media (max-height: 700px) and (max-width: 700px) {
  .hero { align-items: start; padding-top: 10px; }
  .welcome { padding-block: 7px 20px; }
  .welcome h1 { margin-block: 6px; font-size: 34px; }
  .welcome p { font-size: 17px; }
  .face-launch { margin-block: 10px 13px; }
  .face-icon { width: 94px; height: 94px; }
  .welcome .primary { min-height: 55px; }
  .welcome .textbtn, .welcome .privacy { margin-top: 7px; }
  .brand-hero { display: none; }
  .how-steps { display: none; }
}

/* Carrito desplegable PhotoIA */
#cartButton { align-items: center; gap: 8px; min-height: 44px; padding: 0 13px; border: 1px solid #5ad0d0 !important; border-radius: 999px !important; background: #0b617d !important; color: #fff !important; font-size: 14px; font-weight: 850; box-shadow: 0 8px 18px #001d2f3d; }
.cart-count { display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 50px; background: var(--aqua); color: #073b59; font-size: 12px; }
.cart-dropdown { position: fixed; z-index: 30; top: 70px; right: max(16px, calc((100vw - 1400px) / 2)); width: min(420px, calc(100vw - 24px)); max-height: min(78svh, 730px); overflow: auto; padding: 18px; border: 1px solid #a9e6e2; border-radius: 24px; background: linear-gradient(150deg, #faffff, #edfafa); color: var(--ink); box-shadow: 0 26px 70px #00213559; }
.cart-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }.cart-head h2 { margin: 3px 0 0; font-size: 25px; letter-spacing: -1px; }.cart-head h2 span { display: inline-grid; place-items: center; min-width: 27px; height: 27px; border-radius: 50px; background: #d8f8f5; color: #087c89; font-size: 13px; vertical-align: 3px; }.cart-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #e4f2f3; color: #315967; font-size: 25px; line-height: 1; }.cart-hint { margin: 15px 0; color: var(--muted); font-size: 14px; line-height: 1.42; }
.pack-progress { margin: 15px 0 12px; padding: 14px; border-radius: 17px; background: linear-gradient(135deg, #073b59, #087d90); color: #fff; }.pack-progress.auto { background: linear-gradient(135deg, #0c6070, #16a19c); }.pack-progress span { display: block; color: #c9fbf5; font-size: 11px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }.pack-progress strong { display: block; margin-top: 3px; font-size: 16px; }.pack-progress b { display: block; margin-top: 9px; font-size: 13px; }.pack-progress i { display: block; height: 6px; margin-top: 7px; overflow: hidden; border-radius: 50px; background: #ffffff42; }.pack-progress em { display: block; height: 100%; border-radius: inherit; background: var(--aqua); }.pack-progress small { display: block; margin-top: 7px; color: #d5f9f6; font-size: 12px; }
.cart-thumbs { display: flex; gap: 9px; margin: 14px 0; padding-bottom: 2px; overflow-x: auto; }.cart-thumbs > div { position: relative; flex: 0 0 61px; height: 61px; }.cart-thumbs img { width: 100%; height: 100%; border: 2px solid #bce9e6; border-radius: 13px; object-fit: cover; }.cart-thumbs button { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 21px; height: 21px; padding: 0; border: 0; border-radius: 50%; background: #073b59; color: #fff; font-weight: 900; }.add-more { width: 100%; min-height: 45px; border: 1px dashed #77c5c6; border-radius: 13px; background: #fff; color: #087c89; font-weight: 850; }.pack-options { margin-top: 18px; }.pack-options > b { display: block; margin-bottom: 8px; font-size: 13px; }.pack-option { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 13px; margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-align: left; }.pack-option.selected { border-color: #15aab0; background: #e7fbf8; box-shadow: inset 0 0 0 1px #15aab0; }.pack-option strong, .pack-option small { display: block; }.pack-option small { margin-top: 3px; color: var(--muted); }.pack-option i { color: #078896; font-size: 19px; font-style: normal; }.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 1px 11px; }.cart-total span { color: var(--muted); font-size: 13px; }.cart-total strong { font-size: 22px; }.checkout { width: 100%; }
.watermark-note { grid-column: 1 / -1; margin: -7px 0 0; color: #d5eff2; font-size: 12px; text-align: center; }.report-modal { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 18px; background: #04263ce8; backdrop-filter: blur(6px); }.report-card { position: relative; width: min(100%, 460px); max-height: 90svh; overflow: auto; padding: 25px; border-radius: 24px; background: #fff; }.report-card h2 { margin: 6px 0; font-size: 29px; letter-spacing: -1px; }.report-card p { margin: 0 0 15px; color: var(--muted); line-height: 1.45; }.report-card img { width: 100%; max-height: 155px; margin: 0 0 16px; border-radius: 14px; object-fit: cover; }.report-card label { display: block; margin-top: 12px; color: #315967; font-size: 13px; font-weight: 800; }.report-card input, .report-card select { width: 100%; height: 46px; margin-top: 5px; padding: 0 11px; border: 1px solid #c9dbdf; border-radius: 11px; background: #fff; font: inherit; }.report-card .primary { width: 100%; margin-top: 18px; }
.saving { color: #087d5f !important; }
.order-code { margin: 18px 0; font-size: 26px; font-weight: 900; letter-spacing: 1px; overflow-wrap: anywhere; }
@media (max-width: 700px) { #cartButton { min-height: 39px; padding: 0 11px; font-size: 13px; }.cart-dropdown { top: 58px; right: 12px; border-radius: 20px; }.lightbox { padding: 13px; }.lightbox-img { max-width: 94vw; max-height: 64svh; }.lightbox-bar { width: 94vw; gap: 9px; }.lightbox-report { min-height: 44px; padding: 0 12px; font-size: 13px; }.watermark-note { font-size: 11px; }.report-card { padding: 21px 18px; } }
@media (max-width: 480px) { .cart-dropdown { width: calc(100vw - 16px); right: 8px; }.cart-head h2 { font-size: 22px; }.pack-option { padding: 11px; } }
/* Página completa de compra */
.cart-page { max-width: 1280px; margin: 0 auto; padding-bottom: 118px; }.cart-page-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }.cart-page-head p { max-width: 650px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.45; }.cart-page-head .textbtn { margin: 5px 0 0; white-space: nowrap; }.purchase-options { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; padding: 14px; border-radius: 26px; background: linear-gradient(135deg,#e7f2f3,#d9e6e8); }.purchase-option { min-height: 154px; padding: 18px; border: 2px solid transparent; border-radius: 20px; background: #fff; color: var(--ink); text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }.purchase-option:hover { transform: translateY(-2px); border-color: #9bdedb; }.purchase-option.selected { border-color: #0c9f9e; background: linear-gradient(150deg,#edfffb,#dbf8f1); box-shadow: 0 9px 19px #0b747326; }.purchase-option.applied { border-color: #9ac94b; background: linear-gradient(150deg,#f4ffd9,#e8f8c5); }.purchase-option .option-kicker { display: block; margin-bottom: 9px; color: #3d6b75; font-size: 11px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }.purchase-option strong { display: block; font-size: 22px; letter-spacing: -1px; line-height: 1.05; }.purchase-option small { display: block; margin-top: 7px; color: #4f6974; font-size: 14px; line-height: 1.3; }.purchase-option em { display: inline-block; margin-top: 12px; padding: 5px 8px; border-radius: 8px; background: #2f6b39; color: #fff; font-size: 11px; font-style: normal; font-weight: 850; }.cart-pack-note { display: flex; align-items: center; gap: 18px; margin: 18px 0; padding: 15px 17px; border: 1px solid #a8e3df; border-radius: 18px; background: #ebfbf9; }.cart-pack-note > div { min-width: 215px; }.cart-pack-note span,.cart-pack-note strong,.cart-pack-note small { display: block; }.cart-pack-note span { color: #087b89; font-size: 11px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }.cart-pack-note strong { margin-top: 3px; font-size: 17px; }.cart-pack-note small { margin-top: 3px; color: var(--muted); }.cart-pack-note i { flex: 1; height: 8px; overflow: hidden; border-radius: 50px; background: #c6e9e7; }.cart-pack-note em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#0f8795,#32c7bd); }.pending-photos,.cart-selection { margin-top: 32px; }.section-title { display: flex; align-items: end; justify-content: space-between; gap: 15px; }.section-title h2 { margin: 3px 0 0; font-size: 29px; letter-spacing: -1.3px; }.add-all { min-height: 46px; padding: 0 17px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 850; box-shadow: 0 8px 18px #073b5933; }.pending-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 13px; margin-top: 16px; }.pending-grid button { position: relative; aspect-ratio: 1.2; overflow: hidden; padding: 0; border: 0; border-radius: 17px; background: #d7e8e8; color: #fff; }.pending-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }.pending-grid button:hover img { transform: scale(1.05); }.pending-grid span { position: absolute; right: 8px; bottom: 8px; padding: 6px 9px; border-radius: 10px; background: #073b59e8; font-size: 12px; font-weight: 850; }.cart-photo-list { display: grid; gap: 12px; margin-top: 16px; }.cart-photo-list article { display: flex; align-items: center; gap: 17px; min-height: 106px; padding: 10px; border: 1px solid #ccdfe1; border-radius: 18px; background: #fff; }.cart-photo-list img { width: 118px; height: 84px; border-radius: 12px; object-fit: cover; }.cart-photo-list div { flex: 1; }.cart-photo-list strong,.cart-photo-list small { display: block; }.cart-photo-list small { margin-top: 5px; color: var(--muted); }.cart-photo-list button { display: grid; place-items: center; width: 40px; height: 40px; margin-right: 4px; border: 1px solid #b8cdd1; border-radius: 50%; background: #fff; color: #5c737c; font-size: 23px; }.danger { color: #9d503c; }.checkout-summary { position: fixed; right: max(16px, calc((100vw - 1280px) / 2)); left: max(16px, calc((100vw - 1280px) / 2)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 24; display: flex; align-items: center; gap: 24px; margin: 0; padding: 18px 20px; border-radius: 22px; background: linear-gradient(115deg,#073b59,#0c7185); color: #fff; box-shadow: 0 18px 37px #073b5952; }.checkout-summary > span { flex: 1; color: #beefee; font-size: 13px; font-weight: 750; }.checkout-summary > div { display: flex; align-items: baseline; gap: 11px; }.checkout-summary b { font-size: 27px; letter-spacing: -1px; }.checkout-summary small { color: #d3efed; font-size: 12px; }.checkout-summary .primary { width: auto; min-width: 205px; margin: 0; background: #fff; color: #073b59; box-shadow: none; }
@media (max-width: 980px) { .purchase-options { grid-template-columns: repeat(2,minmax(0,1fr)); }.pending-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }.checkout-summary { flex-wrap: wrap; }.checkout-summary > span { min-width: 35%; }.checkout-summary small { flex-basis: 100%; order: 5; } }
@media (max-width: 700px) { .cart.cart-page { padding-bottom: 212px; }.cart-page-head { display: block; margin-bottom: 20px; }.cart-page-head h1 { font-size: 35px; }.cart-page-head .textbtn { margin-top: 12px; }.purchase-options { grid-template-columns: 1fr 1fr; gap: 9px; padding: 9px; border-radius: 20px; }.purchase-option { min-height: 135px; padding: 14px; border-radius: 15px; }.purchase-option strong { font-size: 18px; }.purchase-option small { font-size: 12px; }.cart-pack-note { display: block; }.cart-pack-note i { margin-top: 12px; }.pending-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.section-title h2 { font-size: 25px; }.cart-photo-list article { gap: 12px; min-height: 90px; }.cart-photo-list img { width: 92px; height: 68px; }.checkout-summary { position: fixed; right: 10px; bottom: max(8px, env(safe-area-inset-bottom)); left: 10px; z-index: 25; display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; margin: 0; padding: 13px 14px; border-radius: 18px; }.checkout-summary > span { grid-column: 1 / -1; }.checkout-summary b { font-size: 24px; }.checkout-summary small { grid-column: 1 / -1; }.checkout-summary .primary { width: 100%; min-height: 48px; grid-column: 1 / -1; } }
@media (max-width: 700px) { .gallery.has-gallery-checkout { padding-bottom: 104px; }.gallery-checkout { right: 10px; bottom: max(8px, env(safe-area-inset-bottom)); left: 10px; gap: 10px; padding: 10px 11px 10px 14px; border-radius: 16px; }.gallery-checkout strong { font-size: 19px; }.gallery-checkout .primary { min-width: 128px; min-height: 46px; padding-inline: 13px; font-size: 14px; } }
/* Consentimiento: claro, reversible y cómodo en móvil */
.consent-card { position: relative; max-width: 720px; padding: 38px 44px; text-align: left; }.consent-symbol { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 17px; border-radius: 17px; background: linear-gradient(145deg,#dcf8f4,#bdeceb); color: #087c89; font-size: 28px; font-weight: 900; }.consent-card h1 { max-width: 560px; margin: 9px 0 12px; font-size: clamp(34px,4.5vw,52px); }.consent-intro { max-width: 590px; margin: 0 !important; color: #526f7c !important; font-size: 17px; line-height: 1.55 !important; }.consent-check { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; margin-top: 25px; padding: 17px; border: 1px solid #c9ece8; border-radius: 18px; background: linear-gradient(135deg,#eafffa,#e3f7f7); cursor: pointer; }.consent-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }.consent-mark { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border: 2px solid #78aaa9; border-radius: 7px; background: #fff; color: transparent; font-size: 14px; font-weight: 900; transition: background .15s,border-color .15s,color .15s; }.consent-check input:checked + .consent-mark { border-color: #087c89; background: #087c89; color: #fff; }.consent-check input:focus-visible + .consent-mark { outline: 3px solid #1bbcc066; outline-offset: 2px; }.consent-check b { display: block; color: #073b59; font-size: 15px; }.consent-check small { display: block; margin-top: 5px; color: #4c6975; font-size: 14px; line-height: 1.4; }.consent-note { margin: 13px 2px 0 !important; color: #60808a !important; font-size: 12.5px !important; }.consent-note:before { content: '🔒'; margin-right: 7px; }.consent-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; }.consent-actions .primary { flex: 1; margin: 0; }.consent-actions .textbtn { margin: 0; padding: 13px 10px; white-space: nowrap; }
@media (max-width: 700px) { .consent-card { padding: 29px 21px; }.consent-symbol { width: 43px; height: 43px; margin-bottom: 13px; border-radius: 14px; font-size: 24px; }.consent-card h1 { font-size: 34px; }.consent-intro { font-size: 15px; }.consent-check { gap: 11px; padding: 14px; margin-top: 20px; }.consent-check small { font-size: 13px; }.consent-actions { display: block; }.consent-actions .primary { width: 100%; }.consent-actions .textbtn { display: block; width: 100%; margin-top: 7px; } }
.consent-legal { margin: 13px 0 0 !important; padding: 11px 13px; border-left: 3px solid #71c9c5; color: #647b83 !important; font-size: 12.5px !important; line-height: 1.42 !important; }
/* La solicitud de revisión no compite visualmente con la foto. */
.report-icon { display: grid !important; place-items: center; left: 10px !important; top: 10px !important; width: 29px !important; height: 29px !important; padding: 0 !important; border: 1px solid #ffffff70 !important; border-radius: 50% !important; background: #073b5966 !important; color: #fff !important; font-size: 12px !important; font-weight: 900; letter-spacing: -1px; line-height: 1 !important; opacity: .5; backdrop-filter: blur(4px); transition: opacity .16s ease, background .16s ease; }.photo:hover .report-icon, .report-icon:focus-visible { opacity: .62; background: #073b5966 !important; outline: none; }
.consent-legal a { color: #087c89; font-weight: 850; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.consent-view { display: grid; place-items: center; padding: 18px; }
@media (max-width: 700px) { .consent-view { min-height: calc(100svh - 66px); padding: 12px; align-items: center; }.consent-card { width: 100%; padding: 21px 19px; }.consent-symbol { display: none; }.consent-card .eyebrow { margin-bottom: 6px; }.consent-card h1 { margin: 0 0 7px; font-size: clamp(29px,8.4vw,35px); line-height: 1.02; }.consent-intro { font-size: 14px; line-height: 1.38 !important; }.consent-legal { margin-top: 8px !important; padding: 8px 10px; font-size: 11.5px !important; line-height: 1.32 !important; }.consent-check { margin-top: 13px; padding: 12px; }.consent-check small { margin-top: 3px; font-size: 12px; line-height: 1.3; }.consent-actions { margin-top: 14px; }.consent-actions .primary { min-height: 52px; } }
@media (max-height: 680px) and (max-width: 700px) { .consent-view { align-items: start; padding-top: 8px; }.consent-card { padding-top: 15px; padding-bottom: 15px; }.consent-card h1 { font-size: 28px; }.consent-check { margin-top: 9px; padding: 10px; }.consent-actions { margin-top: 9px; } }
/* Formato por foto en el carrito (digital / impresa, pueden ir las dos) */
.delivery-intro { max-width: 650px; margin: 14px auto 4px; color: var(--muted); font-size: 14px; text-align: left; }
.format-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.format-actions button { min-height: 38px; padding: 6px; border: 1px solid #c5dcdf; border-radius: 11px; background: #fff; color: #315967; font-size: 12px; font-weight: 850; }
.format-actions button:first-child.selected { border-color: #087d90; background: #087d90; color: #fff; }
.format-actions button:nth-child(2).selected { border-color: #e4af12; background: #f3c02a; color: #073b59; }
.purchase-option.print-extra { cursor: default; border-color: #9fd4df; background: linear-gradient(150deg,#f4fcff,#e8f7fb); }
@media (max-width: 700px) { .format-actions { gap: 5px; } .format-actions button { min-height: 34px; font-size: 11px; } }
