/* Importación oficial de la tipografía Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap");


:root {
  --background: 222 47% 11%;
  --foreground: 210 40% 98%;
  --pearl: 210 20% 90%;

  --accent: #3898ec;
  --accent-muted: rgba(56, 152, 236, 0.12);

  --card: 222 47% 7%;
  --border: rgba(56, 152, 236, 0.25);

  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.6), 0 2px 6px -1px rgba(56, 152, 236, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.8), 0 4px 12px -2px rgba(56, 152, 236, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 12px;
  /* Aquí se define la base para TODO el proyecto */
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Estructura del Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background-color: rgba(11, 22, 44, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  color: #f1f1f1;
  font-family: 'Hind', sans-serif;
  font-size: 2.5rem;
  font-weight: 300;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  /* Separación horizontal entre la imagen y el texto */
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

.nav-logo:hover {
  color: #f1f1f1;
}

.nav-logo-img {
  height: 3.5rem;
  width: auto;
  filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.85));
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: hsl(0 0% 94.5%);
  font-size: 1.3rem;
  line-height: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

.nav-link:hover {
  color: var(--accent);
  font-weight: 600;
  background-color: transparent !important;
  background: transparent !important;
  text-shadow: none;
}

.nav-link:focus {
  color: var(--accent);
  font-weight: 600;
  background-color: transparent !important;
  background: transparent !important;
  text-shadow: none;
}

.nav-link:active {
  color: var(--accent);
  font-weight: 600;
  background-color: transparent !important;
  background: transparent !important;
  text-shadow: none;
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

.page-on-scroll .header .navbar {
  background-color: hsl(var(--background));
  background: hsl(var(--background));
  border-bottom-color: var(--border);
  border-radius: 0;
}

/* Componentes: Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 400;
  height: 2.5rem;
  padding: 0 1.25rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: #4c1d95;
  color: #f1f1f1;
  outline: none !important;
}

.btn-primary:hover {
  background-color: #6022c3;
  /* Incremento de luminancia en hover */
  box-shadow: 0 0 14px hsla(263, 70%, 45%, 0.3);
  border-color: hsla(262.1 83.3% 57.8%);
  color: #f1f1f1;
}

.btn-primary:focus {
  background-color: #4c1d95 !important;
  color: #f1f1f1;
  outline: none !important;
}

.btn-primary:active {
  background-color: #4c1d95 !important;
  color: #f1f1f1;
  outline: none !important;
}

.btn-secondary {
  background-color: transparent;
  color: var(--pearl);
  border: 1px solid rgba(255, 255, 255, 0.65);
  outline: none !important;
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: #f1f1f1;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn-secondary:focus {
  background-color: transparent !important;
  color: var(--pearl);
  border: 1px solid rgba(255, 255, 255, 0.65);
  outline: none !important;
}

.btn-secondary:active {
  background-color: transparent !important;
  color: var(--pearl);
  border: 1px solid rgba(255, 255, 255, 0.65);
  outline: none !important;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: #f1f1f1;
  outline: none !important;
}

.btn-outline:hover {
  background-color: hsla(263, 67.4%, 34.9%, 0.1);
  border-color: hsl(263.5 67.4% 34.9%);
  color: #f1f1f1;
}

.btn-outline:focus {
  background-color: transparent !important;
  border-color: var(--border);
  color: #f1f1f1;
  outline: none !important;
}

.btn-outline:active {
  background-color: transparent !important;
  border-color: var(--border);
  color: #f1f1f1;
  outline: none !important;
}

/* Contenedor Principal */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 6rem 1.5rem 1rem 1.5rem;
}

