/* ============================================================
   FOTOS / PHOTO STORE
   BajoMiLente
   ============================================================ */

.fotos-page {
  --fotos-bg: #0e1310;
  --fotos-surface: #161c18;
  --fotos-card: #1d2420;
  --fotos-line: #2b332e;
  --fotos-text: #edefec;
  --fotos-muted: #8a968d;
  --fotos-accent: #e8a33d;

  min-height: 100vh;
  background: var(--fotos-bg);
  color: var(--fotos-text);
  font-family: "DM Sans", sans-serif;
}

/* ============================================================
   HEADER
   ============================================================ */

.fotos-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px max(24px, calc((100vw - 1072px) / 2));

  border-bottom: 1px solid var(--fotos-line);

  background: rgba(14, 19, 16, 0.94);

  backdrop-filter: blur(8px);

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.fotos-header.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.fotos-logo {
  display: flex;
  align-items: center;
  gap: 9px;

  color: var(--fotos-text);
  text-decoration: none;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.fotos-logo span {
  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: var(--fotos-accent);

  box-shadow: 0 0 12px var(--fotos-accent);
}

/* ============================================================
   BOTONES GENERALES
   ============================================================ */

.fotos-cart-photo-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;

  min-width: 0;
}

.fotos-cart-photo-info strong {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;

  color: inherit;
}

.fotos-cart-photo-info strong del {
  color: var(--fotos-muted);
  font-size: 11px;
  font-weight: 400;
}

.fotos-cart-effective-price {
  color: var(--fotos-accent);
  font-size: 14px;
  font-weight: 700;
}

.fotos-cart-photo-info > span {
  display: block;

  max-width: 190px;

  overflow: hidden;

  color: var(--fotos-text);

  font-size: 12px;
  line-height: 1.3;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.fotos-cart-photo-info > span:last-child {
  color: var(--fotos-muted);
  font-size: 11px;
}

.fotos-cart-button,
.fotos-photo button,
.fotos-cart-total button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.fotos-cart-button {
  display: flex;
  align-items: center;
  gap: 9px;

  padding: 9px 14px;

  background: var(--fotos-card);

  border: 1px solid var(--fotos-line);

  color: var(--fotos-text);

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.fotos-cart-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.fotos-cart-button:hover {
  background: #252d28;
  border-color: #39433c;
}

.fotos-cart-button strong {
  padding: 2px 7px;

  background: var(--fotos-accent);

  color: #1a1300;

  font-size: 12px;
}

/* ============================================================
   CONTENEDOR
   ============================================================ */

.fotos-wrap {
  max-width: 1120px;

  margin: 0 auto;

  padding: 130px 24px 90px;
}

/* ============================================================
   INTRO
   ============================================================ */

.fotos-intro {
  max-width: 700px;
  margin-bottom: 75px;
}

.fotos-kicker {
  margin: 0 0 16px;

  color: var(--fotos-accent);

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
}

.fotos-intro h1,
.fotos-match-heading h1 {
  margin: 0;

  font-family: "Playfair Display", serif;

  font-size: clamp(42px, 7vw, 78px);

  font-weight: 400;
  line-height: 1;
}

.fotos-intro > p:last-child {
  max-width: 430px;

  margin: 22px 0 0;

  color: var(--fotos-muted);

  font-size: 16px;
  line-height: 1.6;
}

/* ============================================================
   CABECERA DE SECCIÓN
   ============================================================ */

.fotos-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  margin-bottom: 18px;

  padding-bottom: 12px;

  border-bottom: 1px solid var(--fotos-line);
}

.fotos-section-head h2 {
  margin: 0;

  font-size: 25px;
  font-weight: 500;
}

.fotos-section-head span,
.fotos-note {
  color: var(--fotos-muted);
  font-size: 13px;
}

/* ============================================================
   BUSCADOR
   ============================================================ */

.fotos-search {
  display: grid;
  gap: 6px;

  min-width: min(100%, 280px);

  color: var(--fotos-muted);

  font-size: 12px;
}

.fotos-search input {
  width: 100%;
  min-height: 42px;

  padding: 9px 12px;

  border: 1px solid var(--fotos-line);

  background: var(--fotos-surface);

  color: var(--fotos-text);

  font: inherit;

  outline: none;

  box-sizing: border-box;

  transition:
    border-color 0.2s ease;
}

.fotos-search input:focus {
  border-color: var(--fotos-accent);
}

/* ============================================================
   MENSAJE
   ============================================================ */

.fotos-catalog-message {
  margin: 18px 0;

  padding: 14px 16px;

  border-left: 2px solid var(--fotos-accent);

  background: var(--fotos-surface);

  color: var(--fotos-muted);

  font-size: 14px;

  line-height: 1.5;
}

.fotos-catalog-message button {
  margin-top: 10px;

  padding: 8px 12px;

  border: 1px solid var(--fotos-line);

  background: var(--fotos-card);

  color: var(--fotos-text);

  cursor: pointer;

  font: inherit;
}

.fotos-catalog-message button:hover {
  border-color: var(--fotos-accent);
}

/* ============================================================
   GRID DE COBERTURAS
   ============================================================ */

.fotos-matches {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(min(100%, 300px), 1fr)
    );

  gap: 22px;

  margin-top: 22px;
}

/* ============================================================
   TARJETA DE PARTIDO
   ============================================================ */

.fotos-match-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  width: 100%;
  height: 100%;
  min-width: 0;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: var(--fotos-surface);

  color: var(--fotos-text);

  text-align: left;

  cursor: pointer;

  font-family: inherit;

  border-radius: 16px;

  overflow: hidden;

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.2);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.fotos-match-card:hover {
  transform: translateY(-4px);

  border-color:
    rgba(232, 163, 61, 0.42);

  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.34);
}

/* ============================================================
   PORTADA
   ============================================================ */

.fotos-cover {
  position: relative;

  flex: none;

  width: 100%;

  aspect-ratio: 1.2 / 1;

  background-position: center;
  background-size: cover;

  overflow: hidden;

  box-sizing: border-box;
}

.fotos-cover::after {
  position: absolute;

  inset: 0;

  content: "";

  background-image: inherit;

  background-position: inherit;
  background-size: inherit;

  transform: scale(1.001);

  transition:
    transform 0.6s
    cubic-bezier(0.2, 0.75, 0.25, 1);
}

