/* ==========================================================================
   SIP ID — Landing page · Technology Ventures
   Paleta de marca: teal #4fb8a7 · azul #234191 · navy #002856
   ========================================================================== */

/* ---------- Tipografía de marca (Panton) ---------- */
@font-face {
  font-family: "Panton";
  src: url("../fonts/Panton-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Panton";
  src: url("../fonts/Panton-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Panton";
  src: url("../fonts/Panton-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Panton";
  src: url("../fonts/Panton-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Panton";
  src: url("../fonts/Panton-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-display: swap;
}

.wg-900{
  font-weight: 900 !important;
}

.display-10{
  font-size: calc(2rem + 4vw);
}

/* ---------- Variables ---------- */
:root {
  --tv-teal: #4fb8a7;
  --tv-blue: #234191;
  --tv-navy: #002856;
  --tv-navy-2: #001d40;
  --tv-light: #f4f7fa;
  --tv-gradient: linear-gradient(135deg, var(--tv-teal) 0%, var(--tv-blue) 100%);
  --tv-gradient-soft: linear-gradient(135deg, rgba(79, 184, 167, 0.12) 0%, rgba(35, 65, 145, 0.12) 100%);
  --tv-shadow: 0 0.75rem 2.5rem rgba(0, 40, 86, 0.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: "Panton", "Segoe UI", system-ui, sans-serif;
  color: #1c2b3a;
  overflow-x: hidden;
}

/* ---------- Utilidades comunes ---------- */
.section {
  padding: 6rem 0;
}

.bg-light-tv {
  background-color: var(--tv-light);
}

.section-title {
  font-weight: 800;
  color: var(--tv-navy);
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.lead-text {
  font-size: 1.15rem;
  color: #44576b;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tv-blue);
  background: var(--tv-gradient-soft);
  border: 1px solid rgba(35, 65, 145, 0.18);
  border-radius: 50rem;
  padding: 0.4rem 1.1rem;
}

.eyebrow-light {
  color: var(--tv-teal);
  background: rgba(79, 184, 167, 0.12);
  border-color: rgba(79, 184, 167, 0.35);
}

.text-gradient {
  background: linear-gradient(120deg, var(--tv-teal), #7fd6c8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn-tv-primary {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  background: var(--tv-gradient);
  border: none;
  font-weight: 700;
  border-radius: 50rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-tv-primary:hover,
.btn-tv-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.5rem rgba(79, 184, 167, 0.4);
}

.btn-tv-outline {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: var(--tv-navy);
  --bs-btn-hover-bg: #fff;
  --bs-btn-active-color: var(--tv-navy);
  --bs-btn-active-bg: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  font-weight: 700;
  border-radius: 50rem;
}

/* ---------- Navbar ---------- */
#navbarTV {
  background: rgba(0, 40, 86, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#navbarTV.scrolled {
  background: rgba(0, 29, 64, 0.95);
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.25);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.brand-logo {
  height: 53px;
  transition: height 0.3s ease;
}
#navbarTV.scrolled .brand-logo {
  height: 46px;
}
#navbarTV .nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}
#navbarTV .nav-link:hover,
#navbarTV .nav-link.active {
  color: var(--tv-teal);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8.5rem 0 5rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(35, 65, 145, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(79, 184, 167, 0.28) 0%, transparent 45%),
    linear-gradient(160deg, var(--tv-navy) 0%, var(--tv-navy-2) 100%);
  overflow: hidden;
}
.hero::before {
  /* patrón de puntos como en el brochure */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(79, 184, 167, 0.28) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 80% 30%, #000 0%, transparent 55%);
  -webkit-mask-image: radial-gradient(circle at 80% 30%, #000 0%, transparent 55%);
  pointer-events: none;
}
.hero-shape {
  position: absolute;
  top: -20%;
  right: -12%;
  width: 55%;
  height: 140%;
  background: var(--tv-gradient);
  opacity: 0.14;
  transform: rotate(18deg);
  border-radius: 4rem;
  pointer-events: none;
}
.hero-subtitle {
  max-width: 34rem;
}
.tagline {
  color: var(--tv-teal);
  font-weight: 700;
}
.hero-img-wrap {
  position: relative;
}
.hero-img-wrap::after {
  content: "";
  position: absolute;
  inset: -1.25rem;
  background: var(--tv-gradient);
  filter: blur(48px);
  opacity: 0.35;
  z-index: -1;
  border-radius: 2rem;
}
.hero-img-wrap img {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}
.scroll-hint:hover {
  color: var(--tv-teal);
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Marcos de imagen ---------- */
.img-frame {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--tv-shadow);
  aspect-ratio: 4 / 3;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(0, 40, 86, 0.08);
  pointer-events: none;
}
.img-frame-plain {
  aspect-ratio: auto;
}
.img-frame-plain img {
  height: auto;
  object-fit: contain;
}

/* ---------- Iconos ---------- */
.icon-square {
  width: 3.9rem;
  height: 3.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: var(--tv-gradient);
  color: #fff;
  font-size: 1.7rem;
  flex-shrink: 0;
}
.icon-square-sm {
  width: 3.1rem;
  height: 3.1rem;
  font-size: 1.3rem;
  border-radius: 0.8rem;
}
.icon-square-lg {
  width: 4.8rem;
  height: 4.8rem;
  font-size: 2.1rem;
  border-radius: 1.3rem;
}
.icon-square img {
  max-width: 62%;
  max-height: 62%;
}

/* ---------- Cards genéricas ---------- */
.feature-card,
.module-card,
.integration-card {
  border: 1px solid rgba(0, 40, 86, 0.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover,
.module-card:hover,
.integration-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--tv-shadow);
}

.feature-list {
  padding-left: 1.1rem;
  margin-top: 0.5rem;
}
.feature-list li {
  margin-bottom: 0.25rem;
}

.valor-box {
  background: var(--tv-light);
  border-left: 4px solid var(--tv-teal);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* ---------- Secciones oscuras ---------- */
.section-dark {
  background:
    radial-gradient(circle at 85% 15%, rgba(79, 184, 167, 0.15) 0%, transparent 40%),
    linear-gradient(160deg, var(--tv-navy) 0%, var(--tv-navy-2) 100%);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(79, 184, 167, 0.22) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 10% 90%, #000 0%, transparent 45%);
  -webkit-mask-image: radial-gradient(circle at 10% 90%, #000 0%, transparent 45%);
  pointer-events: none;
}
.section-dark-alt::before {
  mask-image: radial-gradient(circle at 90% 10%, #000 0%, transparent 45%);
  -webkit-mask-image: radial-gradient(circle at 90% 10%, #000 0%, transparent 45%);
}

.benefit-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.benefit-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(79, 184, 167, 0.5);
}
.benefit-number {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.65rem;
  border: 2px solid var(--tv-teal);
  border-radius: 0.75rem;
  background: linear-gradient(120deg, var(--tv-teal), #7fd6c8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.tech-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 2.25rem 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 184, 167, 0.5);
}

/* ---------- Listas con check ---------- */
.check-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.55rem;
  color: #44576b;
}
.check-list li::before {
  content: "\F26B"; /* bi-check-circle-fill */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--tv-teal);
}
.check-list-lg li {
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.resultado-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--tv-gradient);
    color: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.2rem;
    font-size: 1.3rem;
    box-shadow: 0 0.5rem 1.5rem rgba(35, 65, 145, 0.3);
}
.resultado-box img {
  height: 3.25rem;
  flex-shrink: 0;
}

/* ---------- CTA / contacto ---------- */
.section-cta {
  background:
    radial-gradient(circle at 20% 80%, rgba(79, 184, 167, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(35, 65, 145, 0.5) 0%, transparent 50%),
    linear-gradient(160deg, var(--tv-navy-2) 0%, var(--tv-navy) 100%);
  position: relative;
  overflow: hidden;
}
.contact-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
}
.contact-card .form-label {
  font-weight: 600;
  color: var(--tv-navy);
}
.contact-card .form-control {
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  border-color: rgba(0, 40, 86, 0.15);
}
.contact-card .form-control:focus {
  border-color: var(--tv-teal);
  box-shadow: 0 0 0 0.25rem rgba(79, 184, 167, 0.2);
}

/* ---------- Alerta del formulario (toast) ---------- */
.form-alert {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  max-width: 420px;
  width: calc(100% - 48px);
  padding: 18px 18px 18px 22px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 12px 40px rgba(0, 40, 86, 0.3);
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.form-alert.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.form-alert--success {
  background: #e2f3ef;
  border: 1px solid #a9dcd2;
  color: #0d4a40;
}
.form-alert--success .form-alert-icon {
  color: var(--tv-teal);
}
.form-alert--error {
  background: #f8d7da;
  border: 1px solid #f1aeb5;
  color: #58151c;
}
.form-alert--error .form-alert-icon {
  color: #842029;
}
.form-alert-icon {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.form-alert #formAlertMsg {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}
.form-alert-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
  opacity: 0.6;
  color: inherit;
}
.form-alert-close:hover {
  opacity: 1;
}
@media (max-width: 575.98px) {
  .form-alert {
    top: 16px;
    right: 16px;
    width: calc(100% - 32px);
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--tv-navy-2);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0 2rem;
}
.footer-link {
  color: var(--tv-teal);
  text-decoration: none;
  font-weight: 600;
}
.footer-link:hover {
  color: #7fd6c8;
}
.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 2rem 0 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section {
    padding: 4.5rem 0;
  }
  .hero {
    padding-top: 7.5rem;
    text-align: center;
  }
  .hero-subtitle {
    margin-inline: auto;
  }
  .hero .d-flex.flex-wrap {
    justify-content: center;
  }
  #navbarTV .navbar-collapse {
    background: rgba(0, 29, 64, 0.97);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin-top: 0.75rem;
  }
  #navbarTV .nav-item.ms-lg-3 {
    margin-top: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 3.5rem 0;
  }
  .hero {
    min-height: auto;
  }
  .contact-card {
    padding: 1.5rem;
  }
  .scroll-hint {
    display: none;
  }
}

/* Modo captura (?noanim): sin animaciones ni alturas de viewport */
html.noanim .hero {
  min-height: auto;
}
html.noanim {
  scroll-behavior: auto;
}

/* Respeta la preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-hint {
    animation: none;
  }
}
