/* =========================================================
   PATITAGS — CSS OPTIMIZADO + SLIDER FIX
   - Galería: desktop grid / mobile slider con snap
   - Imágenes visibles (sin pseudo-elementos que tapen)
   ========================================================= */

/* =========================
   TOKENS + BASE
   ========================= */
:root{
  /* =====================================================
     ✅ CAMBIO: paleta “macho” basada en azul tipo logo
     (solo colores, todo lo demás igual)
     ===================================================== */
  --primary-color:#1a73e8;     /* azul principal */
  --secondary-color:#0b3d91;   /* azul profundo */
  --accent-color:#63b3ff;      /* celeste/acento */
  --success-color:#25d366;

  --font-primary:"Poppins", sans-serif;
  --font-pet-name:"Montserrat", sans-serif;

  --nav-h:56px;

  /* ✅ CAMBIO: fondos suaves azules (antes rosados) */
  --bg-1:#eaf3ff;
  --bg-2:#d9ecff;

  --text-dark:#1d1d1f;
  --text-light:#5f6368;

  --divider: rgba(0,0,0,.08);

  /* ✅ CAMBIO: focus (antes rosado) */
  --focus: rgba(26,115,232,.55);

  --glass-bg: rgba(255,255,255,.07);
  --glass-tint: rgba(255,255,255,.03);
  --glass-border: rgba(255,255,255,.32);
  --glass-blur: 28px;
  --glass-radius: 18px;

  --shadow-elev: 0 30px 90px rgba(0,0,0,.12);
  --shadow-soft: 0 14px 36px rgba(0,0,0,.10);

  /* ✅ CAMBIO: footer azul */
  --footer-ink: rgba(26,115,232,.85);
  --footer-bg: rgba(255,255,255,.06);
}

body[data-theme="dark"]{
  --bg-1:#0f0f12;
  --bg-2:#14141a;

  --text-dark:#f2f2f2;
  --text-light:#c9c9c9;

  --divider: rgba(255,255,255,.12);

  --glass-bg: rgba(18,18,20,.30);
  --glass-border: rgba(255,255,255,.12);

  --shadow-elev: 0 34px 110px rgba(0,0,0,.50);
  --shadow-soft: 0 18px 40px rgba(0,0,0,.35);

  --footer-ink: rgba(255,255,255,.86);
  --footer-bg: rgba(18,18,20,.18);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }

/* ✅ Fix scroll con nav fijo */
:target{ scroll-margin-top: calc(var(--nav-h) + 14px); }

body{
  font-family: var(--font-primary);
  color: var(--text-dark);
  overflow-x:hidden;
  padding-top: var(--nav-h);

  /* =====================================================
     ✅ CAMBIO: gradientes de fondo azules (antes rosados)
     ===================================================== */
  background:
    radial-gradient(1100px 700px at 15% 12%, rgba(26,115,232,.22), transparent 60%),
    radial-gradient(900px 600px at 85% 25%, rgba(99,179,255,.18), transparent 58%),
    radial-gradient(900px 700px at 50% 90%, rgba(11,61,145,.12), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .18;
  mix-blend-mode: overlay;
}

img{ max-width:100%; height:auto; display:block; }

button:focus, a:focus{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}

/* =========================
   GLASS
   ========================= */
.glass{
  background: linear-gradient(135deg, var(--glass-bg), var(--glass-tint));
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow:
    var(--shadow-elev),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  position: relative;
  overflow:hidden;
}

.glass::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 45%),
    linear-gradient(115deg, rgba(255,255,255,0), rgba(255,255,255,.16), rgba(255,255,255,0) 72%),
    radial-gradient(900px 360px at 20% 10%, rgba(255,255,255,.20), transparent 62%),
    radial-gradient(900px 360px at 100% 100%, rgba(255,255,255,.10), transparent 60%);
  opacity:.95;
}
.glass::after{
  content:"";
  position:absolute;
  inset:1px;
  border-radius: calc(var(--glass-radius) - 1px);
  pointer-events:none;
  border: 1px solid rgba(255,255,255,.10);
  opacity: .9;
}
.glass > *{ position:relative; z-index:1; }

