/* Portal contratistas — tema oscuro, misma tipografía y escala que landing/index (Inter). */

:root {
  --ct-bg: #09090f;
  --ct-surface: #12141c;
  --ct-elev: #181b24;
  --ct-border: rgba(255, 255, 255, 0.08);
  --ct-text: #f0f0f5;
  --ct-muted: #8e8e93;
  --ct-accent: #4f8ef7;
  --ct-accent-light: #7cb4ff;
  --ct-accent-soft: rgba(79, 142, 247, 0.12);
  --ct-radius: 14px;
  --ct-max: 1080px;
  --ct-nav-h: 52px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--ct-text);
  background-color: var(--ct-bg);
  background-image:
    radial-gradient(ellipse 110% 85% at 15% 5%, rgba(79, 142, 247, 0.14), transparent 58%),
    radial-gradient(ellipse 95% 75% at 92% 8%, rgba(139, 92, 246, 0.09), transparent 52%),
    radial-gradient(ellipse 80% 55% at 50% 105%, rgba(79, 142, 247, 0.07), transparent 58%);
  background-repeat: no-repeat;
  background-size: 145% 145%, 135% 135%, 125% 125%;
  background-position: 0% 0%, 100% 0%, 50% 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    animation: ct-bg-blobs 26s ease-in-out infinite alternate;
  }
}

a {
  color: var(--ct-accent-light);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.ct-wrap {
  max-width: var(--ct-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4.5vw, 22px) max(80px, calc(24px + env(safe-area-inset-bottom, 0px)));
}

/* Barra superior: misma lógica que .nav del index (safe-area + altura) */
.ct-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: calc(var(--ct-nav-h) + env(safe-area-inset-top, 0px));
  padding: calc(env(safe-area-inset-top, 0px) + 8px) max(22px, env(safe-area-inset-right, 0px)) 10px
    max(22px, env(safe-area-inset-left, 0px));
  background: rgba(9, 9, 15, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  isolation: isolate;
}

.ct-nav-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--ct-text);
  text-decoration: none;
}
.ct-nav-brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.ct-nav-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.ct-nav-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

/* = .logo-name / .logo-sub del index */
.ct-logo-name {
  font-weight: 600;
  font-size: 17px;
  color: var(--ct-text);
  letter-spacing: -0.5px;
}
.ct-logo-sub {
  font-size: 9px;
  color: var(--ct-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-top: -2px;
  line-height: 1.3;
  max-width: 220px;
}

.ct-nav-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Botones = .btn-ghost / .btn-solid del landing principal */
.ct-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.1px;
  border-radius: 99px;
  padding: 7px 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.25s ease;
}
.ct-btn:active {
  transform: scale(0.97);
}

.ct-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ct-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.ct-btn-solid {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  color: #09090f;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
.ct-btn-solid:hover {
  background: #ffffff;
  text-decoration: none;
}

.ct-hero {
  padding: 32px 0 40px;
  text-align: center;
}

/* = .hero-badge */
.ct-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 99px;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.25);
  font-size: 13px;
  font-weight: 500;
  color: var(--ct-accent-light);
  margin-bottom: 24px;
}

/* = .hero-title .grad (misma escala que index) */
.ct-hero h1 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -3px;
  margin: 0 auto 8px;
  max-width: 20ch;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(200, 220, 255, 0.88) 60%,
    rgba(255, 255, 255, 0.7) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Segunda línea hero: escala tipo .hero-subtitle, más contenida que el título */
.ct-hero-sub {
  margin: 0 auto 20px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--ct-accent-light) 0%, var(--ct-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ct-hero-lead {
  margin: 0 auto 22px;
  max-width: 34ch;
  font-size: clamp(14px, 3.2vw, 16px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ct-muted);
}

.ct-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.ct-micro {
  font-size: 13px;
  font-weight: 400;
  color: var(--ct-muted);
}

.ct-section {
  padding: 40px 0;
}

.ct-section h2 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  letter-spacing: -0.4px;
  margin: 0 0 10px;
  text-align: center;
  color: var(--ct-text);
}

.ct-section-sub {
  text-align: center;
  color: var(--ct-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  margin: 0 auto 28px;
  max-width: 48ch;
}

.ct-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.ct-card {
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 20px 18px;
}

.ct-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ct-accent-soft);
  color: var(--ct-accent);
  margin-bottom: 12px;
}

.ct-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ct-text);
}

.ct-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--ct-muted);
  line-height: 1.55;
}

.ct-steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.ct-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--ct-surface);
  border-radius: var(--ct-radius);
  border: 1px solid var(--ct-border);
}

.ct-step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(79, 142, 247, 0.2);
  color: var(--ct-accent-light);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79, 142, 247, 0.25);
}

.ct-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ct-text);
}

.ct-step span {
  font-size: 14px;
  font-weight: 400;
  color: var(--ct-muted);
  line-height: 1.5;
}

