/* OTTO — páginas SEO (diario / foto / vídeo) */

:root {
  --blue: #00aeef;
  --mint: #32d9c3;
  --pink: #ff69b4;
  --yellow: #ffd700;
  --red: #e31c23;
  --ink: #121212;
  --paper: #fffaf5;
  --font-display: "Bungee", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --max: 760px;
  --max-wide: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.share-page {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0, 174, 239, 0.22), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 105, 180, 0.18), transparent 50%),
    radial-gradient(800px 500px at 50% 100%, rgba(50, 217, 195, 0.16), transparent 55%),
    linear-gradient(165deg, #fffaf5 0%, #f3ebe3 48%, #ebe4f2 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.share-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.share-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: share-float 14s ease-in-out infinite;
}

.share-blob-a {
  width: 42vw;
  height: 42vw;
  max-width: 420px;
  max-height: 420px;
  left: -8%;
  top: 12%;
  background: rgba(0, 174, 239, 0.35);
}

.share-blob-b {
  width: 36vw;
  height: 36vw;
  max-width: 360px;
  max-height: 360px;
  right: -6%;
  top: 28%;
  background: rgba(255, 215, 0, 0.35);
  animation-delay: -4s;
}

.share-blob-c {
  width: 48vw;
  height: 48vw;
  max-width: 480px;
  max-height: 480px;
  left: 30%;
  bottom: -18%;
  background: rgba(255, 105, 180, 0.28);
  animation-delay: -7s;
}

.share-stripes {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  width: min(18vw, 120px);
  height: 100%;
  opacity: 0.22;
}

.share-stripes span {
  flex: 1;
}

.stripe-blue { background: var(--blue); }
.stripe-mint { background: var(--mint); }
.stripe-pink { background: var(--pink); }
.stripe-yellow { background: var(--yellow); }

@keyframes share-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.06); }
}

.share-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  background: rgba(255, 250, 245, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--ink);
}

.share-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.logo-bolt {
  color: var(--yellow);
  text-shadow: 1px 1px 0 var(--ink);
  animation: bolt-flicker 2.4s ease-in-out infinite;
}

@keyframes bolt-flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  45% { opacity: 0.85; }
  50% { opacity: 1; transform: scale(1.08); }
  55% { opacity: 0.7; }
}

.share-nav {
  display: none;
  gap: 1.25rem;
  font-weight: 800;
  font-size: 0.92rem;
}

.share-nav a {
  position: relative;
}

.share-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.share-nav a:hover::after,
.share-nav a.is-active::after {
  transform: scaleX(1);
}

.share-nav a.is-active {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-weight: 900;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.share-cta-top {
  background: var(--mint);
  flex-shrink: 0;
}

.share-main {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max-wide));
  margin: 0 auto;
  padding: 2rem 0 7rem;
}

.share-article,
.share-list-head {
  width: min(100%, var(--max));
  margin-inline: auto;
  animation: share-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes share-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.share-eyebrow {
  margin: 0 0 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(18, 18, 18, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.share-eyebrow::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid var(--ink);
  box-shadow: 1px 1px 0 var(--ink);
}

.share-pill {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.share-pill-sm {
  margin: 0;
  font-size: 0.65rem;
  box-shadow: 1px 1px 0 var(--ink);
}

.share-when {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(18, 18, 18, 0.62);
}

.share-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.share-lede {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(18, 18, 18, 0.78);
  max-width: 36ch;
}

.share-figure,
.share-media {
  margin: 0 0 1.5rem;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow: 8px 8px 0 var(--ink);
  animation: share-rise 0.85s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.share-figure img,
.share-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.share-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.share-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.share-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.share-mascot {
  display: grid;
  place-items: center;
  margin: 0 0 1.5rem;
  padding: 1.5rem;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.98), #f3ebe1),
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      rgba(18, 18, 18, 0.05) 27px,
      rgba(18, 18, 18, 0.05) 28px
    );
  box-shadow: 6px 6px 0 var(--ink);
}

.share-mascot img {
  width: min(220px, 55vw);
  filter: drop-shadow(4px 6px 0 rgba(18, 18, 18, 0.2));
  animation: share-bob 3.2s ease-in-out infinite;
}

@keyframes share-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.share-body {
  margin: 0 0 2rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border: 3px solid var(--ink);
  border-radius: 6px 18px 10px 6px;
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.98), #f3ebe1 55%, #ebe1d4),
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      rgba(18, 18, 18, 0.06) 27px,
      rgba(18, 18, 18, 0.06) 28px
    );
  box-shadow:
    6px 6px 0 rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  position: relative;
}

