
/* =========================================================
       DESIGN SYSTEM – VARIABLES
========================================================= */
:root{
  --principal: #1A5DBA;
  --principal2: #a1c5f5;
  --principal-oscuro: #0F3E7A;
  --principal-gradient: linear-gradient(135deg, #1A5DBA, #0F3E7A);
  --secundario: #FF6600;
  --secundario-2: #F29F05;
  --secundario-oscuro: #b94603;
  --secundario-gradient: linear-gradient(135deg, #FF6600, #b94603);
}

/* =========================================================
       BASE / RESET
========================================================= */

body{
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
}

.section-padding{
  padding: 100px 0;
}

@media (max-width: 768px){
  .section-padding{
    padding: 70px 0;
  }
}

/* =========================================================
       CUSTOM
========================================================= */
.bg-principal-oscuro {
  background-color: var(--principal-oscuro) !important;
}

.bg-principal-claro{
  background-color: var(--principal2) !important;
}

.text-principal {
  color: var(--principal);
}

.text-secundario {
  color: var(--secundario);
}

/* =========================================================
       COMPONENTES GLOBALES
========================================================= */

.btn-primary-custom{
  background: var(--secundario-gradient);
  border: none;
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 500;
  transition: .3s ease;
  text-decoration: none;
  
}

.btn-primary-custom:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(230, 156, 19, 0.3);
  color: var(--secundario-2);
}

.btn-secondary-custom{
  background: var(--principal-gradient);
  border: none;
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 500;
  transition: .3s ease;
  text-decoration: none;
}

.btn-secondary-custom:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(38, 0, 255, 0.3);
  color: var(--principal2);
}

.btn-outline-custom{
  border: 2px solid var(--secundario);
  color: var(--secundario);
  border-radius: 14px;
  padding: 12px 26px;
  font-weight: 500;
  text-decoration: none;
}


/* =========================================================
       HERO
========================================================= */