/* =========================
   BACKGROUND DECOR
   ========================= */
.paw-bg-animation{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;

  /* ✅ CAMBIO: decor azules (antes morado/rosado) */
  background:
    radial-gradient(circle at 20% 50%, rgba(26,115,232,.10), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(99,179,255,.10), transparent 50%);
}

/* =========================
   NAV
   ========================= */
.top-nav{
  position:fixed;
  top:0; left:0; right:0;
  height: var(--nav-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
  z-index:950;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border-bottom: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  transition: .25s ease;
}
body[data-theme="dark"] .top-nav{
  background: linear-gradient(135deg, rgba(18,18,20,.34), rgba(18,18,20,.22));
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 34px rgba(0,0,0,.30);
}
.top-nav.scrolled{
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  box-shadow: 0 16px 50px rgba(0,0,0,.10);
}
body[data-theme="dark"] .top-nav.scrolled{
  background: linear-gradient(135deg, rgba(18,18,20,.44), rgba(18,18,20,.28));
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}

.nav-brand{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:6px 10px;
  border-radius:14px;
  text-decoration:none;
  color: var(--text-dark);
  overflow:hidden;
  transition:.2s ease;
}
.nav-brand:hover{ background: rgba(0,0,0,.05); transform: translateY(-1px); }
body[data-theme="dark"] .nav-brand:hover{ background: rgba(255,255,255,.06); }

.brand-logo{
  width:40px; height:40px;
  border-radius:50%;
  overflow:hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.25);
}
body[data-theme="dark"] .brand-logo{
  background: rgba(18,18,20,.22);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.brand-logo img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }

.brand-shine{
  position:absolute;
  top:-40%;
  left:-70%;
  width:55%;
  height:180%;
  transform: rotate(18deg);
  opacity:0;
  background: linear-gradient(115deg, rgba(255,255,255,0), rgba(255,255,255,.42), rgba(255,255,255,0));
  pointer-events:none;
}
.nav-brand:hover .brand-shine{ opacity:1; animation: brandShine 900ms ease forwards; }
@keyframes brandShine{ from{left:-70%} to{left:140%} }

.brand-text{ font-weight:900; letter-spacing:.2px; }

.nav-links{ display:flex; align-items:center; gap:8px; }
.nav-link{
  text-decoration:none;
  color: var(--text-dark);
  font-weight:800;
  font-size:.95rem;
  padding:6px 10px;
  border-radius:10px;
  position:relative;
  transition:.2s ease;
}
.nav-link:hover{ background: rgba(0,0,0,.05); }
body[data-theme="dark"] .nav-link:hover{ background: rgba(255,255,255,.08); }

.nav-link::after{
  content:"";
  position:absolute;
  left:10px; right:10px;
  bottom:6px;
  height:2px;
  border-radius:99px;

  /* ✅ ya usa variables -> queda azul automáticamente */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

  transform: scaleX(0);
  transform-origin:left;
  transition: .25s ease;
}
.nav-link:hover::after{ transform: scaleX(1); }

.nav-cta{
  /* ✅ ya usa variables -> queda azul automáticamente */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color:#fff;
}
.nav-cta::after{ display:none; }

.nav-actions{ display:flex; align-items:center; gap:8px; }

#theme-toggle{
  width:40px; height:40px;
  border-radius:50%;
  border:none;
  cursor:pointer;
  display:grid;
  place-items:center;
  color:#fff;

  /* ✅ ya usa variables -> queda azul automáticamente */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

  box-shadow: 0 10px 22px rgba(0,0,0,.15);
}

.nav-toggle{
  display:none;
  border:none;
  background:transparent;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  color: var(--text-dark);
  padding:6px 10px;
  border-radius:10px;
}
.nav-toggle:hover{ background: rgba(0,0,0,.05); }
body[data-theme="dark"] .nav-toggle:hover{ background: rgba(255,255,255,.08); }

