/* ==========================================================================
   tuNFC · «Así quedaría tu perfil» y «Lo que pasa al tocarla» (includes/perfil-muestra.php)
   Usa los colores de t3-chrome.css, que cargan todas las páginas de la tienda.
   ========================================================================== */
.pm {
  --pm-esc: .8;                      /* el celular: 375 px de perfil a escala */
  margin: 56px auto 0; max-width: 1100px; padding: 0 20px; box-sizing: border-box;
  scroll-margin-top: 90px; font-family: var(--t3-texto, system-ui, sans-serif); color: var(--t3-tinta, #0F1A15);
}
.pm--dentro { padding: 0; max-width: none; }
.pm *, .pm *::before, .pm *::after { box-sizing: border-box; }
.pm__dentro {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "texto movil" "controles movil";
  grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 0; align-items: start;
  background: var(--t3-papel, #F3F5F1); border: 1px solid var(--t3-linea, #D9E0D8); border-radius: var(--t3-r-4, 28px);
  padding: 48px 56px;
}
.pm__texto { grid-area: texto; align-self: end; }
.pm__controles { grid-area: controles; }
.pm__movil { grid-area: movil; align-self: center; }
.pm__antetitulo { margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t3-verde-tx, #0B7A4D); }
.pm__titulo { margin: 0 0 12px; font-family: var(--t3-display, system-ui, sans-serif); font-size: clamp(1.75rem, 1.2vw + 1.3rem, 2.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; font-stretch: 92%; }
.pm__lead { margin: 0 0 22px; font-size: 1rem; line-height: 1.6; color: var(--t3-tinta-2, #43524A); max-width: 46ch; }

.pm__campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pm__campos--uno { grid-template-columns: 1fr; max-width: 360px; margin-top: 22px; }
.pm__campo span { display: block; font-size: .82rem; font-weight: 600; color: var(--t3-tinta-2, #43524A); margin-bottom: 6px; }
.pm__campo input {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; /* 16 px: iOS no hace zoom */
  color: var(--t3-tinta, #0F1A15); background: #fff; border: 1px solid var(--t3-linea-2, #C3CDC4); border-radius: var(--t3-r-2, 12px);
}
.pm__campo input:focus-visible { outline: 2px solid var(--t3-verde-tx, #0B7A4D); outline-offset: 1px; border-color: transparent; }

.pm__fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.pm__logo {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border: 1px dashed var(--t3-linea-2, #C3CDC4); border-radius: 999px; background: #fff; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--t3-tinta, #0F1A15);
}
.pm__logo:hover { border-color: var(--t3-tinta, #0F1A15); }
.pm__logo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pm__logo:focus-within { outline: 2px solid var(--t3-verde-tx, #0B7A4D); outline-offset: 2px; }
.pm__reiniciar { min-height: 44px; padding: 10px 6px; border: 0; background: none; font: inherit; font-size: .88rem; color: var(--t3-tinta-2, #43524A); text-decoration: underline; cursor: pointer; }

.pm__temas-t { font-size: .9rem; color: var(--t3-tinta-2, #43524A); margin-bottom: 10px; }
.pm__temas-t strong { color: var(--t3-tinta, #0F1A15); }
.pm__temas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; max-width: 460px; }
.pm__tema {
  display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 44px; padding: 6px 2px 5px;
  border: 2px solid transparent; border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: var(--t3-tinta-2, #43524A);
  box-shadow: 0 0 0 1px var(--t3-linea, #D9E0D8);
  transition: box-shadow .16s var(--t3-sale, ease), border-color .16s var(--t3-sale, ease);
}
.pm__tema i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--f) 50%, var(--a) 50%); box-shadow: inset 0 0 0 1px rgba(15, 26, 21, .16); }
.pm__tema span { font-size: .7rem; line-height: 1.1; }
.pm__tema[aria-checked="true"] { border-color: var(--t3-verde-tx, #0B7A4D); box-shadow: 0 0 0 3px rgba(29, 193, 116, .18); color: var(--t3-tinta, #0F1A15); }
.pm__tema:focus-visible { outline: 2px solid var(--t3-verde-tx, #0B7A4D); outline-offset: 2px; }

.pm__nota { margin: 0 0 18px; font-size: .8rem; line-height: 1.5; color: var(--t3-tinta-3, #65736B); max-width: 52ch; }
.pm__incluye { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 7px; font-size: .92rem; color: var(--t3-tinta, #0F1A15); }
.pm__incluye li { position: relative; padding-left: 26px; line-height: 1.45; }
.pm__incluye li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--t3-menta, #DDF6E9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7A4D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pm__ejemplo {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; background: var(--t3-tinta, #0F1A15); color: #fff; font-weight: 700; font-size: .98rem; text-decoration: none;
  transition: transform .16s var(--t3-sale, ease), background .16s var(--t3-sale, ease);
}
.pm__ejemplo:hover { background: var(--t3-verde-os, #085C3A); color: #fff; }
.pm__ejemplo:active { transform: scale(.97); }
.pm__ejemplo-nota { display: block; margin-top: 8px; font-size: .78rem; color: var(--t3-tinta-3, #65736B); }

/* --- el celular --- */
.pm__movil { display: flex; flex-direction: column; align-items: center; }
.pm__marco {
  position: relative; width: calc(375px * var(--pm-esc) + 20px); height: calc(760px * var(--pm-esc) + 20px);
  padding: 10px; border-radius: calc(54px * var(--pm-esc) + 10px); background: #0F1A15; overflow: hidden;
  box-shadow: 0 0 0 1.5px #2B3A32, 0 30px 60px -24px rgba(15, 26, 21, .5), 0 12px 24px -12px rgba(15, 26, 21, .3);
}
.pm__isla { position: absolute; z-index: 3; top: 18px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #0F1A15; pointer-events: none; }
.pm__pantalla, .pm__cargando, .pmr {
  position: absolute; top: 10px; left: 10px; width: 375px; height: 760px; border: 0; border-radius: 54px; overflow: hidden;
  transform: scale(var(--pm-esc)); transform-origin: 0 0; background: #0C1210;
}
.pm__cargando { z-index: 2; display: grid; place-items: center; transition: opacity .25s ease; color: #A9B5AE; font-size: 1.2rem; text-align: center; padding: 40px; }
.pm__cargando a { color: #fff; }
.pm__cargando span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--t3-verde, #1DC174); animation: pm-gira .8s linear infinite; }
.pm[data-listo] .pm__cargando { opacity: 0; pointer-events: none; }
@keyframes pm-gira { to { transform: rotate(360deg); } }
.pm__pie { margin: 14px 0 0; font-size: .78rem; color: var(--t3-tinta-3, #65736B); text-align: center; max-width: 300px; }

/* --- reseñas: la hoja de Google (maqueta) --- */
.pm__marco--claro .pm__isla { background: #0F1A15; }
.pmr { background: #E8EAED; font-family: Roboto, "Instrument Sans", system-ui, sans-serif; color: #202124; }
.pmr__barra { position: absolute; top: 0; left: 0; right: 0; height: 64px; padding: 20px 34px 0; display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; z-index: 2; }
.pmr__url { font-weight: 500; color: #5F6368; font-size: 13px; padding-top: 2px; }
.pmr__fondo { position: absolute; inset: 0; }
.pmr__mapa {
  position: absolute; inset: 0; opacity: .55;
  background:
    linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 120px 120px,
    linear-gradient(0deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%) 0 0 / 160px 160px,
    radial-gradient(circle at 70% 30%, #C8E6C9 0 60px, transparent 61px),
    #E3E7EA;
}
.pmr__hoja {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 24px 34px; background: #fff; border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .14);
}
.pmr__agarre { width: 40px; height: 4px; border-radius: 2px; background: #DADCE0; margin: 0 auto 18px; }
.pmr__negocio { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.pmr__inicial { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #1A73E8; color: #fff; font-size: 21px; font-weight: 600; }
.pmr__negocio b { display: block; font-size: 19px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.pmr__negocio small { display: block; margin-top: 3px; font-size: 14px; color: #5F6368; }
.pmr__estrellas { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.pmr__estrellas svg { fill: none; stroke: #80868B; stroke-width: 1.4; stroke-linejoin: round; }
.pm--resenas[data-visto] .pmr__estrellas svg { animation: pmr-llena .32s var(--t3-sale, ease) both; }
.pm--resenas[data-visto] .pmr__estrellas svg:nth-child(2) { animation-delay: .14s; }
.pm--resenas[data-visto] .pmr__estrellas svg:nth-child(3) { animation-delay: .28s; }
.pm--resenas[data-visto] .pmr__estrellas svg:nth-child(4) { animation-delay: .42s; }
.pm--resenas[data-visto] .pmr__estrellas svg:nth-child(5) { animation-delay: .56s; }
@keyframes pmr-llena { 0% { fill: transparent; stroke: #80868B; transform: scale(1); } 60% { transform: scale(1.18); } 100% { fill: #F5B301; stroke: #F5B301; transform: scale(1); } }
.pmr__texto { min-height: 120px; padding: 14px 16px; border: 1px solid #DADCE0; border-radius: 10px; font-size: 15px; line-height: 1.4; color: #80868B; margin-bottom: 14px; }
.pmr__fotos { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #DADCE0; border-radius: 999px; font-size: 14px; font-weight: 500; color: #1A73E8; margin-bottom: 26px; }
.pmr__botones { display: flex; justify-content: flex-end; gap: 10px; font-size: 15px; font-weight: 600; }
.pmr__cancelar { padding: 10px 16px; color: #1A73E8; }
.pmr__publicar { padding: 10px 22px; border-radius: 999px; background: #1A73E8; color: #fff; }

.pm__pasos { list-style: none; counter-reset: pm; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 46ch; }
.pm__pasos li { counter-increment: pm; position: relative; padding-left: 44px; }
.pm__pasos li::before {
  content: counter(pm); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--t3-tinta, #0F1A15); color: #fff; font-weight: 700; font-size: .9rem;
}
.pm__pasos b { display: block; font-size: .98rem; margin-bottom: 2px; }
.pm__pasos span { display: block; font-size: .9rem; line-height: 1.5; color: var(--t3-tinta-2, #43524A); }

@media (max-width: 900px) {
  /* En el celular: el título, el perfil y debajo los campos (al escribir se ve el cambio arriba). */
  .pm__dentro { grid-template-columns: 1fr; grid-template-areas: "texto" "movil" "controles"; grid-template-rows: auto; row-gap: 24px; padding: 28px 20px 32px; }
  .pm__lead { margin-bottom: 0; }
}
@media (max-width: 480px) {
  .pm { --pm-esc: .72; padding: 0 12px; margin-top: 36px; }
  .pm--dentro { padding: 0; }
  .pm__dentro { border-radius: 22px; padding: 24px 16px 28px; }
  .pm__campos { grid-template-columns: 1fr; }
  .pm__temas { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .pm__ejemplo { width: 100%; }
}
@media (max-width: 340px) { .pm { --pm-esc: .64; } }
@media (prefers-reduced-motion: reduce) {
  .pm--resenas[data-visto] .pmr__estrellas svg { animation: none; fill: #F5B301; stroke: #F5B301; }
  .pm__cargando span { animation-duration: 2s; }
}