.hero{
  background: var(--principal-gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero h1{
  font-size: 3rem;
  font-weight: 700;
}

@media (max-width: 992px){
  .hero h1{
    font-size: 2.2rem;
  }
}

/* TYPING EFECT */

.typing-box {
  background-color: var(--principal-oscuro);
  border-radius: 0.5rem;
  padding: 0.5rem 0.5rem;
  margin-bottom: 1rem;
  width: 450px;
  color: var(--principal2);

}

.typing-wrapper {
  min-width: 100px; /* Ajustar según palabra más larga */
  text-align: left;
  
}

.typing {
  display: inline-block;
}


/* Cursor */
.typing::after {
  content: "|";
  margin-left: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

@media (max-width: 750px) {

  .typing-wrapper {
    min-width: 100px; /* Ajustar según palabra más larga */
    text-align: left;
  }

  .typing-box {
    margin-bottom: 3rem;
    width: 300px;

  }

  .typing-box h4{
    font-size: 0.6rem;

  }
}

@media (max-width: 567px) {

  .typing-wrapper {
    min-width: 50px; /* Ajustar según palabra más larga */
    text-align: left;
  }

  .typing-box {
    margin-bottom: 1.5rem;
    margin: auto;
    margin-bottom: 1rem;
    width: 300px;
    justify-content: center;

  }

  .typing-box p{
    font-size: 0.6rem;

  }
}




/* =========================================================
       FEATURES
========================================================= */

.feature-card{
  background: white;
  border-radius: 18px;
  padding: 30px;
  transition: .3s ease;
  height: 100%;
}

.feature-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

/* FEATURE ICONS */

.feature-icon{
  height: 80px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img{
  max-height: 80px;
  width: auto;
  transition: .3s ease;
}

.feature-card:hover .feature-icon img{
  transform: translateY(-4px) scale(1.05);
}

/* =========================================================
       PROBLEM / SOLUTION
========================================================= */

.problem-card{
  background: #ffffff;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  transition: .3s ease;
}

.problem-card:hover{
  transform: translateY(-5px);
}

.problem-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.problem-list li{
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #475569;
  font-weight: 500;
}

.problem-list i{
  color: #94a3b8;
  font-size: 1.2rem;
}

/* LADO POSITIVO */

.solution-card{
  background: var(--principal-gradient);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 25px 60px rgba(15,62,122,0.25);
  transition: .3s ease;
}

.solution-card:hover{
  transform: translateY(-5px);
}

.solution-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-list li{
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 500;
}

.solution-list i{
  color: var(--secundario);
  font-size: 1.2rem;
}

/* Responsive */

@media (max-width: 768px){
  .problem-card,
  .solution-card{
    padding: 35px;
  }
}


/* =========================================================
   HOW IT WORKS – PROCESO VISUAL
========================================================= */

.how-step{
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 35px;
}

.how-number{
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--principal);
  min-width: 45px;
}

.how-step h5{
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--principal-oscuro);
}

.how-step p{
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* VIDEO DEMO */

.video-wrapper{
  overflow: hidden;
  transition: .3s ease;
  background: #000;
  border-radius: 5px;
}

.video-wrapper iframe{
  border-radius: 18px;
}

.video-wrapper:hover{
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* Línea vertical proceso */

.how-steps-wrapper{
  position: relative;
  padding-left: 30px;
}

.how-steps-wrapper::before{
  content: "";
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--principal2),
    var(--principal)
  );
  opacity: 0.4;
}

.how-step{
  position: relative;
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
}

.how-number{
  position: relative;
  z-index: 1;
  background: white;
  border: 2px solid var(--principal2);
  color: var(--principal);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Ocultar línea en mobile */

@media (max-width: 768px){
  .how-steps-wrapper{
    padding-left: 0;
  }

  .how-steps-wrapper::before{
    display: none;
  }
}

/* =========================================================
       TESTIMONIOS
========================================================= */

.testimonial-card{
  background: white;
  border-radius: 22px;
  padding: 40px 35px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  transition: .3s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover{
  transform: translateY(-6px);
}

.testimonial-stars{
  color: var(--secundario);
  font-size: 1.1rem;
  letter-spacing: 3px;
}

.testimonial-quote{
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--principal-oscuro);
}

.testimonial-text{
  color: #475569;
  margin-bottom: 25px;
}

.testimonial-author{
  margin-top: auto;
  font-size: 0.9rem;
  color: #64748b;
}

/* =========================================================
       PRICING
========================================================= */

.pricing-card{
  background: white;
  border-radius: 24px;
  padding: 50px 40px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: .3s ease;
}

.pricing-card:hover{
  transform: translateY(-6px);
}

.pricing-card.featured{
  background: var(--principal-gradient);
  box-shadow: 0 30px 70px rgba(15,62,122,0.35);
}

.featured-badge{
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secundario-gradient);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-header{
  margin-bottom: 30px;
}

.pricing-price{
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--principal-oscuro);
}

.pricing-badge{
  background: #e8f1ff;
  color: var(--principal);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-badge-light{
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.pricing-list,
.pricing-list-light{
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.pricing-list li{
  margin-bottom: 14px;
  padding-left: 20px;
  position: relative;
  font-weight: 500;
  color: #475569;
}

.pricing-list li::before{
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--principal);
  font-weight: bold;
}

.pricing-list-light li{
  margin-bottom: 14px;
  padding-left: 20px;
  position: relative;
  font-weight: 500;
  color: white;
}

.pricing-list-light li::before{
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secundario);
  font-weight: bold;
}

/* Responsive */

@media (max-width: 768px){
  .pricing-card{
    padding: 40px 30px;
  }
}



/* =========================================================
       ANIMACIONES
========================================================= */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0ms);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show,
.fade-in-left.show,
.fade-in-right.show {
  opacity: 1;
  transform: translate(0);
}

/* Para evitar animaciones en usuarios con reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-left,
  .fade-in-right {
    transition: none;
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
        NAVBAR
========================================================= */


.navbar-custom{
  padding: 22px 0;
  transition: all .3s ease;
  background: transparent;
  z-index: 1000;
}

.brand-text{
  color: white;
  font-size: 1.1rem;
  letter-spacing: .5px;
}

.navbar-custom .nav-link{
  color: white;
  font-weight: 500;
  transition: .3s ease;
  position: relative;
}

.navbar-custom .nav-link:hover{
  color: var(--secundario);
}

/* Navbar al hacer scroll */

.navbar-scrolled{
  background: white;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  padding: 14px 0;
}

.navbar-scrolled .brand-text{
  color: var(--principal-oscuro);
}

.navbar-scrolled .nav-link{
  color: var(--principal-oscuro);
}

.navbar-scrolled .nav-link:hover{
  color: var(--secundario);
}

/* Toggler */

.navbar-toggler-icon{
  filter: invert(1);
}

.navbar-scrolled .navbar-toggler-icon{
  filter: invert(0);
}

/* Botón pequeño navbar */

.btn-sm-custom{
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
}

/* Mobile background */

@media (max-width: 991px){
  .navbar-collapse{
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-top: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  }

  .navbar-collapse .nav-link{
    color: var(--principal-oscuro);
  }
}

/* =========================================================
      FOOTER
========================================================= */


.footer-saas{
  background: var(--principal-oscuro);
  color: white;
}

.footer-brand{
  font-weight: 700;
  font-size: 1.4rem;
}

.footer-brand span{
  color: var(--secundario);
}

.footer-description{
  color: #cbd5e1;
  margin-top: 10px;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-title{
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 0.95rem;
  letter-spacing: .5px;
}

.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li{
  margin-bottom: 10px;
}

.footer-links a{
  color: #cbd5e1;
  text-decoration: none;
  transition: .3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover{
  color: var(--secundario);
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-made{
  margin-top: 8px;
}

@media (max-width: 768px){
  .footer-made{
    margin-top: 5px;
  }
}


/* =========================================================
      COOCKIES BANNER
========================================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  z-index: 1050;
  padding: 1rem 0;
}

.cookie-text {
  max-width: 720px;
}

.cookie-actions {
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .cookie-banner {
    padding: 1rem;
  }
}