.fotos-match-card:hover
.fotos-cover::after {
  transform: scale(1.055);
}

.fotos-cover-shade {
  position: absolute;

  z-index: 1;

  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(3, 7, 5, 0.38),
      transparent 36%
    ),
    linear-gradient(
      0deg,
      rgba(3, 7, 5, 0.9),
      rgba(3, 7, 5, 0.04) 78%
    );
}

.fotos-cover-top {
  position: absolute;

  z-index: 2;

  inset: 14px 14px auto;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;
}

.fotos-cover .fotos-category-badge {
  border: 1px solid rgba(255, 255, 255, 0.5);

  background: rgba(9, 15, 11, 0.42);

  color: #fff;

  backdrop-filter: blur(8px);
}

.fotos-cover-count {
  padding: 7px 10px;

  border: 1px solid rgba(255, 255, 255, 0.23);

  border-radius: 999px;

  background: rgba(9, 15, 11, 0.46);

  color: #fff;

  font-size: 11px;

  backdrop-filter: blur(8px);
}

.fotos-cover-copy {
  position: absolute;

  z-index: 2;

  right: 20px;
  bottom: 19px;
  left: 20px;
}

.fotos-cover-kicker {
  display: block;

  margin-bottom: 7px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 1.3px;

  text-transform: uppercase;
}

.fotos-cover-copy h3 {
  display: -webkit-box;

  overflow: hidden;

  margin: 0;

  color: #fff;

  font-size: clamp(
    21px,
    2.3vw,
    30px
  );

  font-weight: 500;

  line-height: 1.14;

  text-overflow: ellipsis;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.fotos-cover-copy h3 em {
  color: var(--fotos-accent);

  font-family:
    "Playfair Display",
    serif;

  font-weight: 400;
}

.fotos-cover-details {
  display: flex;

  flex-wrap: wrap;

  gap: 7px 14px;

  margin-top: 11px;

  color: rgba(255, 255, 255, 0.78);

  font-size: 11px;
}

.fotos-cover-details span {
  display: inline-flex;

  align-items: center;

  gap: 6px;
}

.fotos-cover-details svg {
  width: 14px;
  height: 14px;

  flex: 0 0 auto;

  color: var(--fotos-accent);
}

.fotos-cover-details span + span::before {
  width: 3px;
  height: 3px;

  border-radius: 50%;

  background: var(--fotos-accent);

  /* content: ""; */
}

.fotos-match-details {
  display: grid;

  gap: 12px;

  padding: 17px 19px 19px;
}

.fotos-match-details
.fotos-series-name {
  margin: 0;

  color: #bbc4bd;
}

.fotos-match-price {
  display: flex;

  align-items: baseline;

  justify-content: space-between;

  gap: 10px;

  padding-top: 11px;

  border-top: 1px solid var(--fotos-line);
}

.fotos-match-price > span {
  color: var(--fotos-muted);

  font-size: 11px;
}

.fotos-match-price strong {
  color: var(--fotos-accent);

  font-size: 17px;

  font-weight: 600;
}

.fotos-match-price small {
  color: var(--fotos-muted);

  font-size: 11px;

  font-weight: 400;
}

.fotos-match-details > small {
  color: var(--fotos-muted);

  font-size: 11px;
}

/* ============================================================
   CATEGORÍA
   ============================================================ */

.fotos-category-badge {
  display: inline-flex;

  align-items: center;

  width: fit-content;

  padding: 5px 11px;

  border-radius: 999px;

  background: #ffffff;

  color: #171a18;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.7px;

  line-height: 1.3;

  text-transform: uppercase;
}

/* ============================================================
   SERIE
   ============================================================ */

.fotos-series-name {
  display: block;

  color: var(--fotos-muted);

  font-size: 12px;

  font-weight: 400;

  line-height: 1.4;
}

/* ============================================================
   TÍTULO DEL PARTIDO
   ============================================================ */

.fotos-match-heading h1 em {
  color: var(--fotos-accent);

  font-family:
    "Playfair Display",
    serif;

  font-weight: 400;
}

.fotos-match-hero {
  position: relative;

  left: 50%;

  transform:
    translateX(-50%);

  display: grid;

  align-items: center;

  width: 100vw;

  min-height: 520px;

  margin-top: -130px;
  margin-bottom: 48px;

  padding: 150px 24px 58px;

  overflow: hidden;

  isolation: isolate;

  background:
    radial-gradient(
      ellipse at 50% 25%,
      #35443b 0%,
      transparent 62%
    ),
    linear-gradient(
      135deg,
      #1b2720,
      #0e1310
    );
}

.fotos-match-hero-image,
.fotos-match-hero-shade {
  position: absolute;

  z-index: -1;

  inset: 0;

  width: 100%;
  height: 100%;
}

.fotos-match-hero-image {
  object-fit: cover;

  object-position:
    center 42%;
}

.fotos-match-hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(7, 11, 8, 0.72),
      rgba(7, 11, 8, 0.26) 50%,
      rgba(7, 11, 8, 0.62)
    ),
    linear-gradient(
      0deg,
      rgba(7, 11, 8, 0.78),
      rgba(7, 11, 8, 0.12) 72%
    );
}

.fotos-match-hero-content {
  width: min(100%, 980px);

  margin: 0 auto;
}

/* ============================================================
   CABECERA DE GALERÍA
   ============================================================ */

.fotos-match-heading {
  display: grid;

  justify-items: center;

  gap: 16px;

  text-align: center;
}

.fotos-match-heading h1 {
  margin: 0;

  font-size:
    clamp(
      36px,
      6vw,
      64px
    );

  color: #fff;

  text-wrap: balance;
}

.fotos-hero-series {
  margin: 0;

  color: #fff;

  font-size:
    clamp(
      20px,
      2.8vw,
      26px
    );

  font-weight: 700;

  text-shadow:
    0 2px 12px
    rgba(0, 0, 0, 0.95);
}

.fotos-hero-details {
  display: flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 10px 24px;

  color:
    rgba(255, 255, 255, 0.92);

  font-size: 14px;

  text-shadow:
    0 1px 8px
    rgba(0, 0, 0, 0.65);
}

.fotos-hero-details span {
  display: inline-flex;

  align-items: center;

  gap: 8px;
}

.fotos-hero-details svg {
  width: 17px;
  height: 17px;

  flex: 0 0 auto;

  color: var(--fotos-accent);
}

