/* Homepage Tickenight */

.page-home {
  overflow-x: hidden;
}

.page-home .body-wrapper {
  padding-top: 0;
  background: transparent;
}

/* Solo barra de menú sobre el hero; el logo va en .header-content */
.page-home .tn-page-header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.page-home .tn-page-header .tn-site-nav,
.page-home .tn-page-header a,
.page-home .tn-page-header button {
  pointer-events: auto;
}

.page-home .tn-page-header .tn-site-branding {
  display: none !important;
}

/* —— Hero —— */
.page-home .video-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.page-home .video-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.65) 50%,
    rgba(10, 10, 10, 0.96) 90%,
    var(--tn-bg) 100%
  );
  pointer-events: none;
}

.page-home .video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.page-home .header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--tn-text);
  padding: clamp(100px, 14vh, 140px) 24px clamp(72px, 10vh, 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 52rem;
  margin: 0 auto;
}

.page-home .home-hero__logo-link {
  display: block;
  margin-bottom: 2.25rem;
  line-height: 0;
}

.page-home .home-hero__logo {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
}

.page-home .home-hero__title {
  font-size: clamp(1.55rem, 4.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 1.35rem;
  color: var(--tn-text);
  text-transform: none;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
  text-wrap: balance;
}

.page-home .home-hero__subtitle {
  font-size: clamp(1.02rem, 2.1vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--tn-text-secondary);
  max-width: 36rem;
  margin: 0 0 2.5rem;
  text-wrap: balance;
}

.page-home .home-hero__subtitle br {
  display: none;
}

@media (min-width: 576px) {
  .page-home .home-hero__subtitle br {
    display: block;
  }
}

/* CTAs: misma celda de grid = mismo tamaño */
.page-home .hero-ctas {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 520px;
  margin: 0;
}

.page-home .hero-ctas .btn.btn-cta,
.page-home .hero-ctas .btn.btn-tn-outline {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 20px !important;
  margin: 0 !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em;
  border-radius: 999px !important;
  border-width: 2px !important;
  border-style: solid !important;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .hero-ctas .btn.btn-cta {
  border-color: transparent !important;
  box-shadow: 0 4px 20px rgba(255, 154, 0, 0.35) !important;
}

.page-home .hero-ctas .btn.btn-tn-outline {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  color: var(--tn-text) !important;
}

.page-home .hero-ctas .btn.btn-tn-outline::after {
  display: none;
}

/* Franja de iconos (fondo en tn-theme.css) */
.page-home .features {
  padding: 56px 24px 64px;
  margin-top: -32px;
  position: relative;
  z-index: 3;
}

.page-home .features .feature-item {
  padding: 20px 14px;
  border-radius: var(--tn-radius);
  transition: transform 0.25s, background 0.25s;
}

.page-home .features .feature-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
}

.page-home .features .feature-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.page-home .features .feature-item p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tn-text-secondary);
  line-height: 1.4;
}

/* Secciones */
.page-home .section {
  padding: clamp(56px, 8vw, 80px) 24px;
  text-align: left;
}

.page-home .section h2.tn-section-title,
.page-home .section .fs-8,
.page-home .validation-section .tn-section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--tn-text);
}

.page-home .tn-section-lead {
  margin-bottom: 2rem;
}

.page-home .section p,
.page-home .validation-section p {
  color: var(--tn-text-secondary);
  line-height: 1.7;
  font-size: 1.02rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.page-home .section p:last-child:not(.tn-section-lead),
.page-home .validation-section p:last-child {
  margin-bottom: 0;
}

.page-home .section p strong,
.page-home .validation-section p strong {
  color: var(--tn-text);
  font-weight: 600;
}

.page-home #funcionalidades {
  /* fondo unificado: tn-theme.css */
}

.page-home #funcionalidades .tn-section-title {
  margin-bottom: 1.25rem;
}

.page-home #funcionalidades .tn-section-lead {
  margin-bottom: 3.5rem !important;
  line-height: 1.7;
  max-width: 36rem;
}

.page-home #funcionalidades .platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 0;
}

.page-home .platform-card {
  background: linear-gradient(145deg, #1e1e1e 0%, #141414 100%);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-lg);
  padding: 24px 22px;
  height: 100%;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.page-home .platform-card:hover {
  border-color: rgba(255, 154, 0, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--tn-shadow);
}

.page-home .platform-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tn-brand);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tn-border);
}

.page-home .platform-card ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--tn-text-secondary);
}

.page-home .platform-card li {
  margin-bottom: 10px;
}

.page-home .platform-card li strong {
  color: var(--tn-text);
  font-weight: 600;
}

.page-home .platform-card li::marker {
  color: var(--tn-brand);
}

/* Access */
.page-home .validation-section {
  padding: clamp(56px, 8vw, 80px) 24px;
}

.page-home .validation-section .row {
  row-gap: 2rem;
}

.page-home .validation-section .carousel-item img {
  border-radius: var(--tn-radius-lg);
  box-shadow: var(--tn-shadow);
}

/* Cómo empezar */
.page-home #como-funciona {
  /* fondo unificado: tn-theme.css */
}

.page-home .numbered-list {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  padding: 0;
  list-style: none;
}

.page-home .numbered-list > li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 2.25rem 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tn-text);
}