@media (max-width:820px){
  .nav-toggle{ display:inline-flex; }
  .nav-links{
    position:fixed;
    top: var(--nav-h);
    left:12px; right:12px;
    display:none;
    flex-direction:column;
    gap:8px;
    padding:12px;
    border-radius:16px;
    background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.34);
    box-shadow: 0 22px 70px rgba(0,0,0,.18);
    backdrop-filter: blur(28px) saturate(1.35);
    -webkit-backdrop-filter: blur(28px) saturate(1.35);
  }
  body[data-theme="dark"] .nav-links{
    background: linear-gradient(135deg, rgba(18,18,20,.40), rgba(18,18,20,.24));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 22px 70px rgba(0,0,0,.45);
  }
  .nav-links.open{ display:flex; }
  .nav-link{ width:100%; text-align:center; }
}

/* =========================
   HEADER
   ========================= */
.header{
  position: relative;
  overflow: hidden;

  /* ✅ ya usa variables -> queda azul automáticamente */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

  color:#fff;
  padding: 52px 16px 56px;
  text-align:center;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.header::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(closest-side at 20% 25%, rgba(255,255,255,.22), transparent 62%),

    /* ✅ CAMBIO: glow de acento (antes rosado) */
    radial-gradient(closest-side at 80% 35%, rgba(99,179,255,.18), transparent 64%),

    radial-gradient(closest-side at 50% 90%, rgba(255,255,255,.14), transparent 66%),
    linear-gradient(115deg, rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0) 72%);
  filter: blur(18px);
  opacity: .85;
  animation: headerGlow 10s ease-in-out infinite;
  pointer-events:none;
}
@keyframes headerGlow{
  0%,100%{ transform: translate(-2%, -2%) scale(1.02); }
  50%{ transform: translate(3%, 2%) scale(1.07); }
}
.header-content{ max-width: 760px; margin: 0 auto; }
.header-content.header-glass{
  padding: 18px 16px 16px;
  border-radius: calc(var(--glass-radius) + 6px);
}

.tagline{ opacity:.95; font-weight:700; letter-spacing:.2px; }
.header i{
  font-size: 44px;
  margin: 12px 0;
  animation: bounce 2s infinite;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}
#pet-name{
  font-family: var(--font-pet-name);
  font-weight: 900;
  letter-spacing:.6px;
  text-transform: uppercase;
  margin: 10px 0 10px;
  line-height:1.1;
  text-shadow: 0 12px 26px rgba(0,0,0,.22);
}
@keyframes bounce{
  0%,100%{ transform:translateY(0) }
  50%{ transform:translateY(-10px) }
}

.scroll-indicator{
  margin: 14px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255,255,255,.95);
  font-weight: 900;
  letter-spacing: .2px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  animation: floatPill 1.8s ease-in-out infinite;
}
@keyframes floatPill{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-3px); } }
.scroll-text{ font-size: 13px; text-transform: uppercase; opacity: .95; }
.scroll-mouse{
  width: 22px; height: 32px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.92);
  position: relative;
  display: inline-block;
  opacity: .95;
}
.scroll-dot{
  position: absolute;
  left: 50%;
  top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  transform: translateX(-50%);
  animation: scrollDot 1.4s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ transform: translate(-50%, 0); opacity: .95; }
  60%{ transform: translate(-50%, 10px); opacity: .55; }
  100%{ transform: translate(-50%, 0); opacity: .95; }
}

/* =========================
   MAIN + CARDS
   ========================= */
.main-content{ max-width: 860px; margin: 0 auto; padding: 18px 16px 40px; }

.fade-in{ animation: fadeIn .8s ease-out; }
@keyframes fadeIn{ from{ opacity:0; transform: translateY(14px); } to{ opacity:1; transform: translateY(0); } }

.profile-card{
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.30);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}
body[data-theme="dark"] .profile-card{
  background: linear-gradient(135deg, rgba(18,18,20,.34), rgba(18,18,20,.22));
  border: 1px solid rgba(255,255,255,.12);
}