/* ============================================================
   OFERTAS AUTOMÁTICAS
   ============================================================ */

.fotos-offers {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 1px;

  margin-top: 20px;

  background:
    var(--fotos-line);

  border:
    1px solid
    var(--fotos-line);
}

.fotos-offer-card {
  display: grid;

  gap: 7px;

  padding: 16px;

  background:
    var(--fotos-surface);

  color:
    var(--fotos-text);

  min-width: 0;
}

.fotos-offer-card span {
  color: var(--fotos-muted);

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.6px;
}

.fotos-offer-card strong {
  font-size: 19px;

  font-weight: 500;
}

.fotos-offer-card small {
  color: var(--fotos-muted);

  font-size: 11px;

  line-height: 1.4;
}

/* ============================================================
   GUÍA DE SELECCIÓN
   ============================================================ */

.fotos-pick-guide {
  margin: 12px 0 0;

  padding: 12px 14px;

  border-left:
    2px solid
    var(--fotos-accent);

  background:
    var(--fotos-surface);

  color:
    var(--fotos-text);

  font-size: 13px;

  line-height: 1.45;
}

/* ============================================================
   TOOLBAR GALERÍA
   ============================================================ */

.fotos-gallery-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding-right: 8px;
}

.fotos-selection-summary {
  display: flex;

  align-items: center;

  gap: 14px;

  color:
    var(--fotos-muted);

  font-size: 13px;
}

.fotos-selection-summary strong {
  color:
    var(--fotos-text);

  font-size: 18px;

  font-weight: 500;
}

/* ============================================================
   QUITAR SELECCIÓN
   ============================================================ */

.fotos-clear-selection {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 6px 10px;

  border:
    1px solid
    var(--fotos-line);

  background: transparent;

  color:
    var(--fotos-muted);

  cursor: pointer;

  font-family: inherit;

  font-size: 11px;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.fotos-clear-selection:hover {
  background:
    var(--fotos-card);

  border-color:
    var(--fotos-accent);

  color:
    var(--fotos-text);
}

/* ============================================================
   GALERÍA
   ============================================================ */

.fotos-gallery {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(240px, 1fr)
    );

  gap: 2px;

  margin-top: 20px;

  background:
    var(--fotos-line);

  border:
    1px solid
    var(--fotos-line);
}

/* ============================================================
   FOTO
   ============================================================ */

.fotos-photo {
  position: relative;

  display: flex;

  align-items: flex-end;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  background: #000;
}

.fotos-photo img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.35s ease;

  user-select: none;

  -webkit-user-select: none;

  -webkit-touch-callout: none;

  -webkit-user-drag: none;

  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .fotos-photo:hover img {
    transform:
      scale(1.04);
  }
}

.fotos-photo::after {
  position: absolute;

  inset: 40% 0 0;

  content: "";

  background:
    linear-gradient(
      transparent,
      rgba(0, 0, 0, 0.7)
    );

  pointer-events: none;
}

.fotos-photo span {
  position: relative;

  z-index: 1;

  padding: 10px;

  color: #d9dedb;

  font-size: 12px;
}

/* ============================================================
   BOTÓN PREVIEW
   ============================================================ */

.fotos-photo-preview {
  position: absolute;

  inset: 0;

  z-index: 1;

  display: block;

  width: 100%;
  height: 100%;

  padding: 0;
  margin: 0;

  border: 0;

  background: transparent;

  cursor: zoom-in;

  overflow: hidden;

  user-select: none;

  -webkit-user-select: none;

  -webkit-touch-callout: none;

  -webkit-user-drag: none;

  -webkit-tap-highlight-color: transparent;

  touch-action: manipulation;
}

.fotos-photo-preview img {
  user-select: none;

  -webkit-user-select: none;

  -webkit-touch-callout: none;

  -webkit-user-drag: none;
}

.fotos-preview-hint {
  position: absolute !important;

  left: 12px;
  top: 12px;

  z-index: 3;

  display: inline-flex;

  align-items: center;

  padding: 6px 9px !important;

  background:
    rgba(14, 19, 16, 0.78);

  border:
    1px solid
    rgba(255, 255, 255, 0.1);

  color: #edefec !important;

  font-size: 10px !important;

  letter-spacing: 0.3px;

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .fotos-photo:hover
  .fotos-preview-hint {
    opacity: 1;
  }
}

.fotos-photo.is-selected {
  box-shadow:
    inset 0 0 0 2px
    var(--fotos-accent);
}

/* ============================================================
   BOTÓN AGREGAR
   ============================================================ */

.fotos-photo
> button:not(
  .fotos-photo-preview
) {
  position: absolute;

  z-index: 4;

  top: 10px;
  right: 10px;

  padding: 7px 10px;

  background:
    rgba(15, 17, 14, 0.8);

  border:
    1px solid
    var(--fotos-line);

  color:
    var(--fotos-text);

  font-size: 12px;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.fotos-photo
> button:not(
  .fotos-photo-preview
):hover {
  background:
    rgba(29, 36, 32, 0.95);

  border-color:
    #414b44;
}

.fotos-photo
> button:not(
  .fotos-photo-preview
).is-added {
  background:
    var(--fotos-accent);

  color:
    #1a1300;

  border-color:
    var(--fotos-accent);
}

/* ============================================================
   PREVIEW
   ============================================================ */

.fotos-preview-modal {
  position: fixed;

  inset: 0;

  z-index: 100;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 24px;

  background:
    rgba(0, 0, 0, 0.88);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  animation:
    fotosPreviewFade
    0.18s ease;

  user-select: none;

  -webkit-user-select: none;

  -webkit-touch-callout: none;

  -webkit-tap-highlight-color: transparent;
}

.fotos-preview-panel {
  position: relative;

  display: flex;

  flex-direction: column;

  width:
    min(1100px, 100%);

  max-height:
    calc(100vh - 48px);

  background:
    var(--fotos-surface);

  border:
    1px solid
    var(--fotos-line);

  box-shadow:
    0 30px 80px
    rgba(0, 0, 0, 0.65);

  overflow: hidden;
}

/* ============================================================
   HEADER PREVIEW
   ============================================================ */

.fotos-preview-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 14px 18px;

  border-bottom:
    1px solid
    var(--fotos-line);

  background:
    rgba(22, 28, 24, 0.96);

  flex: 0 0 auto;
}