.page-home .numbered-list > li:first-child {
  margin-top: 0.5rem;
}

.page-home .numbered-list > li span {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tn-brand-soft);
  color: var(--tn-brand);
  font-size: 1.15rem;
  font-weight: 800;
}

.page-home .numbered-list > p {
  margin: 0 auto 1.25rem;
  padding-left: 58px;
  max-width: 40rem;
  color: var(--tn-text-secondary);
}

/* FAQ */
.page-home #faq {
  /* fondo unificado: tn-theme.css */
}

.page-home .faq-item {
  background: var(--tn-bg-card);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius);
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.page-home .faq-item[open] {
  border-color: rgba(255, 154, 0, 0.4);
}

.page-home .faq-item summary {
  cursor: pointer;
  padding: 18px 48px 18px 20px;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  color: var(--tn-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.page-home .faq-item summary::-webkit-details-marker {
  display: none;
}

.page-home .faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--tn-brand);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

.page-home .faq-item[open] summary::after {
  content: "−";
}

.page-home .faq-item .faq-body {
  padding: 0 20px 20px;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--tn-text-secondary);
}

/* Contacto */
.page-home .contact-section {
  padding: clamp(56px, 8vw, 88px) 24px;
}

.page-home .contact-section .contact-form {
  background: var(--tn-bg-card);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-lg);
  padding: 32px 28px;
  box-shadow: var(--tn-shadow);
}

.page-home .contact-section .alert-success {
  border-radius: var(--tn-radius);
  border: none;
}

/* —— Tablet / móvil —— */
@media (max-width: 991.98px) {
  .page-home .tn-page-header {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .page-home .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-home .platform-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-home .validation-section .tn-section-title {
    text-align: center !important;
  }
}

@media (max-width: 767.98px) {
  /* Hero: sin vídeo (menos datos y scroll más estable en móvil) */
  .page-home .video-container video {
    display: none;
  }

  .page-home .video-container {
    min-height: auto;
    background: var(--tn-bg) url("/res/BANNER-PRINCIPAL.jpg") center top / cover no-repeat;
  }

  .page-home .header-content {
    min-height: auto;
    padding: max(92px, calc(60px + env(safe-area-inset-top, 0px) + 28px)) 20px 52px;
  }

  .page-home .home-hero__logo-link {
    margin-bottom: 1.5rem;
  }

  .page-home .home-hero__logo {
    width: 112px;
  }

  .page-home .home-hero__title {
    font-size: clamp(1.3rem, 6.2vw, 1.75rem);
    line-height: 1.28;
    margin-bottom: 1.1rem;
  }

  .page-home .home-hero__subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0;
  }

  /* Botones apilados, misma anchura y altura */
  .page-home .hero-ctas {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }

  .page-home .hero-ctas .btn.btn-cta,
  .page-home .hero-ctas .btn.btn-tn-outline {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 18px !important;
    font-size: 0.9375rem !important;
    white-space: nowrap;
  }

  .page-home #funcionalidades {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .page-home #funcionalidades .tn-section-title {
    margin-bottom: 1.1rem;
  }

  .page-home #funcionalidades .tn-section-lead {
    margin-bottom: 3.25rem !important;
    font-size: 0.98rem;
    padding: 0 8px;
    line-height: 1.7;
  }

  .page-home #funcionalidades .platform-grid {
    gap: 14px;
  }

  .page-home .platform-card {
    padding: 20px 18px;
  }

  .page-home .platform-card ul {
    font-size: 0.92rem;
  }

  .page-home .features {
    padding: 36px 0 44px;
    margin-top: -20px;
  }

  .page-home .features .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-home .features .feature-item {
    padding: 14px 8px;
  }

  .page-home .features .feature-item p {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--tn-text-secondary);
  }

  .page-home .features .feature-item img {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }

  .page-home .features .row > .feature-item--last {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 8px;
    padding-top: 8px;
  }

  .page-home .features .row > .feature-item--last p {
    max-width: 18rem;
  }

  .page-home .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .page-home .section p {
    font-size: 0.98rem;
    margin-bottom: 1.1rem;
  }

  .page-home .validation-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .page-home .validation-section .col-lg-9,
  .page-home .validation-section .col-lg-3 {
    text-align: left;
  }

  .page-home .validation-section .carousel {
    max-width: 280px;
    margin: 1.5rem auto 0;
  }

  .page-home .faq-item {
    margin-bottom: 10px;
  }

  .page-home .faq-item summary {
    padding: 14px 16px;
    font-size: 0.94rem;
  }

  .page-home .faq-item .faq-body {
    font-size: 0.92rem;
    padding: 0 16px 16px;
  }

  .page-home .contact-section {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .page-home .contact-section .contact-form {
    padding: 22px 16px;
    margin-top: 1.5rem !important;
  }

  .page-home .contact-section .form-label {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .page-home .contact-section .btn.btn-cta {
    width: 100%;
    margin-top: 8px !important;
    min-height: 52px;
  }

  .page-home .numbered-list > li {
    font-size: 1rem;
    margin-top: 1.75rem;
  }

  .page-home .numbered-list > li span {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .page-home .numbered-list > p {
    font-size: 0.96rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .page-home .numbered-list > p {
    padding-left: 0;
  }

  .page-home #faq .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-home .hero-ctas {
    max-width: 100%;
  }
}