/* ── Sección “confianza” (tarjetas, no franja plana) ── */
.ct-trust-section {
  padding-top: 12px;
  padding-bottom: 44px;
}

.ct-trust-intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 26px;
  padding: 0 clamp(4px, 2vw, 8px);
}

.ct-trust-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  margin: 0 0 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ct-accent-light);
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ct-trust-heading {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--ct-text);
}

.ct-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.5vw, 18px);
  max-width: 980px;
  margin: 0 auto;
}

.ct-trust-card {
  position: relative;
  padding: 22px 18px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(168deg, rgba(26, 30, 42, 0.92) 0%, rgba(14, 16, 22, 0.98) 48%, rgba(12, 14, 20, 1) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 16px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.ct-trust-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--ct-accent) 0%, var(--ct-accent-light) 45%, rgba(139, 92, 246, 0.75) 100%);
  opacity: 0.95;
}

.ct-trust-card:nth-child(2)::before {
  background: linear-gradient(90deg, rgba(124, 180, 255, 0.85) 0%, var(--ct-accent) 55%, rgba(139, 92, 246, 0.65) 100%);
}

.ct-trust-card:nth-child(3)::before {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.75) 0%, var(--ct-accent-light) 50%, var(--ct-accent) 100%);
}

.ct-trust-card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 142, 247, 0.14);
  border: 1px solid rgba(79, 142, 247, 0.22);
  color: var(--ct-accent-light);
}

.ct-trust-card-icon .material-symbols-outlined {
  font-size: 24px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.ct-trust-card-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.25px;
  color: var(--ct-text);
  line-height: 1.25;
}

.ct-trust-card-text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ct-muted);
}

@media (max-width: 820px) {
  .ct-trust-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .ct-trust-card {
    padding: 20px 18px 22px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .ct-trust-card {
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.28s ease,
      box-shadow 0.32s ease;
  }

  .ct-trust-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 142, 247, 0.35);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.07) inset,
      0 22px 56px rgba(0, 0, 0, 0.42);
  }
}

.ct-footer {
  text-align: center;
  padding: 32px 22px 28px;
  border-top: 1px solid var(--ct-border);
  color: var(--ct-muted);
  font-size: 13px;
  font-weight: 400;
}

/* Modal auth — labels como .form-label del index */
.ct-modal-root[hidden] {
  display: none !important;
}

.ct-modal-root {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.ct-modal-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.ct-modal {
  width: 100%;
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: 18px;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.ct-modal h2 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 6px;
  text-align: left;
  color: var(--ct-text);
}

.ct-modal-sub {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ct-muted);
  line-height: 1.5;
}

.ct-field {
  margin-bottom: 12px;
}

.ct-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.2px;
  margin-bottom: 5px;
}

.ct-field input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.ct-field input:focus {
  border-color: var(--ct-accent);
  background: rgba(79, 142, 247, 0.05);
  box-shadow: 0 0 0 4px rgba(79, 142, 247, 0.1);
}

.ct-field-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--ct-muted);
  margin-top: 5px;
  line-height: 1.45;
}

.ct-alert {
  font-size: 13px;
  font-weight: 400;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  display: none;
  line-height: 1.45;
}
.ct-alert.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}
.ct-alert.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.ct-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.ct-modal-actions .ct-btn-solid {
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
}

.ct-modal-footer {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ct-muted);
  text-align: center;
}

.ct-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s ease;
}
.ct-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 520px) {
  .ct-nav-actions .ct-btn-ghost span {
    display: none;
  }

  .ct-hero h1 {
    letter-spacing: -2px;
  }

  .ct-hero-sub {
    letter-spacing: -1px;
  }
}

/* ═══ Animaciones (marca EHS / “inteligencia” suave) + móvil ═══ */

@keyframes ct-mesh-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  35% {
    transform: translate3d(-4%, 3%, 0) scale(1.06) rotate(0.35deg);
  }
  70% {
    transform: translate3d(3%, -2.5%, 0) scale(1.03) rotate(-0.3deg);
  }
  100% {
    transform: translate3d(-1.5%, 1.5%, 0) scale(1.04) rotate(0.1deg);
  }
}

@keyframes ct-bg-blobs {
  0% {
    background-position: 5% 15%, 95% 10%, 45% 95%;
  }
  50% {
    background-position: 55% 5%, 40% 55%, 60% 40%;
  }
  100% {
    background-position: 100% 35%, 0% 70%, 50% 5%;
  }
}

@keyframes ct-sheen-spin {
  from {
    transform: rotate(0deg) scale(1.08);
  }
  to {
    transform: rotate(360deg) scale(1.08);
  }
}

@keyframes ct-hero-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ct-modal-backdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ct-modal-panel {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes ct-logo-soft {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(79, 142, 247, 0);
  }
  50% {
    box-shadow: 0 0 20px 2px rgba(79, 142, 247, 0.22);
  }
}