.pet-photo-container{
  position:relative;
  width:100%;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 14px;
  overflow:hidden;
  aspect-ratio: 1 / 1;
}
.pet-photo{ width:100%; height:100%; object-fit:cover; }
.status-badge{
  position:absolute;
  top:12px; right:12px;

  /* ✅ ya usa variable -> queda azul automáticamente */
  background: var(--primary-color);

  color:#fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing:.5px;
  box-shadow: 0 10px 20px rgba(0,0,0,.16);
}

.found-card{ margin-top:14px; padding:14px; border-radius:16px; text-align:center; }
.found-title{ margin:0 0 10px; font-weight:900; }
.found-line{
  margin:8px 0;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  color: var(--text-light);
  font-weight:600;
}
.found-line i{ color: var(--primary-color); font-size:16px; }
.wa-gif{ width: 50px; margin: 7px auto 0; border-radius: 8px; }

/* Details */
.details-section{ margin-top: 18px; }
.details-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.detail-item{ border-radius: 16px; padding: 14px; text-align:center; }
.detail-item i{ color: var(--primary-color); font-size: 26px; margin-bottom: 8px; }
.detail-item p{ color: var(--text-light); font-weight:600; }
.detail-item span{ display:block; color: var(--text-dark); font-weight:900; margin-top: 4px; }

/* Description */
.description-section{
  margin-top: 18px;

  /* ✅ ya usa variable -> queda azul automáticamente */
  border-left: 5px solid var(--accent-color);

  border-radius: 16px;
  padding: 16px;
}
.description h3{
  text-align:center;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 900;
}
.description p{ color: var(--text-light); line-height: 1.75; text-align: center; }

/* Reward */
.info-section{
  margin-top: 18px;
  border-radius: 18px;
  padding: 16px;
  text-align:center;
}
.info-section h2{
  color: var(--primary-color);
  font-weight: 900;
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.section-description{ color: var(--text-light); margin-bottom: 12px; }
.contact-owner-info{ border-radius: 14px; padding: 12px; }

/* Mini note */
.mini-note{
  display:flex;
  gap:8px;
  align-items:flex-start;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.035);
  border: 1px solid rgba(0,0,0,.055);
  margin: 10px auto 12px;
  max-width: 46ch;
  text-align: left;
}
body[data-theme="dark"] .mini-note{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.mini-note i{ margin-top: 2px; color: var(--primary-color); font-size: 14px; flex: 0 0 14px; }
.mini-note p{ margin: 0; color: var(--text-light); line-height: 1.35; font-size: .86rem; }
.mini-note.is-tiny p{ font-size: .72rem; line-height: 1.3; opacity: .95; }
.mini-note.is-tiny i{ font-size: 12px; }

/* =========================
   GALERÍA (FIX)
   ========================= */
.pati-gallery-wrap{
  padding: 18px 16px 10px;
  display:grid;
  gap: 12px;
  justify-items:center;
}

.pati-gallery{
  width: min(980px, 100%);
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pati-photo-card{
  -webkit-appearance:none;
  appearance:none;
  border:none;
  background: transparent;
  padding: 0;
  cursor:pointer;

  border-radius: calc(var(--glass-radius) + 10px);
  overflow:hidden;

  /* tamaño consistente */
  aspect-ratio: 3 / 4;
  min-height: 280px;

  /* para que el glass no “tape” la imagen */
  isolation: isolate;
}

.pati-img{
  width:100%;
  height:100%;
  object-fit: cover;  /* ✅ se ve “bonita” en card */
  transform: scale(1.02); /* micro zoom premium */
  transition: transform .25s ease;
  display:block;
}

@media (hover:hover){
  .pati-photo-card:hover .pati-img{ transform: scale(1.06); }
}

/* Mobile slider con snap */
@media (max-width: 900px){
  .pati-gallery{
    display:flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 8px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: min(520px, 100%);
  }
  .pati-gallery::-webkit-scrollbar{ display:none; }

  .pati-photo-card{
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
}

/* Hint */
.pati-swipe-hint{
  display:flex;
  gap: 8px;
  align-items:center;
  font-weight: 900;
  color: var(--text-light);
  opacity: .9;
}
.pati-arrow{
  display:inline-block;
  animation: patiNudge 1.2s ease-in-out infinite;
}
@keyframes patiNudge{
  0%,100%{ transform: translateX(0); opacity: .75; }
  50%{ transform: translateX(6px); opacity: 1; }
}

/* Dots (render por JS) */
.pati-dots{
  display:flex;
  gap: 8px;
  align-items:center;
  justify-content:center;
  min-height: 14px;
}
.pati-dots .dot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.22);
  transition: width .22s ease, background .22s ease, opacity .22s ease;
  opacity: .85;
}
.pati-dots .dot.is-active{
  width: 22px;

  /* ✅ ya usa variables -> queda azul automáticamente */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

  opacity: 1;
}

/* Active card (mobile) */
@media (max-width: 900px){
  .pati-photo-card{
    transform: scale(.985);
    opacity: .92;
    transition: transform .22s ease, opacity .22s ease, filter .22s ease;
  }
  .pati-photo-card.is-active{
    transform: scale(1.02);
    opacity: 1;
  }
}

/* =========================
   LIGHTBOX
   ========================= */
.pati-lightbox{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 1200;
}
.pati-lightbox.is-open{ display:block; }

.pati-lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.pati-lightbox-panel{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 560px);
  border-radius: calc(var(--glass-radius) + 8px);
  padding: 14px;
}