/* Componente: Tarjeta con sombreado estilo Shadcn */
.card {
  background-color: hsl(var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 3.5rem 2.5rem;
}

.hero-card {
  text-align: center;
  margin: 40px auto;
}

.hero-card h1 {
  font-size: 4rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  color: #f1f1f1;
  line-height: 1.25;
}

.texto-marketing-gradient {
  font-size: 4rem;
  font-weight: 500;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;

  /* bg-gradient-to-br y los colores resueltos */
  background-image: linear-gradient(135deg,
      oklch(50.5% 0.233 275.33) 20%,
      /* from-indigo-600 */
      oklch(62.3% 0.214 259.8) 30%,
      /* via-primary (azul/violeta de la plantilla) */
      oklch(51.1% 0.262 276.966)
      /* to-green-600 */
    );
}

.hero-card p {
  color: var(--pearl);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Estructura del Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: hsl(var(--card));
  padding: 4rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  color: #f1f1f1;
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: 0.75rem;
  line-height: 1.5;
}

.footer-links-group {
  display: flex;
  gap: 5rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-column h4 {
  color: #f1f1f1;
  font-size: 1.2rem;
  font-weight: 500;
  /* Consistencia en bold delicado */
}

.footer-column a {
  color: #f1f1f1;
  font-size: 1.1rem;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--accent);
}

/* ---------------------------------- */

/* ==========================================================================
   SECCIÓN 2: NOSOTROS - COMPONENTES SHADCN ENRIQUECIDOS
   ========================================================================== */

.nosotros-section {
  padding-top: 2rem;
}

.nosotros-title {
  font-size: 2.25rem;
  font-weight: 500;
  color: #f1f1f1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.nosotros-paragraph {
  color: var(--pearl);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.75;
}

/* Componente: Tarjeta Enriquecida (Estilo Shadcn UI acoplable a la grilla) */
.card-enriched {
  background: linear-gradient(135deg, hsl(var(--card)) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(56, 152, 236, 0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
  min-height: 380px;
  /* Garantiza simetría de altura en la fila */
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* Efecto de Iluminación y Elevación (Hover) */
.card-enriched:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 152, 236, 0.4);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.9),
    0 0 20px -5px rgba(56, 152, 236, 0.15);
}

/* Capa de destello interno sutil */
.card-enriched::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255, 255, 255, 0.06), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card-enriched:hover::before {
  opacity: 1;
}

/* Contenedor de Imagen de Alta Definición */

.card-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}


.card-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-enriched:hover .card-image-wrapper img {
  transform: scale(1.04);
}

.card-enriched-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: #f1f1f1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.card-enriched-text {
  color: var(--pearl);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

/* WEBPAGE */
.webpage {
  width: 100%;
  height: auto;
  border: solid 1px var(--accent);
  padding: 20px;
  border-radius: 5px;
}

.webpage p {
  font-size: 14px;
  text-align: left;
}

.webpage-detail {
  margin-bottom: 5px;
  text-align: left;
  font-size: 12px;
}

.box-borde-degradado {
  background: transparent;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #800080;
  border-radius: 5px;
}

.icono-degradado {
  font-size: 20px;
  background: linear-gradient(135deg, #4196f6 0%, #800080 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.login-container {
    max-width: 380px;
    margin: 60px auto;
    padding: 30px;
    background: #e8e8e8;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.login-form .control-label {
    font-weight: 600;
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 8px;
}

.login-form .form-control {
    height: 44px;
    background-color: #fcfcfc;
    border: 1px solid #800080;
    border-radius: 4px;
    box-shadow: none;
    transition: all 0.2s ease-in-out;
}

.login-form .form-control:focus {
    background-color: #ffffff;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.password-wrapper {
    position: relative;
}

.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: #a0aec0;
    font-size: 16px;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s ease;
}

.btn-toggle-pwd:hover,
.btn-toggle-pwd:focus {
    color: #4a5568;
    outline: none;
    text-decoration: none;
}

.login-form .btn-submit {
    height: 44px;
    font-weight: 600;
    font-size: 15px;
    background-color: #4c1d95;
    border-color: #4c1d95;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.login-form .btn-submit:hover,
.login-form .btn-submit:focus {
    background-color: rgba(11, 22, 44, 0.85);
    border-color: #2b6cb0;
}

@media (max-width: 991px) {

  .site-header,
  .header {
    border-bottom: 1px solid var(--border);
    background-color: rgba(11, 22, 44, 0.85);
    backdrop-filter: blur(8px);
  }

  .btn-primary:hover {
    background-color: #6022c3;
    /* Incremento de luminancia en hover */
    box-shadow: 0 0 14px hsla(263, 70%, 45%, 0.3);
    border-color: hsla(262.1 83.3% 57.8%);
  }

  .btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.4);
    /* Negro con 40% de opacidad */
    backdrop-filter: blur(4px);
    /* Opcional: difuminado de fondo estilo Shadcn */
    color: #f1f1f1;
    border: 1px solid rgba(0, 0, 0, 0.15);
  }

  .card-enriched {
    min-height: 280px;
  }
}