@keyframes ct-icon-pop {
  from {
    transform: scale(0.88);
    opacity: 0.6;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: -22%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 42% at 18% 28%, rgba(79, 142, 247, 0.16), transparent 56%),
    radial-gradient(ellipse 48% 38% at 88% 14%, rgba(139, 92, 246, 0.11), transparent 52%),
    radial-gradient(ellipse 42% 36% at 52% 92%, rgba(79, 142, 247, 0.09), transparent 55%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 1.6px);
  background-size: auto, auto, auto, 52px 52px;
  animation: ct-mesh-drift 32s ease-in-out infinite alternate;
  will-change: transform;
}

body::after {
  content: "";
  position: fixed;
  inset: -40%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: screen;
  background: conic-gradient(
    from 210deg at 50% 45%,
    rgba(79, 142, 247, 0) 0deg,
    rgba(79, 142, 247, 0.14) 70deg,
    rgba(124, 180, 255, 0.1) 130deg,
    rgba(139, 92, 246, 0.12) 220deg,
    rgba(79, 142, 247, 0) 360deg
  );
  animation: ct-sheen-spin 100s linear infinite;
  will-change: transform;
}

.ct-nav,
.ct-wrap,
.ct-footer {
  position: relative;
  z-index: 1;
}

.ct-nav-brand {
  overflow: visible;
}

.ct-nav-brand img {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .ct-nav-brand img {
    animation: ct-logo-soft 5s ease-in-out infinite;
  }
}

.ct-hero--animate > * {
  opacity: 0;
  animation: ct-hero-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ct-hero--animate > *:nth-child(1) {
  animation-delay: 0.04s;
}
.ct-hero--animate > *:nth-child(2) {
  animation-delay: 0.1s;
}
.ct-hero--animate > *:nth-child(3) {
  animation-delay: 0.16s;
}
.ct-hero--animate > *:nth-child(4) {
  animation-delay: 0.22s;
}
.ct-hero--animate > *:nth-child(5) {
  animation-delay: 0.28s;
}
.ct-hero--animate > *:nth-child(6) {
  animation-delay: 0.34s;
}

.ct-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.ct-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.ct-grid-3 .ct-reveal:nth-child(1) {
  transition-delay: 0s;
}
.ct-grid-3 .ct-reveal:nth-child(2) {
  transition-delay: 0.07s;
}
.ct-grid-3 .ct-reveal:nth-child(3) {
  transition-delay: 0.14s;
}

.ct-steps .ct-reveal:nth-child(1) {
  transition-delay: 0s;
}
.ct-steps .ct-reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.ct-steps .ct-reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.ct-reveal.is-visible .ct-card-icon .material-symbols-outlined {
  display: inline-block;
  animation: ct-icon-pop 0.55s cubic-bezier(0.34, 1.25, 0.64, 1) both;
}

@media (hover: hover) and (pointer: fine) {
  .ct-card {
    transition:
      transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.25s ease,
      box-shadow 0.3s ease;
  }

  .ct-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 142, 247, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

.ct-modal-root.ct-modal-anim {
  animation: ct-modal-backdrop 0.32s ease both;
}

.ct-modal-root.ct-modal-anim .ct-modal-wrap {
  animation: ct-modal-panel 0.42s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

/* Portal post-login: entrada suave de la tarjeta */
.pt-animate-enter {
  opacity: 0;
  animation: ct-hero-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.06s forwards;
}

@media (max-width: 480px) {
  .pt-animate-enter {
    animation-duration: 0.48s;
    animation-delay: 0.03s;
  }

  .ct-hero--animate > * {
    animation-duration: 0.58s;
    animation-name: ct-hero-in;
  }

  @keyframes ct-hero-in {
    from {
      opacity: 0;
      transform: translate3d(0, 12px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  .ct-reveal {
    transform: translate3d(0, 14px, 0);
  }

  .ct-hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .ct-hero-cta .ct-btn {
    width: 100%;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .ct-modal-root {
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
      max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    align-items: flex-end;
  }

  .ct-modal-wrap {
    max-height: min(92vh, 640px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ct-modal {
    border-radius: 18px 18px 12px 12px;
  }

  body::before {
    animation-duration: 40s;
  }

  body::after {
    opacity: 0.12;
    animation-duration: 130s;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none !important;
  }

  body::before {
    animation: none;
    transform: none;
  }

  body::after {
    animation: none !important;
    transform: none !important;
    opacity: 0.08;
  }

  .ct-nav-brand img {
    animation: none !important;
  }

  .ct-hero--animate > * {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .ct-modal-root.ct-modal-anim,
  .ct-modal-root.ct-modal-anim .ct-modal-wrap {
    animation: none !important;
  }

  .ct-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ct-reveal.is-visible .ct-card-icon .material-symbols-outlined {
    animation: none;
  }

  .pt-animate-enter {
    animation: none !important;
    opacity: 1 !important;
  }
}