.pati-lightbox-close{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color: var(--text-dark);
  font-weight: 900;
  cursor:pointer;
  display:grid;
  place-items:center;
  margin-left:auto;
  margin-bottom: 10px;
}
body[data-theme="dark"] .pati-lightbox-close{ color: #fff; }

.pati-lightbox-img{
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: calc(var(--glass-radius) - 2px);
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(255,255,255,.18);
}

/* =========================
   COMPRAR
   ========================= */
.nfc-offer-section{ max-width:1000px; margin: 26px auto 6px; padding: 0 16px; }

.nfc-card{
  border-radius: 18px;
  padding: 18px;
  display:grid;
  grid-template-columns: 1fr 1px 1fr;
  gap:18px;
  align-items:start;
}
.nfc-left,.nfc-right{ text-align:center; }
.nfc-divider{ width:1px; align-self:stretch; background: var(--divider); }

.nfc-title{ font-weight:900; font-size:1.35rem; margin:0 0 6px; }
.nfc-subtitle{ max-width:42ch; margin:0 auto 12px; color:var(--text-light); line-height:1.45; }

.nfc-list{
  list-style:none;
  padding:0;
  margin:12px auto 14px;
  max-width:44ch;
  display:grid;
  gap:8px;
}
.nfc-list li{
  padding:10px 12px;
  border-radius:12px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.05);
  color: var(--text-dark);
}
body[data-theme="dark"] .nfc-list li{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

/* CTA */
.nfc-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:12px;
  font-weight:900;
  text-decoration:none;
  color:#fff;
  background:#3dbb45;
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
}
.nfc-cta:hover{ filter: brightness(.96); }
.nfc-cta--below{ margin-top: 12px; width: 100%; max-width: 340px; }

/* NFC head */
.nfc-head{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-bottom: 12px;
  text-align:left;
}
.nfc-logoWrap{
  position:relative;
  width:60px; height:60px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:18px;
}
.nfc-logoWrap::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius: 22px;

  /* ✅ CAMBIO: glow azul (antes mezcla rosada) */
  background:
    radial-gradient(circle at 30% 30%, rgba(111,225,255,.28), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(26,115,232,.22), transparent 58%);

  filter: blur(7px);
  opacity: .95;
  pointer-events:none;
  z-index:0;
}
.nfc-logo{
  width:60px; height:60px;
  border-radius:18px;
  object-fit:cover;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 16px 40px rgba(0,0,0,.18), 0 0 0 6px rgba(255,255,255,.06);
  position: relative;
  z-index: 1;
}

