/* CultoRD — estilos de la web de documentación.
   Tailwind carga vía CDN; aquí solo overrides muy acotados. */

html {
  scroll-behavior: smooth;
  /* Compensa header sticky al saltar a anchors. */
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #2563EB;
  color: #fff;
}

/* Mockup iPhone: notch + marco. */
.iphone-frame {
  aspect-ratio: 9 / 19;
  background: #111827;
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 20px 60px -20px rgba(37, 99, 235, 0.25),
    0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E5E7EB 0%, #F3F4F6 100%);
  border-radius: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
}

/* ===============================================================
   Wireframe iPhone — réplica exacta del Login.jsx de la app.
   Logo flotante + sombra pulsante + frase rotando + botón INICIAR.
   =============================================================== */
.iphone-screen.mock-app {
  background: #FFFFFF !important;
  color: #3C3C3C !important;
}

.mock-login {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 56px 24px 24px;
}

.mock-login-top {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mock-login-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
}

/* Logo flotante: mismo keyframe que login-logo-float de la app. */
.mock-logo-float {
  animation: mockLoginLogoFloat 3.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(37, 99, 235, 0.25));
  will-change: transform;
}
.mock-logo-float svg {
  width: 96px !important;
  height: 96px !important;
  display: block;
}

/* Sombra pulsante debajo del logo, sincronizada. */
.mock-logo-shadow {
  width: 60px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.35) 0%, rgba(37,99,235,0) 70%);
  animation: mockLoginLogoShadow 3.2s ease-in-out infinite;
}

.mock-title {
  margin: 20px 0 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #3C3C3C;
}

.mock-frase-wrap {
  margin-top: 6px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mock-frase {
  font-size: 13px;
  font-weight: 600;
  color: #777;
  margin: 0;
  text-align: center;
  animation: mockLoginFraseInOut 3s ease-in-out both;
  will-change: opacity, transform;
}

/* Botón "Iniciar" estilo btn-3d de la app (pill blanca con sombra inferior). */
.mock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #3C3C3C;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0,0,0,0.12);
  /* Wireframe: inerte, no clickable. */
  pointer-events: none;
}
.mock-btn-g {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
}

.mock-version {
  font-size: 10px;
  color: #AAA;
  font-weight: 600;
  margin: 0;
}

@keyframes mockLoginLogoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-2deg); }
}
@keyframes mockLoginLogoShadow {
  0%, 100% { transform: scale(1);    opacity: 0.35; }
  50%      { transform: scale(0.72); opacity: 0.18; }
}
@keyframes mockLoginFraseInOut {
  0%   { opacity: 0; transform: translateY(8px); }
  15%  { opacity: 1; transform: translateY(0); }
  85%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .mock-logo-float, .mock-logo-shadow, .mock-frase {
    animation: none !important;
  }
}

.iphone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #111827;
  border-radius: 999px;
  z-index: 2;
}

/* Botón primario brand. */
.btn-brand {
  background: #2563EB;
  color: #fff;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn-brand:hover { background: #1E4ED8; box-shadow: 0 8px 24px -8px rgba(37,99,235,0.5); }
.btn-brand:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  color: #2563EB;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid #2563EB;
  transition: background 120ms ease, transform 120ms ease;
}
.btn-outline:hover { background: rgba(37,99,235,0.06); }
.btn-outline:active { transform: scale(0.98); }

/* Card uniforme para secciones. */
.card-doc {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  cursor: pointer;
}
.card-doc:hover {
  border-color: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(37,99,235,0.18);
}

/* Mobile nav panel — visible al desplegar. */
#mobile-nav {
  transition: max-height 220ms ease, opacity 180ms ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-nav.open {
  max-height: 360px;
  opacity: 1;
}


/* ----------------------------------------------------------------
   Anuncios AdSense — contenedor neutral, no intrusivo.
---------------------------------------------------------------- */
.ad-container {
  margin: 1.5rem 0;
  padding: 0.75rem 0;
  text-align: center;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
  /* Reservamos altura para evitar CLS mientras carga. */
  min-height: 120px;
}
.ad-label {
  display: block;
  font-size: 0.625rem;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.ad-container ins.adsbygoogle {
  display: block;
  min-height: 90px;
}