.share-body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(227, 28, 35, 0.85), rgba(227, 28, 35, 0.35));
  border-radius: 3px 0 0 3px;
}

.share-body p {
  margin: 0 0 1rem;
  padding-left: 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.share-body p:last-child {
  margin-bottom: 0;
}

.share-cta-block {
  text-align: center;
  padding: 1.75rem 1rem 0.5rem;
  animation: share-rise 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.share-cta-kicker {
  margin: 0 0 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.share-cta-hero {
  min-width: min(100%, 280px);
  padding: 1rem 1.75rem;
  font-size: 1.15rem;
  background: var(--yellow);
  animation: share-pulse 2.4s ease-in-out infinite;
}

.share-cta-bolt {
  color: var(--ink);
}

.share-cta-sub {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(18, 18, 18, 0.62);
}

@keyframes share-pulse {
  0%, 100% { box-shadow: 4px 4px 0 var(--ink); }
  50% { box-shadow: 7px 7px 0 var(--ink); transform: translate(-1px, -1px); }
}

.share-list-head {
  text-align: center;
  margin-bottom: 2rem;
}

.share-list-head .share-cta-hero {
  margin-top: 0.35rem;
}

.share-list-head .share-lede {
  margin-inline: auto;
}

.share-empty {
  text-align: center;
  font-weight: 800;
  padding: 2rem;
  border: 3px dashed var(--ink);
  border-radius: 18px;
  background: rgba(255, 250, 245, 0.7);
}

.share-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  width: min(100%, var(--max-wide));
  margin-inline: auto;
}

.share-card {
  display: grid;
  grid-template-columns: 1fr;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 250, 245, 0.92);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: share-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.share-card:nth-child(1) { animation-delay: 0.05s; }
.share-card:nth-child(2) { animation-delay: 0.1s; }
.share-card:nth-child(3) { animation-delay: 0.15s; }
.share-card:nth-child(4) { animation-delay: 0.2s; }
.share-card:nth-child(5) { animation-delay: 0.25s; }

.share-card:hover,
.share-card:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}

.share-card-media {
  background: #1a1a1a;
  min-height: 180px;
}

.share-card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.share-card-placeholder {
  display: grid;
  place-items: center;
  height: 220px;
  background: linear-gradient(135deg, var(--blue), var(--mint));
}

.share-card-placeholder img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.25));
}

.share-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.share-card-when {
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(18, 18, 18, 0.55);
}

.share-card-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
}

.share-card-body p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(18, 18, 18, 0.72);
}

.share-related {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--ink);
}

.share-related h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.share-related-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.share-related-card {
  flex: 0 0 min(70vw, 220px);
  scroll-snap-align: start;
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  flex-direction: column;
}

.share-related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #222;
}

.share-related-fallback {
  display: grid;
  place-items: center;
  height: 120px;
  font-family: var(--font-display);
  font-size: 2rem;
  background: var(--blue);
}

.share-related-card span:last-child {
  padding: 0.65rem 0.75rem;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.25;
}

.share-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1rem 6rem;
  border-top: 3px solid var(--ink);
  background: rgba(255, 250, 245, 0.75);
}

.share-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.share-footer p {
  margin: 0;
  font-weight: 800;
  color: rgba(18, 18, 18, 0.55);
}

.share-fab {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%) translateY(120%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  font-weight: 900;
  font-size: 0.95rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.share-fab.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.share-fab:hover,
.share-fab:focus-visible {
  box-shadow: 6px 6px 0 var(--ink);
}

.share-page.share-foto .share-figure img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.share-page.share-foto.share-mode-detail .share-figure {
  max-width: 560px;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .share-nav {
    display: flex;
  }

  .share-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .share-card {
    grid-template-columns: 140px 1fr;
    align-items: stretch;
  }

  .share-card-media,
  .share-card-media img,
  .share-card-placeholder {
    height: 100%;
    min-height: 140px;
  }

  .share-card-media img {
    height: 100%;
  }
}

@media (min-width: 980px) {
  .share-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .share-card {
    grid-template-columns: 1fr;
  }

  .share-card-media img,
  .share-card-placeholder {
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .share-fab {
    opacity: 1;
    transform: translateX(-50%);
    pointer-events: auto;
  }
}