@media (max-width: 520px){
  .nfc-head{ flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .nfc-logoWrap{ width:72px; height:72px; animation: nfcLogoFloat 2.4s ease-in-out infinite; }
  .nfc-logo{ width:72px; height:72px; }
  .nfc-logoWrap::after{ animation: nfcLogoGlow 2.4s ease-in-out infinite; }
}
@keyframes nfcLogoFloat{ 0%,100%{ transform: translateY(0) scale(1); } 50%{ transform: translateY(-4px) scale(1.02); } }
@keyframes nfcLogoGlow{ 0%,100%{ opacity: .90; transform: scale(1); } 50%{ opacity: 1; transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce){
  .nfc-logoWrap{ animation:none !important; }
  .nfc-logoWrap::after{ animation:none !important; }
}

/* Asesor */
.advisor-head{ display:grid; justify-items:center; gap:10px; margin-bottom:10px; }
.advisor-photo-wrap{
  position:relative;
  width:64px; height:64px;
  border-radius:50%;
  overflow:hidden;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
}
body[data-theme="dark"] .advisor-photo-wrap{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.advisor-photo{ width:100%; height:100%; object-fit:cover; }
.advisor-online{
  position:absolute;
  right:2px; bottom:2px;
  width:12px; height:12px;
  border-radius:50%;
  background: var(--success-color);
  border: 2px solid #fff;
}

.advisor-name{
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  margin: 6px 0 2px;
}
.advisor-name strong{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.06);
}
body[data-theme="dark"] .advisor-name strong{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}
.advisor-verified{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px 6px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  color:#0b6b3a;
  background: rgba(37,211,102,.14);
  border: 1px solid rgba(37,211,102,.22);
}
.advisor-verified::before{
  content:"✓";
  width:18px; height:18px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background: rgba(37,211,102,.28);
  color:#0b6b3a;
  font-weight:900;
}

.mini-chat{ max-width:46ch; margin: 0 auto 12px; text-align:left; }
.mini-time{ text-align:center; font-size:12px; opacity:.65; margin-bottom:8px; }
.mini-bubble{
  background:#eef3ff;
  border-radius:14px;
  padding:12px 14px;
  line-height:1.45;
  border: 1px solid rgba(0,0,0,.06);
}
body[data-theme="dark"] .mini-bubble{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text-dark);
}

.advisor-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:10px;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.06);
  color: var(--text-light);
  font-weight:800;
}
body[data-theme="dark"] .advisor-pill{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.advisor-dot{
  width:10px; height:10px;
  border-radius:50%;
  background: var(--success-color);
  box-shadow: 0 0 0 6px rgba(37,211,102,.18);
}

@media (max-width: 900px){
  .nfc-card{ grid-template-columns: 1fr; }
  .nfc-divider{ display:none; }
}

/* =========================
   WHATSAPP WIDGET
   ========================= */
.wa-float{
  position:fixed;
  right: 22px;
  bottom: 22px;
  width:62px;
  height:62px;
  border-radius:50%;
  border:none;
  cursor:pointer;
  display:grid;
  place-items:center;
  z-index:999;
  transition: transform .2s ease;

  background: linear-gradient(135deg, rgba(37,211,102,.22), rgba(37,211,102,.12));
  border: 1px solid rgba(255,255,255,.30);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    0 16px 44px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -1px 0 rgba(255,255,255,.10);
}
.wa-float:hover{ transform: scale(1.06); }
.wa-float::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 50%;
  pointer-events:none;
  background:
    radial-gradient(18px 18px at 30% 25%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(115deg, rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0));
  opacity: .9;
}
.wa-float i{
  position: relative;
  z-index: 1;
  color: #fff;
  font-size:28px;
  text-shadow: 0 10px 18px rgba(0,0,0,.20);
}

.wa-box{
  width: 330px;
  position:fixed;
  right: 22px;
  bottom: 98px;
  border-radius:16px;
  overflow:hidden;
  display:none;
  z-index:998;
  animation: fadeUp .25s ease;

  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 22px 70px rgba(0,0,0,.18);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
}
body[data-theme="dark"] .wa-box{
  background: linear-gradient(135deg, rgba(18,18,20,.44), rgba(18,18,20,.26));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 70px rgba(0,0,0,.45);
}
.wa-box.is-open{ display:block; }