@media (max-width: 767px) {

  .site-header,
  .header {
    border-bottom: 1px solid var(--border);
    background-color: rgba(11, 22, 44, 0.85);
    backdrop-filter: blur(8px);
  }

  .btn-primary:hover {
    background-color: #6022c3;
    /* Incremento de luminancia en hover */
    box-shadow: 0 0 14px hsla(263, 70%, 45%, 0.3);
    border-color: hsla(262.1 83.3% 57.8%);
  }

  .btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.4);
    /* Negro con 40% de opacidad */
    backdrop-filter: blur(4px);
    /* Opcional: difuminado de fondo estilo Shadcn */
    color: #f1f1f1;
    border: 1px solid rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 600px) {

  .site-header,
  .header {
    border-bottom: 1px solid var(--border);
    background-color: rgba(11, 22, 44, 0.85);
    backdrop-filter: blur(8px);
  }

  .btn-primary:hover {
    background-color: #6022c3;
    /* Incremento de luminancia en hover */
    box-shadow: 0 0 14px hsla(263, 70%, 45%, 0.3);
    border-color: hsla(262.1 83.3% 57.8%);
  }

  .btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.4);
    /* Negro con 40% de opacidad */
    backdrop-filter: blur(4px);
    /* Opcional: difuminado de fondo estilo Shadcn */
    color: #f1f1f1;
    border: 1px solid rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 480px) {

  .site-header,
  .header {
    border-bottom: 1px solid var(--border);
    background-color: rgba(11, 22, 44, 0.85);
    backdrop-filter: blur(8px);
  }

  .btn-primary:hover {
    background-color: #6022c3;
    /* Incremento de luminancia en hover */
    box-shadow: 0 0 14px hsla(263, 70%, 45%, 0.3);
    border-color: hsla(262.1 83.3% 57.8%);
  }

  .btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.4);
    /* Negro con 40% de opacidad */
    backdrop-filter: blur(4px);
    /* Opcional: difuminado de fondo estilo Shadcn */
    color: #f1f1f1;
    border: 1px solid rgba(0, 0, 0, 0.15);
  }
}

/*  ********************************************** */
/* ==========================================================================
   SECCIÓN 3: SOLUCIONES - COMPONENTES SAAS CON EFECTO DE BORDE ACTIVO
   ========================================================================== */

.soluciones-section {
  padding-top: 2rem;
}

.soluciones-title {
  font-size: 2.25rem;
  font-weight: 500;
  color: #f1f1f1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.soluciones-paragraph {
  color: var(--pearl);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.75;
}

/* Modificador del componente .card existente para el efecto perimetral */
.card-saas-glow {
  position: relative;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

/* Estado Interactivo: Brillo perimetral cromático y atenuación de fondo sin traslación vertical */
.card-saas-glow:hover {
  background-color: hsla(222, 47%, 5%, 0.95);
  border-color: rgba(56, 152, 236, 0.7);
  box-shadow: 0 0 25px -5px rgba(56, 152, 236, 0.35);
}

/* Contenedor de Imagen adaptado al interior de la subgrilla */
.saas-media-box {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.saas-media-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Micro-escalado interno de la imagen vinculado al hover de la tarjeta */
.card-saas-glow:hover .saas-media-box img {
  transform: scale(1.03);
}

/* Contenedor del Bloque de Texto e Interacciones */
.saas-content-box {
  padding: 1rem 0;
}

@media (max-width: 991px) {
  /* ... sus estilos móviles anteriores ... */

  /* Corrección de apilamiento para la Card 2 en mobile */
  .col-md-7+.col-md-5 .saas-media-box {
    margin-top: 2.5rem;
    margin-bottom: 0;
  }
}

.contacto-actions {
  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: center;
}

.article-paragraph {
  font-size: 1.2rem !important;
  margin: 0.75rem auto !important;
  line-height: 1.5 !important;
  text-align: justify;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #f1f1f1;
  margin-bottom: 1.5rem;
}