.fotos-preview-header > div {
  min-width: 0;
}

.fotos-preview-header span {
  display: block;

  margin-bottom: 4px;

  color:
    var(--fotos-accent);

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 1.8px;
}

.fotos-preview-header h2 {
  max-width: 700px;

  margin: 0;

  overflow: hidden;

  color:
    var(--fotos-text);

  font-size: 14px;

  font-weight: 500;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.fotos-preview-close {
  flex: 0 0 auto;

  display: flex;

  align-items: center;

  justify-content: center;

  width: 38px;
  height: 38px;

  padding: 0;

  border:
    1px solid
    var(--fotos-line);

  background: transparent;

  color:
    var(--fotos-muted);

  cursor: pointer;

  font-family: inherit;

  font-size: 27px;

  line-height: 1;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.fotos-preview-close:hover {
  background:
    var(--fotos-card);

  border-color:
    #414b44;

  color:
    var(--fotos-text);
}

/* ============================================================
   CONTENIDO PREVIEW
   ============================================================ */

.fotos-preview-content {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  min-height: 300px;

  max-height:
    calc(100vh - 160px);

  padding: 0;

  background: #050605;

  overflow: hidden;

  user-select: none;

  -webkit-user-select: none;

  -webkit-touch-callout: none;

  touch-action: pan-y;
}

.fotos-preview-content
.swipe-slider {
  flex: 1;

  min-width: 0;

  align-self: stretch;
}

.fotos-preview-content
.swipe-slide {
  padding: 18px;

  box-sizing: border-box;
}

.fotos-preview-content img {
  display: block;

  width: auto;

  max-width: 100%;

  height: auto;

  max-height:
    calc(100vh - 190px);

  object-fit: contain;

  user-select: none;

  -webkit-user-select: none;

  -webkit-touch-callout: none;

  -webkit-user-drag: none;

  pointer-events: auto;

  touch-action: manipulation;
}

.fotos-preview-nav {
  position: absolute;

  z-index: 2;

  top: 50%;

  display: grid;

  width: 48px;
  height: 48px;

  place-items: center;

  padding: 0 0 5px;

  transform:
    translateY(-50%);

  border:
    1px solid
    rgba(255, 255, 255, 0.24);

  border-radius: 50%;

  background:
    rgba(14, 19, 16, 0.74);

  color: #fff;

  font: inherit;

  font-size: 36px;

  line-height: 1;

  cursor: pointer;

  backdrop-filter: blur(8px);

  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.fotos-preview-nav:hover:not(:disabled) {
  border-color:
    var(--fotos-accent);

  background:
    rgba(14, 19, 16, 0.94);
}

.fotos-preview-nav:disabled {
  opacity: 0.28;

  cursor: not-allowed;
}

.fotos-preview-nav.is-previous {
  left: 18px;
}

.fotos-preview-nav.is-next {
  right: 18px;
}

/* ============================================================
   FOOTER PREVIEW
   ============================================================ */

.fotos-preview-footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  padding: 12px 18px;

  border-top:
    1px solid
    var(--fotos-line);

  background:
    var(--fotos-surface);

  flex: 0 0 auto;
}

.fotos-preview-footer > span {
  color:
    var(--fotos-muted);

  font-size: 11px;
}

.fotos-preview-footer button {
  display: inline-flex;

  flex: 0 0 auto;

  align-items: center;

  justify-content: center;

  gap: 9px;

  min-height: 44px;

  padding: 9px 16px;

  border:
    1px solid
    var(--fotos-accent);

  background:
    var(--fotos-accent);

  color:
    #1a1300;

  cursor: pointer;

  font-family: inherit;

  font-size: 13px;

  font-weight: 600;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.fotos-preview-footer button svg {
  width: 19px;
  height: 19px;

  flex: 0 0 auto;
}

.fotos-preview-footer button strong {
  padding-left: 9px;

  border-left:
    1px solid
    rgba(26, 19, 0, 0.24);

  font-size: 12px;

  font-weight: 700;
}

.fotos-preview-footer button:hover {
  border-color:
    #f2b44e;

  background:
    #f2b44e;
}

.fotos-preview-footer button.is-added {
  border-color:
    #b7dfc4;

  background:
    #b7dfc4;

  color:
    #102419;
}

.fotos-preview-footer
button.is-added strong {
  border-color:
    rgba(16, 36, 25, 0.24);
}

/* ============================================================
   ANIMACIÓN
   ============================================================ */

@keyframes fotosPreviewFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================================
   NOTA
   ============================================================ */

.fotos-note {
  margin-top: 16px;
}

/* ============================================================
   OVERLAY
   ============================================================ */

.fotos-overlay {
  position: fixed;

  inset: 0;

  z-index: 30;

  border: 0;

  background:
    rgba(0, 0, 0, 0.55);

  cursor: pointer;
}

/* ============================================================
   CARRITO LATERAL
   ============================================================ */

.fotos-cart {
  position: fixed;

  top: 0;
  right: 0;

  z-index: 40;

  display: flex;

  flex-direction: column;

  width: 370px;

  max-width: 90vw;

  height: 100vh;

  background:
    var(--fotos-surface);

  border-left:
    1px solid
    var(--fotos-line);

  /*
   * Cerrado: se desplaza el 100% de su propio ancho hacia la
   * derecha (así nunca asoma, sin importar el ancho del celular).
   */
  transform: translateX(100%);

  visibility: hidden;

  transition:
    transform 0.25s ease,
    visibility 0s linear 0.25s;
}

.fotos-cart.is-open {
  /* "none" (no translateX(0)) para que el diálogo fixed de confirmación
     siga posicionándose respecto a la pantalla y no al carrito */
  transform: none;

  visibility: visible;

  transition:
    transform 0.25s ease,
    visibility 0s;
}

.fotos-cart-head {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 18px 20px;

  border-bottom:
    1px solid
    var(--fotos-line);
}

.fotos-cart-head h2 {
  margin: 0;

  font-size: 20px;

  font-weight: 500;
}

.fotos-cart-head button {
  border: 0;

  background: transparent;

  color:
    var(--fotos-muted);

  font-size: 25px;

  cursor: pointer;
}

.fotos-cart-head-actions {
  display: flex;

  align-items: center;

  gap: 14px;
}

.fotos-cart-head .fotos-cart-clear {
  padding: 6px 10px;

  border: 1px solid var(--fotos-line);

  background: transparent;

  color: var(--fotos-muted);

  font-family: inherit;
  font-size: 12px;

  cursor: pointer;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.fotos-cart-head .fotos-cart-clear:hover {
  border-color: #c0675c;

  background: rgba(192, 103, 92, 0.1);

  color: #f0a79d;
}

/* ============================================================
   CONFIRMACIÓN: VACIAR CARRITO
   ============================================================ */

/* Escritorio: barra inline dentro del carrito */

.fotos-cart-confirm-card {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 14px;

  padding: 14px 20px;

  border-top: 1px solid #e3e8ee;

  background: #ffffff;

  animation: fotosCartConfirmIn 0.22s ease-out;
}

.fotos-cart-confirm-title {
  display: none;
}

.fotos-cart-confirm-card p {
  flex: 1;

  min-width: 0;

  margin: 0;

  color: #5b6b82;

  font-size: 12.5px;

  line-height: 1.4;
}

.fotos-cart-confirm-actions {
  display: flex;

  flex: 0 0 auto;

  align-items: center;

  gap: 8px;
}

.fotos-cart-confirm-actions button {
  padding: 9px 14px;

  border-radius: 8px;

  font-family: inherit;

  font-size: 13px;

  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.fotos-cart-confirm-yes {
  border: 1px solid #ef4444;

  background: #ef4444;

  color: #ffffff;
}

.fotos-cart-confirm-yes:hover {
  border-color: #dc2626;

  background: #dc2626;
}

.fotos-cart-confirm-no {
  border: 1px solid #d5dde8;

  background: #ffffff;

  color: #1f2a37;
}

.fotos-cart-confirm-no:hover {
  background: #f1f5f9;
}

@keyframes fotosCartConfirmIn {
  from {
    opacity: 0;

    transform: translateY(8px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

@keyframes fotosCartConfirmPop {
  from {
    opacity: 0;

    transform: scale(0.96);
  }

  to {
    opacity: 1;

    transform: scale(1);
  }
}

/* Celular: diálogo centrado sobre un fondo oscuro */

@media (max-width: 640px) {
  .fotos-cart-confirm {
    position: fixed;

    inset: 0;

    z-index: 60;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 24px;

    background: rgba(0, 0, 0, 0.6);

    animation: fotosPreviewFade 0.18s ease;
  }

  .fotos-cart-confirm-card {
    flex-direction: column;

    align-items: stretch;

    justify-content: flex-start;

    gap: 0;

    width: min(420px, 100%);

    box-sizing: border-box;

    padding: 30px 24px 26px;

    border: 0;

    border-radius: 6px;

    text-align: center;

    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);

    animation: fotosCartConfirmPop 0.2s ease-out;
  }

  .fotos-cart-confirm-title {
    display: block;

    margin: 0 0 14px;

    color: #0d1b2a;

    font-size: 22px;

    font-weight: 700;

    line-height: 1.2;
  }

  .fotos-cart-confirm-card p {
    flex: none;

    margin: 0 0 24px;

    font-size: 15px;

    line-height: 1.45;
  }

  .fotos-cart-confirm-actions {
    flex-direction: column;

    align-items: stretch;

    gap: 12px;
  }

  .fotos-cart-confirm-actions button {
    width: 100%;

    min-height: 50px;

    padding: 12px 14px;

    font-size: 16px;
  }

  .fotos-cart-confirm-yes {
    border-color: #de534c;

    background: #de534c;
  }

  .fotos-cart-confirm-yes:hover {
    border-color: #c8443d;

    background: #c8443d;
  }
}

.fotos-cart-items {
  flex: 1;

  overflow-y: auto;

  padding: 12px 20px;
}

.fotos-cart-items > p {
  color:
    var(--fotos-muted);

  font-size: 14px;
}

.fotos-cart-line {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  padding: 11px 0;

  border-bottom:
    1px solid
    var(--fotos-line);

  font-size: 13px;
}

.fotos-cart-line > button {
  flex: 0 0 auto;

  border: 0;

  background: transparent;

  color:
    var(--fotos-muted);

  cursor: pointer;

  font: inherit;

  font-size: 12px;
}

.fotos-cart-line > button:hover {
  color:
    var(--fotos-text);
}

/* ============================================================
   MINIATURA
   ============================================================ */

.fotos-cart-photo {
  display: flex;

  align-items: center;

  gap: 12px;

  min-width: 0;

  flex: 1;
}

.fotos-cart-photo img {
  width: 58px;
  height: 58px;

  flex: 0 0 58px;

  object-fit: cover;

  border-radius: 8px;

  display: block;

  user-select: none;

  -webkit-user-select: none;

  -webkit-touch-callout: none;

  -webkit-user-drag: none;

  touch-action: manipulation;
}

/* ============================================================
   RESUMEN DEL CARRITO
   ============================================================ */

.fotos-cart-total {
  padding: 18px 20px;

  border-top:
    1px solid
    var(--fotos-line);
}

.fotos-email-field {
  display: grid;

  gap: 7px;

  margin-bottom: 15px;

  color:
    var(--fotos-muted);

  font-size: 12px;
}

.fotos-email-field input {
  width: 100%;

  padding: 10px;

  border:
    1px solid
    var(--fotos-line);

  background:
    var(--fotos-bg);

  color:
    var(--fotos-text);

  font: inherit;

  outline: none;

  box-sizing: border-box;
}

.fotos-email-field input:focus {
  border-color:
    var(--fotos-accent);
}

.fotos-checkout-message {
  margin: 0 0 12px;

  color:
    #f0b36a;

  font-size: 12px;

  line-height: 1.4;
}

.fotos-cart-summary-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  margin-bottom: 10px;

  color:
    var(--fotos-muted);

  font-size: 13px;
}

.fotos-cart-regular-total {
  display: flex;

  align-items: baseline;

  gap: 8px;
}

.fotos-cart-regular-total del {
  color:
    var(--fotos-muted);

  font-size: 11px;
}

.fotos-cart-regular-total strong {
  color:
    var(--fotos-text);

  font-size: 19px;

  font-weight: 600;
}

.fotos-cart-discount {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  margin-bottom: 10px;

  padding: 8px 10px;

  background:
    rgba(232, 163, 61, 0.08);

  border:
    1px solid
    rgba(232, 163, 61, 0.18);

  color:
    var(--fotos-muted);

  font-size: 12px;
}

.fotos-cart-discount strong {
  color:
    var(--fotos-accent);

  font-weight: 700;
}

.fotos-cart-total > button {
  width: 100%;

  padding: 13px;

  background:
    var(--fotos-accent);

  color:
    #1a1300;

  font-weight: 600;
}

.fotos-cart-total > button:disabled {
  cursor: not-allowed;

  opacity: 0.5;
}

.fotos-cart-total > button span {
  margin-left: 6px;
}

/* ============================================================
   CARRITO FLOTANTE
   ============================================================ */

.fotos-sticky-cart {
  position: fixed;

  left: 50%;
  bottom: 24px;

  transform:
    translateX(-50%);

  z-index: 25;

  display: flex;

  align-items: center;

  gap: 16px;

  padding: 12px 18px;

  background:
    var(--fotos-card);

  border:
    1px solid
    var(--fotos-line);

  color:
    var(--fotos-text);

  font-size: 13px;

  box-shadow:
    0 10px 30px
    rgba(0, 0, 0, 0.4);
}

.fotos-sticky-cart button {
  display: flex;

  align-items: center;

  gap: 8px;

  border: 0;

  padding: 10px 16px;

  background:
    var(--fotos-accent);

  color:
    #1a1300;

  font-weight: 600;

  font-size: 13px;

  cursor: pointer;

  font-family: inherit;
}

.fotos-sticky-cart button svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .fotos-offers {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .fotos-matches {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }
}

@media (max-width: 720px) {
  .fotos-wrap {
    padding-top: 105px;
  }

  .fotos-match-hero {
    min-height: 450px;

    margin-top: -105px;

    margin-bottom: 36px;

    padding:
      128px 20px 42px;
  }

  .fotos-match-hero-image {
    object-position: center;
  }

  .fotos-match-heading h1 {
    font-size:
      clamp(
        34px,
        9vw,
        48px
      );
  }

  .fotos-intro {
    margin-bottom: 50px;
  }

  .fotos-matches {
    grid-template-columns: 1fr;
  }

  .fotos-match-heading {
    gap: 16px;
  }

  .fotos-hero-details {
    gap: 10px 18px;

    font-size: 13px;
  }

  .fotos-gallery-toolbar {
    align-items: stretch;

    flex-direction: column;
  }

  .fotos-selection-summary {
    justify-content:
      space-between;

    flex-wrap: wrap;
  }

  .fotos-gallery {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .fotos-sticky-cart {
    left: 16px;
    right: 16px;

    bottom: 16px;

    transform: none;

    justify-content:
      space-between;
  }

  .fotos-preview-modal {
    align-items: stretch;

    justify-content: stretch;

    padding: 0;
  }

  .fotos-preview-panel {
    width: 100%;

    max-height: 100vh;

    height: 100vh;

    border: 0;

    box-shadow: none;
  }

  .fotos-preview-nav {
    width: 42px;
    height: 42px;

    font-size: 32px;
  }

  .fotos-preview-nav.is-previous {
    left: 8px;
  }

  .fotos-preview-nav.is-next {
    right: 8px;
  }

  .fotos-preview-header {
    padding: 12px 14px;
  }

  .fotos-preview-content {
    flex: 1;

    min-height: 0;

    max-height: none;

    padding: 0;
  }

  .fotos-preview-content
  .swipe-slide {
    padding: 10px;
  }

  .fotos-preview-content img {
    max-width: 100%;

    max-height: 100%;

    object-fit: contain;
  }

  .fotos-preview-footer {
    align-items: stretch;

    flex-direction: column;

    padding:
      10px 14px;

    padding-bottom:
      calc(
        10px +
        env(safe-area-inset-bottom)
      );
  }

  .fotos-preview-footer > span {
    max-width: none;

    line-height: 1.35;
  }

  .fotos-preview-footer button {
    width: 100%;

    min-height: 46px;

    padding: 10px 13px;

    font-size: 13px;
  }

  .fotos-preview-footer button svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .fotos-header {
    padding: 12px 16px;
  }

  .fotos-wrap {
    padding-left: 16px;

    padding-right: 16px;
  }

  .fotos-intro h1 {
    font-size: 48px;
  }

  .fotos-match-card {
    border-radius: 14px;
  }

  .fotos-cover {
    aspect-ratio: 1.12 / 1;
  }

  .fotos-cover-copy {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .fotos-cover-copy h3 {
    font-size: 23px;
  }

  .fotos-match-details {
    padding:
      15px 16px 17px;
  }

  .fotos-cover-top {
    inset: 12px 12px auto;
  }

  .fotos-cover
  .fotos-category-badge {
    font-size: 9px;

    padding: 5px 9px;
  }

  .fotos-offers {
    grid-template-columns: 1fr;
  }

  .fotos-gallery {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .fotos-sticky-cart {
    gap: 10px;

    padding:
      10px 12px;

    font-size: 12px;
  }

  .fotos-sticky-cart button {
    padding:
      9px 12px;
  }

  .fotos-category-badge {
    font-size: 9px;

    padding: 5px 9px;
  }

  .fotos-series-name {
    font-size: 11px;
  }

  .fotos-clear-selection {
    padding:
      6px 8px;

    font-size: 10px;
  }

  .fotos-preview-header h2 {
    max-width: 230px;

    font-size: 12px;
  }

  .fotos-preview-close {
    width: 36px;
    height: 36px;
  }

  .fotos-preview-footer {
    gap: 10px;
  }

  .fotos-preview-footer > span {
    font-size: 10px;
  }

  .fotos-preview-footer button {
    font-size: 11px;
  }

  .fotos-cart {
    width: 100%;
    max-width: 100vw;
  }

  .fotos-cart-photo-info > span {
    max-width: 150px;
  }
}

/* ============================================================
   BARRA DE PROGRESO DE DESCUENTO
   ============================================================ */

.fotos-discount-bar {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  z-index: 110; /* por encima del visor de fotos (z-index: 100) */

  display: flex;
  align-items: center;
  gap: 24px;

  width: min(780px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 14px 20px;

  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: linear-gradient(135deg, #f7fbff, #e3f0fc);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);

  color: #0d1b2a;

  /*
   * Siempre montada: solo se muestra/oculta con una transición,
   * así el relleno de la barra se anima de verdad al seleccionar.
   */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease,
    bottom 0.3s ease;
}

.fotos-discount-bar.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.fotos-discount-text {
  display: grid;
  gap: 3px;
  flex: 0 0 auto;
  min-width: 170px;
}

.fotos-discount-text strong {
  font-size: 15px;
  font-weight: 700;
}

.fotos-discount-text span {
  font-size: 12px;
  color: #34495e;
}

.fotos-discount-track-wrap {
  position: relative;
  flex: 1;
  height: 28px;
  margin-right: 22px;
}

.fotos-discount-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #d5e6f5;
  overflow: hidden;
}

.fotos-discount-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5eb0f5, #1f7fe0);
  transition: width 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.fotos-discount-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);

  display: grid;
  place-items: center;
  min-width: 42px;
  height: 26px;
  padding: 0 10px;
  box-sizing: border-box;

  border-radius: 999px;
  background: #1f7fe0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;

  transition: background 0.3s ease, border-color 0.3s ease;
}

.fotos-discount-marker.is-reached {
  min-width: 26px;
  width: 26px;
  padding: 0;
  background: #fff;
  border: 2px solid #1f7fe0;
  color: #1f7fe0;
}

/* Con el visor abierto: sube para no tapar el botón "Agregar al carrito" */
.fotos-discount-bar.is-over-viewer {
  bottom: 118px;
}

@media (max-width: 640px) {
  .fotos-discount-bar {
    bottom: 84px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }

  .fotos-discount-bar.is-over-viewer {
    bottom: calc(150px + env(safe-area-inset-bottom));
  }

  .fotos-discount-text {
    min-width: 0;
  }

  /*
   * En columna, "flex: 1" hacía que este contenedor colapsara a 0 de
   * alto y los hitos se salían de la tarjeta. Se fija su altura.
   */
  .fotos-discount-track-wrap {
    flex: none;
    height: 30px;
    margin: 2px 20px 2px 0;
  }
}

.fotos-payment-notice {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(560px, calc(100% - 24px));
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff4f2;
  border: 1px solid #f0b4a8;
  color: #5a1d12;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.fotos-payment-notice p {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.fotos-payment-notice button {
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}

.fotos-cart-fee,
.fotos-cart-pay-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
}

.fotos-cart-pay-total {
  font-size: 1.05rem;
  font-weight: 600;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============================================================
   FINALIZAR COMPRA (pantalla completa)
   ============================================================ */

.fotos-checkout {
  position: fixed;
  inset: 0;
  z-index: 90;

  overflow-y: auto;

  background: var(--fotos-bg);
  color: var(--fotos-text);

  animation: fotosPreviewFade 0.2s ease;
}

.fotos-checkout-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;

  min-height: 100%;
}

.fotos-checkout-left,
.fotos-checkout-right {
  box-sizing: border-box;
  padding: 40px max(24px, 6vw);
}

.fotos-checkout-left {
  background: var(--fotos-surface);
  border-right: 1px solid var(--fotos-line);
}

.fotos-checkout-right {
  max-width: 560px;
  width: 100%;
}

.fotos-checkout-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 36px;
}

.fotos-checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 0;
  border: 0;
  background: transparent;

  color: var(--fotos-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
}

.fotos-checkout-back span {
  font-size: 22px;
  line-height: 1;
}

.fotos-checkout-back:hover {
  color: var(--fotos-accent);
}

.fotos-checkout-back:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fotos-checkout-brand {
  color: var(--fotos-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
}

.fotos-checkout-title {
  margin: 0 0 22px;

  font-size: 28px;
  font-weight: 500;
}

.fotos-checkout-sub {
  margin: -10px 0 26px;

  color: var(--fotos-muted);
  font-size: 14px;
}

.fotos-checkout-group {
  margin-bottom: 26px;
}

.fotos-checkout-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;

  padding-bottom: 10px;
  border-bottom: 1px solid var(--fotos-line);
}

.fotos-checkout-group-head strong {
  font-size: 16px;
  font-weight: 600;
}

.fotos-checkout-group-head span {
  color: var(--fotos-muted);
  font-size: 13px;
}

.fotos-checkout-item {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px 0;
  border-bottom: 1px solid var(--fotos-line);
}

.fotos-checkout-item img {
  flex: 0 0 64px;

  width: 64px;
  height: 64px;

  border-radius: 8px;
  object-fit: cover;

  user-select: none;
  -webkit-user-drag: none;
}

.fotos-checkout-item-info {
  display: grid;
  gap: 4px;

  flex: 1;
  min-width: 0;
}

.fotos-checkout-item-info strong {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.fotos-checkout-item-info del {
  color: var(--fotos-muted);
  font-size: 12px;
  font-weight: 400;
}

.fotos-checkout-item-info strong span {
  color: var(--fotos-accent);
  font-size: 16px;
  font-weight: 700;
}

.fotos-checkout-item-info small {
  overflow: hidden;

  color: var(--fotos-muted);
  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.fotos-checkout-remove {
  flex: 0 0 auto;

  padding: 6px 10px;

  border: 1px solid var(--fotos-line);
  background: transparent;

  color: var(--fotos-muted);
  font: inherit;
  font-size: 12px;

  cursor: pointer;
}

.fotos-checkout-remove:hover:not(:disabled) {
  border-color: #c0675c;
  color: #f0a79d;
}

.fotos-checkout-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ----- columna derecha ----- */

.fotos-checkout-right .fotos-email-field {
  margin-bottom: 18px;
}

.fotos-checkout-method {
  margin-bottom: 30px;
  padding: 14px 16px;

  border-left: 2px solid var(--fotos-accent);
  background: var(--fotos-surface);

  color: var(--fotos-muted);
  font-size: 13px;
  line-height: 1.5;
}

.fotos-checkout-summary-title {
  margin: 0 0 12px;

  font-size: 18px;
  font-weight: 500;
}

.fotos-checkout-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;

  padding: 8px 0;

  color: var(--fotos-muted);
  font-size: 14px;
}

.fotos-checkout-row.is-discount span:last-child {
  color: var(--fotos-accent);
  font-weight: 600;
}

.fotos-checkout-row.is-total {
  margin-top: 6px;
  padding-top: 14px;

  border-top: 1px solid var(--fotos-line);

  color: var(--fotos-text);
  font-size: 16px;
  font-weight: 600;
}

.fotos-checkout-row.is-total strong {
  font-size: 22px;
}

.fotos-checkout-error {
  margin: 14px 0 0;

  color: #f0b36a;
  font-size: 13px;
  line-height: 1.4;
}

.fotos-checkout-pay {
  width: 100%;
  margin-top: 18px;
  padding: 15px;

  border: 0;
  background: var(--fotos-accent);

  color: #1a1300;
  font: inherit;
  font-size: 15px;
  font-weight: 600;

  cursor: pointer;
}

.fotos-checkout-pay:hover:not(:disabled) {
  background: #f2b44e;
}

.fotos-checkout-pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .fotos-checkout-inner {
    grid-template-columns: 1fr;
  }

  .fotos-checkout-left {
    border-right: 0;
    border-bottom: 1px solid var(--fotos-line);
  }

  .fotos-checkout-left,
  .fotos-checkout-right {
    padding: 28px 18px;
  }

  .fotos-checkout-right {
    max-width: none;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
}

/* ============================================================
   /finalizar-compra  (estilo banlek, claro)
   ============================================================ */

.fc-page {
  position: fixed;
  inset: 0;
  z-index: 200;

  overflow-y: auto;
  overscroll-behavior: contain;

  background: #ffffff;
  color: #0d1b2a;
  font-family: "DM Sans", sans-serif;
}

.fc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.fc-left {
  box-sizing: border-box;
  padding: 56px max(24px, 6vw) 60px;
  background: #fafcff;
}

.fc-right {
  box-sizing: border-box;
  padding: 56px max(24px, 6vw) 60px;
}

.fc-left > * {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.fc-right-inner {
  max-width: 470px;
  margin: 0 auto;
}

.fc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 34px;
}

.fc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #1f2a37;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  justify-content: flex-start;
}

.fc-back span {
  font-size: 24px;
  line-height: 1;
}

.fc-back:hover {
  color: #1f7fe0;
}

.fc-back:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fc-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0d1b2a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
}

.fc-brand span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e8a33d;
  box-shadow: 0 0 10px #e8a33d;
}

.fc-topbar-spacer {
  flex: 1;
}

.fc-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 500;
  color: #0d1b2a;
}

.fc-left .fc-title {
  margin-bottom: 26px;
}

.fc-muted {
  margin: 0 0 24px;
  color: #6b7f99;
  font-size: 15px;
}

.fc-group {
  display: grid;
  gap: 4px;
  margin-bottom: 26px;
}

.fc-group-title {
  font-size: 17px;
  font-weight: 600;
}

.fc-group-sub {
  color: #6b7f99;
  font-size: 14px;
}

.fc-section-label {
  margin-top: 22px;
  color: #6b7f99;
  font-size: 13px;
  font-weight: 600;
}

.fc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.fc-item img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.fc-item-info {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.fc-item-info strong {
  font-size: 17px;
  font-weight: 600;
}

.fc-item-info del {
  color: #8497b1;
  font-size: 12px;
}

.fc-item-info small {
  overflow: hidden;
  color: #4b5d75;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-remove {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: #8497b1;
  cursor: pointer;
}

.fc-remove svg {
  width: 24px;
  height: 24px;
}

.fc-remove:hover:not(:disabled) {
  color: #de534c;
}

.fc-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fc-empty p {
  color: #6b7f99;
}

.fc-empty button {
  padding: 11px 18px;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  background: #fff;
  color: #1f2a37;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ----- derecha ----- */

.fc-tab {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 16px;
  border-bottom: 2px solid #1f7fe0;
  color: #1f7fe0;
  font-size: 14px;
  font-weight: 600;
}

.fc-hint {
  margin: 0 0 22px;
  padding: 14px 0;
  border-top: 1px solid #e3e8ee;
  border-bottom: 1px solid #e3e8ee;
  color: #6b7f99;
  font-size: 13px;
  line-height: 1.5;
}

.fc-field {
  display: grid;
  gap: 7px;
  margin-bottom: 26px;
  color: #6b7f99;
  font-size: 13px;
}

.fc-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  background: #fff;
  color: #0d1b2a;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.fc-field input:focus {
  border-color: #1f7fe0;
  box-shadow: 0 0 0 3px rgba(31, 127, 224, 0.15);
}

.fc-summary-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 500;
}

.fc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  color: #6b7f99;
  font-size: 14px;
}

.fc-row.is-blue span:last-child {
  color: #1f7fe0;
  font-weight: 600;
}

.fc-row.is-total {
  padding-top: 12px;
  color: #0d1b2a;
  font-size: 17px;
  font-weight: 700;
}

.fc-error {
  margin: 12px 0 0;
  color: #c0392b;
  font-size: 13px;
  line-height: 1.4;
}

.fc-pay {
  width: 100%;
  margin-top: 16px;
  padding: 15px;
  border: 0;
  border-radius: 8px;
  background: #2687e8;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fc-pay:hover:not(:disabled) {
  background: #1f7fe0;
}

.fc-pay:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .fc-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .fc-left,
  .fc-right {
    padding: 28px 18px 32px;
  }

  .fc-right {
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }

  .fc-topbar {
    margin-bottom: 24px;
  }
}

@media (max-width: 860px) {
  /* evita el zoom automático de iOS al escribir el correo */
  .fc-field input {
    font-size: 16px;
  }

  /* botón quitar más fácil de tocar */
  .fc-remove {
    width: 40px;
    height: 40px;
  }

  .fc-back {
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  /* barra superior: solo el botón volver, sin el nombre */
  .fc-brand {
    display: none;
  }

  .fc-title {
    font-size: 24px;
  }

  .fc-item img {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }
}

/* Agregar al final de Fotos.css */
.fotos-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fotos-account-button {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.9;
}

.fotos-account-button:hover {
  opacity: 1;
}

/* Recuadro "No has iniciado sesión" en /finalizar-compra */
.fc-login-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 8px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f1f5f9;
}

.fc-login-box strong {
  display: block;
  font-size: 0.95rem;
}

.fc-login-box p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 0.82rem;
}

.fc-login-box button {
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  background: #2b88ee;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.fc-login-box.is-logged {
  background: #eff6ff;
  border-color: #bfdbfe;
}

@media (max-width: 520px) {
  .fc-login-box {
    flex-direction: column;
    align-items: stretch;
  }
  .fotos-account-button span.long {
    display: none;
  }
}

.fc-login-box.is-logged a {
  flex: 0 0 auto;
  color: #2b88ee;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}