@keyframes fadeUp{ from{ opacity:0; transform: translateY(10px); } to{ opacity:1; transform: translateY(0); } }

.wa-header{
  background:#1f7a35;
  color:#fff;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  gap: 12px;
}
.wa-avatar-wrap{ width:46px; height:46px; position:relative; flex: 0 0 46px; }
.wa-avatar{ width:46px; height:46px; border-radius:50%; object-fit:cover; }
.wa-online{
  position:absolute;
  left:-2px; bottom:-2px;
  width:12px; height:12px;
  border-radius:50%;
  background: var(--success-color);
  border: 2px solid #fff;
}
.wa-info h3{ margin:0; font-size: 18px; font-weight: 900; line-height:1.1; }
.wa-info span{ font-size: 13px; opacity:.95; }
.wa-close{
  margin-left:auto;
  background:transparent;
  border:none;
  color:#fff;
  font-size:24px;
  cursor:pointer;
  opacity:.9;
}
.wa-close:hover{ opacity:1; }

.wa-body{ padding: 14px 16px 16px; }
.wa-time{ display:block; text-align:center; color:#9aa0a6; font-size: 13px; margin: 2px 0 10px; }
.wa-chatrow{ display:flex; gap:10px; align-items:flex-start; margin-bottom: 12px; }
.wa-mini-avatar{ width:30px; height:30px; border-radius:50%; object-fit:cover; flex:0 0 30px; }
.wa-msg{
  background:#dbe7ff;
  color:#111;
  padding: 12px 14px;
  border-radius: 14px;
  max-width: 230px;
  font-size: 15px;
  line-height: 1.35;
}
body[data-theme="dark"] .wa-msg{ background: rgba(219,231,255,.14); color: var(--text-dark); }
.wa-start{ text-align:center; font-weight: 900; margin: 8px 0 10px; color: var(--text-dark); }
.wa-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  background:#3dbb45;
  color:#fff;
  padding: 14px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 900;
  font-size: 18px;
}
.wa-button:hover{ filter: brightness(.96); }
.wa-button i{ font-size: 22px; }

/* =========================
   FOOTER
   ========================= */
.footer{
  margin-top: 28px;
  padding: 30px 16px 16px;
  text-align:center;
  position: relative;
  overflow:hidden;

  background: linear-gradient(135deg, var(--footer-bg), rgba(255,255,255,.03));
  border-top: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 -22px 80px rgba(0,0,0,.12);

  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);

  color: var(--footer-ink);
}
.footer::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.70), transparent);
  opacity: .75;
  pointer-events:none;
}
.footer::after{
  content:"";
  position:absolute;
  inset:-20px;
  pointer-events:none;
  background:
    radial-gradient(700px 240px at 50% 0%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,.10) 52%, transparent 70%);
  opacity: .85;
}
.footer > *{ position:relative; z-index:1; }

.footer-content{
  max-width: 1100px;
  margin: 0 auto 18px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.footer-section ul{ list-style:none; padding:0; }
.footer-section li{ margin: 6px 0; }
.footer a{ color: var(--footer-ink); text-decoration:none; font-weight:800; }
.footer a:hover{ text-decoration: underline; opacity:.95; }

.social-links{
  display:flex;
  justify-content:center;
  gap: 10px;
  margin-top: 10px;
}
.social-links a{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 16px 50px rgba(0,0,0,.14);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  position: relative;
}
.social-links a::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(18px 18px at 30% 25%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(115deg, rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0));
  opacity: .9;
  pointer-events:none;
}
.social-links a i{
  position: relative;
  z-index: 1;
  font-size: 18px;
  line-height: 1;
}
.social-links a:hover{
  transform: translateY(-2px) scale(1.03);
  background: rgba(255,255,255,.18);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  opacity: .92;
}

@media (max-width: 420px){
  .wa-box{ width: calc(100vw - 24px); right: 12px; }
  .wa-float{ right: 12px; }
}

/* =========================================================
   WHATSAPP FLOAT — HALO + ONDAS SIEMPRE (ALL DEVICES)
   Ultra-glass + efecto vivo (móvil/tablet/desktop)
   ✅ No requiere JS
========================================================= */

/* Base del botón (si ya tienes .wa-float, esto lo afina sin romper) */
.wa-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.30);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 999;

  /* ✅ Ultra glass con tinte verde (siempre visible) */
  background: linear-gradient(
    135deg,
    rgba(37,211,102,.22),
    rgba(255,255,255,.08)
  );

  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);

  /* ✅ Halo permanente (se ve SIEMPRE) */
  box-shadow:
    0 16px 44px rgba(0,0,0,.22),
    0 0 0 6px rgba(37,211,102,.14),
    0 0 22px rgba(37,211,102,.22),
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -1px 0 rgba(255,255,255,.10);

  transition: transform .2s ease, filter .2s ease;
  isolation: isolate; /* ✅ asegura que pseudo-elementos se rendericen bien */
}

/* Icono */
.wa-float i{
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 28px;
  text-shadow: 0 10px 18px rgba(0,0,0,.20);
}

/* ✅ Halo glow suave detrás del botón (constante) */
.wa-float::after{
  content:"";
  position: absolute;
  inset: -18px;              /* más grande que el botón */
  border-radius: 50%;
  z-index: 0;

  /* glow verde + toque blanco para “vidrio” */
  background:
    radial-gradient(circle at 50% 50%, rgba(37,211,102,.32), transparent 62%),
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), transparent 60%);

  filter: blur(14px);
  opacity: .95;              /* ✅ SIEMPRE visible */
  pointer-events: none;
}

/* ✅ Ondas vivas (ring pulsante) */
.wa-float::before{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:50%;
  z-index: 1;
  pointer-events:none;

  /* ring principal */
  border: 2px solid rgba(37,211,102,.38);

  /* leve glow para que se note en mobile */
  box-shadow:
    0 0 0 0 rgba(37,211,102,.30),
    0 0 26px rgba(37,211,102,.18);

  /* animación permanente */
  animation: waPulseRing 1.8s ease-in-out infinite;
}

/* ✅ Segunda onda (más externa) usando un box-shadow animado */
@keyframes waPulseRing{
  0%{
    transform: scale(1);
    opacity: .95;
    box-shadow:
      0 0 0 0 rgba(37,211,102,.26),
      0 0 18px rgba(37,211,102,.20);
  }
  60%{
    transform: scale(1.18);
    opacity: .55;
    box-shadow:
      0 0 0 14px rgba(37,211,102,.10),
      0 0 34px rgba(37,211,102,.18);
  }
  100%{
    transform: scale(1);
    opacity: .95;
    box-shadow:
      0 0 0 0 rgba(37,211,102,.26),
      0 0 18px rgba(37,211,102,.20);
  }
}

/* Hover (desktop) — sutil, sin depender de hover para verse */
@media (hover:hover){
  .wa-float:hover{
    transform: scale(1.06);
    filter: brightness(1.02);
  }
}

/* =========================================================
   DARK MODE — más profundo, verde elegante
========================================================= */
body[data-theme="dark"] .wa-float{
  background: linear-gradient(
    135deg,
    rgba(18,18,20,.72),
    rgba(37,211,102,.22)
  );

  border: 1px solid rgba(255,255,255,.16);

  box-shadow:
    0 22px 70px rgba(0,0,0,.55),
    0 0 0 6px rgba(37,211,102,.12),
    0 0 26px rgba(37,211,102,.22),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.35);
}

body[data-theme="dark"] .wa-float i{
  color: #eafff3;
  text-shadow: 0 10px 22px rgba(0,0,0,.55);
}

body[data-theme="dark"] .wa-float::after{
  background:
    radial-gradient(circle at 50% 50%, rgba(37,211,102,.38), transparent 62%),
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.10), transparent 60%);
  filter: blur(16px);
  opacity: .98; /* ✅ siempre visible en dark */
}

body[data-theme="dark"] .wa-float::before{
  border: 2px solid rgba(37,211,102,.42);
  box-shadow:
    0 0 0 0 rgba(37,211,102,.26),
    0 0 30px rgba(37,211,102,.18);
}
