/* ----------------------------------------------------
   INCOBE (Informática Contabilidad Becerra)
   ESTILOS GENERALES Y DISEÑO DE ALTO IMPACTO
   ---------------------------------------------------- */

/* VARIABLES DE DISEÑO (SISTEMA DE DISEÑO CORPORATIVO) */
:root {
  --color-base: #FFFFFF;          /* Blanco brillante para titulares */
  --color-base-rgb: 255, 255, 255;
  --color-navy-brand: #002E66;    /* Azul Marino corporativo original */
  --color-sage: #8FA08F;          /* Verde Sage */
  --color-sage-rgb: 143, 160, 143;
  --color-gold: #BFA36A;          /* Oro Mate */
  --color-gold-rgb: 191, 163, 106;
  --color-gold-hover: #A38A55;
  
  --color-bg-light: #081424;      /* Fondo de tarjetas oscuro */
  --color-bg-white: #030C16;      /* Fondo de página principal oscuro */
  --color-text-main: #E2E8F0;     /* Slate 200 - Texto principal legible */
  --color-text-sub: #94A3B8;      /* Slate 400 - Texto secundario */
  --color-navy-dark: #00132C;     /* Azul profundo */
  
  --font-title: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --box-shadow-premium: 0 12px 30px rgba(0, 0, 0, 0.4);
  --box-shadow-hover: 0 24px 48px rgba(191, 163, 106, 0.15);
  
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
}

/* RESET GENERAL Y ACCESIBILIDAD */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* CONTENEDORES Y GRILLAS COMUNES */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.align-center {
  align-items: center;
}

.text-center {
  text-align: center;
}

/* TIPOGRAFÍA */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-base);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* BOTONES PREMIUM */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-navy {
  background-color: #FFFFFF;
  color: #030C16;
}

.btn-navy:hover {
  background-color: var(--color-gold);
  color: #030C16;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(191, 163, 106, 0.35);
}

.btn-gold {
  background-color: var(--color-gold);
  color: #030C16;
}

.btn-gold:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(191, 163, 106, 0.3);
}

.btn-outline {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: rgba(191, 163, 106, 0.08);
  color: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-header {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* SECCIONES Y ENCABEZADOS DE SECCIÓN */
section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  max-width: 650px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-sub);
  font-size: 1.1rem;
}

/* BADGES / ETIQUETAS */
.badge {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: rgba(191, 163, 106, 0.15);
  color: var(--color-base);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(191, 163, 106, 0.25);
}

/* ====================================================
   CABECERA & NAVEGACIÓN (HEADER GLASSMORPHISM)
   ==================================================== */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-glass {
  background-color: rgba(3, 12, 22, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.header-scrolled {
  background-color: rgba(3, 12, 22, 0.9);
  padding: 0.6rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Area */
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-wrapper {
  width: 48px;
  height: 48px;
}

.header-logo-svg {
  width: 100%;
  height: 100%;
}

.header-logo-svg .cube-path {
  fill: none;
  stroke: var(--color-base);
  stroke-width: 24;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition-smooth);
}

.header-logo-svg .accent-path {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 24;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition-smooth);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--color-base);
  line-height: 1;
}

.brand-subtext {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  color: var(--color-text-sub);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 500;
}

/* Nav Menu */
.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-sub);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover {
  color: var(--color-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active-link::after {
  width: 100%;
}

.nav-link.active-link {
  color: var(--color-base);
  font-weight: 600;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-base);
  position: relative;
  transition: var(--transition-smooth);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--color-base);
  transition: var(--transition-smooth);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Responsive Header Styles */
@media (max-width: 991px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-bg-white);
    box-shadow: -10px 0 30px rgba(0, 46, 102, 0.15);
    padding: 6rem 2rem 2rem 2rem;
    transition: var(--transition-smooth);
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 1.15rem;
  }
  
  /* Animación hamburguesa activa */
  .menu-toggle.active .hamburger {
    background-color: transparent;
  }
  
  .menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }
  
  .menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
  }
}

/* ====================================================
   SECCIÓN HERO
   ==================================================== */
.hero-section {
  background: radial-gradient(circle at 80% 20%, rgba(191, 163, 106, 0.06) 0%, rgba(3, 12, 22, 0) 60%),
              linear-gradient(135deg, rgba(143, 160, 143, 0.04) 0%, rgba(3, 12, 22, 0) 100%);
  padding-top: 10rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  color: var(--color-base);
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-description {
  font-size: 1.05rem;
  color: var(--color-text-sub);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Animación de Cubo 3D Interactivo en CSS */
.hero-interactive-cube-container {
  perspective: 1000px;
  width: 100%;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  user-select: none;
}

.cube-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
}

.cube-3d {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
}

.cube-3d:hover {
  animation-play-state: paused;
}

.face {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(191, 163, 106, 0.45);
  background: rgba(3, 12, 22, 0.25);
  backdrop-filter: blur(4px);
  color: var(--color-gold);
  font-family: var(--font-title);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  box-shadow: inset 0 0 20px rgba(191, 163, 106, 0.15),
              0 0 15px rgba(191, 163, 106, 0.1);
  transition: var(--transition-smooth);
}

.face::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px dashed rgba(191, 163, 106, 0.15);
  pointer-events: none;
}

/* Elementos internos del Wireframe */
.face-text {
  position: relative;
  z-index: 5;
  background-color: var(--color-bg-white);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(191, 163, 106, 0.25);
  font-size: 0.95rem;
  box-shadow: 0 0 15px rgba(191, 163, 106, 0.1);
  color: var(--color-gold);
}

.diagonal-1, .diagonal-2 {
  position: absolute;
  background: rgba(191, 163, 106, 0.18);
}

.diagonal-1 {
  top: 0;
  left: 0;
  width: 141.4%;
  height: 1px;
  transform: rotate(45deg);
  transform-origin: top left;
}

.diagonal-2 {
  top: 0;
  right: 0;
  width: 141.4%;
  height: 1px;
  transform: rotate(-45deg);
  transform-origin: top right;
}

.vertex {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-gold), 0 0 20px rgba(191, 163, 106, 0.8);
  z-index: 10;
  animation: pulseVertex 2s infinite ease-in-out;
}

.v-tl { top: -3px; left: -3px; }
.v-tr { top: -3px; right: -3px; }
.v-bl { bottom: -3px; left: -3px; }
.v-br { bottom: -3px; right: -3px; }

@keyframes pulseVertex {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
    box-shadow: 0 0 5px var(--color-gold), 0 0 10px rgba(191, 163, 106, 0.5);
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 12px var(--color-gold), 0 0 24px rgba(191, 163, 106, 0.9);
  }
}

/* Posiciones de las caras en el espacio 3D */
.front  { transform: rotateY(0deg) translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); border-color: rgba(143, 160, 143, 0.35); }
.left   { transform: rotateY(-90deg) translateZ(100px); border-color: rgba(143, 160, 143, 0.35); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* Partículas animadas flotando */
.cube-particles {
  position: absolute;
  width: 350px;
  height: 350px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-gold);
}

.p1 { top: 10%; left: 20%; animation: floatParticle 8s infinite ease-in-out; }
.p2 { top: 80%; left: 15%; background-color: var(--color-sage); box-shadow: 0 0 10px var(--color-sage); animation: floatParticle 10s infinite ease-in-out 1s; }
.p3 { top: 30%; right: 10%; animation: floatParticle 12s infinite ease-in-out 2s; }
.p4 { bottom: 20%; right: 20%; background-color: var(--color-base); box-shadow: 0 0 10px var(--color-base); animation: floatParticle 9s infinite ease-in-out 3s; }

/* Animaciones del Hero */
@keyframes rotateCube {
  0%   { transform: rotateX(-15deg) rotateY(0deg); }
  100% { transform: rotateX(-15deg) rotateY(360deg); }
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50%      { transform: translateY(-20px) scale(1.3); opacity: 0.8; }
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 10;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ====================================================
   SECCIÓN SERVICIOS
   ==================================================== */
.services-section {
  background-color: var(--color-bg-light);
  z-index: 20;
}

.services-grid {
  margin-top: 2rem;
}

.service-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--box-shadow-premium);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  transition: var(--transition-smooth);
}

.it-card::before { background-color: var(--color-sage); }
.finance-card::before { background-color: var(--color-gold); }

/* Glow de fondo al hacer Hover */
.card-glow {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.03;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.it-card .card-glow { background-color: var(--color-sage); }
.finance-card .card-glow { background-color: var(--color-gold); }

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
}

.service-card:hover .card-glow {
  opacity: 0.09;
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.it-card .service-icon-wrapper {
  background-color: rgba(143, 160, 143, 0.15);
  color: var(--color-base);
}

.finance-card .service-icon-wrapper {
  background-color: rgba(191, 163, 106, 0.15);
  color: var(--color-gold);
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.service-icon {
  width: 32px;
  height: 32px;
}

.service-card-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.service-card-desc {
  color: var(--color-text-sub);
  margin-bottom: 2rem;
}

.service-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.it-card .check-icon { color: var(--color-sage); }
.finance-card .check-icon { color: var(--color-gold); }

.btn-card-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.it-link { color: var(--color-base); }
.finance-link { color: var(--color-gold); }

.it-link:hover { color: var(--color-sage); padding-left: 5px; }
.finance-link:hover { color: var(--color-gold-hover); padding-left: 5px; }


/* ====================================================
   SECCIÓN NOSOTROS & PILARES
   ==================================================== */
.about-section {
  background-color: var(--color-bg-white);
  overflow: hidden;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 300px;
}

/* Concepto Isométrico 2.5D en CSS Puro */
.isometric-concept {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.iso-grid {
  position: relative;
  transform: rotateX(60deg) rotateZ(-45deg);
  transform-style: preserve-3d;
}

.iso-block {
  position: absolute;
  width: 100px;
  height: 100px;
  transition: var(--transition-smooth);
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.15);
}

.block-sage {
  background-color: var(--color-sage);
  transform: translateZ(50px);
  animation: floatBlock 6s infinite ease-in-out;
}

.block-navy {
  background-color: var(--color-base);
  transform: translate(-40px, -40px) translateZ(0);
  animation: floatBlock 6s infinite ease-in-out 1.5s;
}

.block-gold {
  background-color: var(--color-gold);
  transform: translate(60px, 60px) translateZ(-50px);
  animation: floatBlock 6s infinite ease-in-out 3s;
}

@keyframes floatBlock {
  0%, 100% { transform: translateY(0) translateZ(inherit); }
  50%      { transform: translateY(-12px) translateZ(inherit); }
}

.about-content p {
  color: var(--color-text-sub);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.pillars-container {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar-item {
  display: flex;
  gap: 1.5rem;
}

.pillar-number {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-gold);
  background-color: rgba(191, 163, 106, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.pillar-text p {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  margin-bottom: 0;
}


/* ====================================================
   SECCIÓN CONTACTO & FORMULARIO
   ==================================================== */
.contact-section {
  background-color: var(--color-bg-light);
  overflow: hidden;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-desc {
  color: var(--color-text-sub);
  margin-bottom: 3rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.info-icon {
  width: 46px;
  height: 46px;
  background-color: var(--color-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-item h5 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.info-item p {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  white-space: pre-line;
}

/* Wrapper del Formulario */
.contact-form-wrapper {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--box-shadow-premium);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-base);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  transition: var(--transition-smooth);
}

.form-input::placeholder {
  color: #64748B; /* Slate 500 */
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
  background-color: var(--color-bg-light);
  box-shadow: 0 0 0 3px rgba(191, 163, 106, 0.15);
}

.select-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23BFA36A'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.25rem;
}

.text-area-input {
  resize: vertical;
}

/* Mensajes de Error */
.error-msg {
  font-size: 0.75rem;
  color: #EF4444; /* Red 500 */
  display: none;
  margin-top: 2px;
}

.form-input.invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.invalid + .error-msg {
  display: block;
}

.form-status {
  padding: 1rem;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-status.success {
  background-color: #DEF7EC;
  color: #03543F;
  border: 1px solid #BCF0DA;
  display: block;
}

.form-status.error {
  background-color: #FDE8E8;
  color: #9B1C1C;
  border: 1px solid #FBD5D5;
  display: block;
}


/* ====================================================
   PIE DE PÁGINA (FOOTER)
   ==================================================== */
.main-footer {
  background-color: var(--color-navy-dark);
  color: var(--color-text-sub);
  padding: 5rem 0 0 0;
  border-top: 3px solid var(--color-gold);
}

.main-footer h4 {
  color: var(--color-gold);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-logo-svg {
  width: 38px;
  height: 38px;
}

.footer-logo-svg .cube-path {
  fill: none;
  stroke: var(--color-base);
  stroke-width: 24;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-logo-svg .accent-path {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 24;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-brand-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--color-base);
}

.footer-brand-subtitle {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--color-text-sub);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--color-text-sub);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--color-text-sub);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 6px;
}

.footer-hours p {
  color: var(--color-text-sub);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}


/* ====================================================
   ANIMACIÓN INTERSECTION OBSERVER (REVELADOS)
   ==================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================================
   PORTAL DE DESCARGAS (descargas.html)
   ==================================================== */
.portal-main {
  padding-top: 8rem;
  background-color: var(--color-bg-white);
  min-height: 100vh;
}

.portal-hero {
  padding: 3rem 0 1rem 0;
}

.portal-hero-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.portal-hero-desc {
  color: var(--color-text-sub);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .portal-hero-title {
    font-size: 3.25rem;
  }
  .portal-hero-desc {
    font-size: 1.15rem;
  }
}

/* Barra de Filtros y Búsqueda */
.filter-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
  background-color: var(--color-bg-light);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

@media (min-width: 992px) {
  .filter-bar-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.search-box {
  position: relative;
  width: 100%;
}

@media (min-width: 992px) {
  .search-box {
    max-width: 450px;
  }
}

.search-box input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background-color: #030C16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  color: var(--color-base);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(191, 163, 106, 0.15);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-text-sub);
  pointer-events: none;
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-sub);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-pill:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.filter-pill.active {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: #030C16;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(191, 163, 106, 0.25);
}

/* Grilla y Tarjetas */
.software-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .software-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .software-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.software-card {
  background-color: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--box-shadow-premium);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 1;
}

.software-card:hover {
  transform: translateY(-5px);
  border-color: rgba(191, 163, 106, 0.25);
  box-shadow: var(--box-shadow-hover);
}

.sw-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sw-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sw-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.sw-icon-wrapper.contabilidad svg { color: var(--color-gold); }
.sw-icon-wrapper.sistemas svg { color: var(--color-sage); }
.sw-icon-wrapper.utilidades svg { color: #5B8BFF; }

.category-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.tag-gold { background: rgba(191, 163, 106, 0.1); color: var(--color-gold); border: 1px solid rgba(191, 163, 106, 0.15); }
.tag-sage { background: rgba(143, 160, 143, 0.1); color: var(--color-sage); border: 1px solid rgba(143, 160, 143, 0.15); }
.tag-navy { background: rgba(91, 139, 255, 0.1); color: #8CBAFF; border: 1px solid rgba(91, 139, 255, 0.15); }

.sw-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-base);
  line-height: 1.2;
}

.sw-description {
  color: var(--color-text-sub);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.sw-metadata {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-sub);
}

.meta-item {
  display: flex;
  justify-content: space-between;
}

.sw-metadata strong {
  color: var(--color-base);
  font-weight: 500;
}

/* Acordeón Changelog */
.changelog-accordion {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background-color: rgba(3, 12, 22, 0.2);
}

.changelog-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: transparent;
  border: none;
  color: var(--color-text-sub);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.changelog-btn:hover {
  color: var(--color-gold);
  background-color: rgba(255, 255, 255, 0.01);
}

.chevron-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-text-sub);
}

.changelog-accordion.active .chevron-icon {
  transform: rotate(180deg);
  color: var(--color-gold);
}

.changelog-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: rgba(3, 12, 22, 0.3);
}

.changelog-content ul {
  list-style-type: none;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-sub);
}

.changelog-content li {
  position: relative;
  padding-left: 0.95rem;
  line-height: 1.4;
}

.changelog-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: 0.95rem;
  top: -1px;
}

/* Área de Clientes VIP */
.vip-section {
  padding: 5rem 0 6rem 0;
}

.vip-card {
  background: linear-gradient(135deg, rgba(8, 20, 36, 0.8) 0%, rgba(3, 12, 22, 0.8) 100%);
  border-radius: var(--border-radius-lg);
  padding: 3rem 1.5rem;
  border: 1px solid rgba(191, 163, 106, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(191, 163, 106, 0.03);
  position: relative;
  overflow: hidden;
  max-width: 750px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .vip-card {
    padding: 4rem 3rem;
  }
}

.vip-card-glow {
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(191, 163, 106, 0.04) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.vip-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-base);
}

.vip-subtitle {
  color: var(--color-text-sub);
  font-size: 0.95rem;
  max-width: 550px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.6;
}

.vip-form {
  max-width: 450px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.vip-input-group {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background-color: #030C16;
  padding: 0.25rem;
  transition: var(--transition-smooth);
}

.vip-input-group:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(191, 163, 106, 0.15);
}

.vip-input-group input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  color: var(--color-base);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  width: 50%;
}

.vip-input-group button {
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
}

.vip-error {
  display: none;
  color: #EF4444;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  text-align: center;
}

.vip-success-msg {
  display: none;
  color: #10B981;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 500;
}

.vip-downloads-panel {
  display: none;
  margin-top: 3rem;
  border-top: 1px dashed rgba(191, 163, 106, 0.2);
  padding-top: 2rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.vip-downloads-panel.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.vip-panel-header {
  font-size: 1.05rem;
  color: var(--color-base);
  margin-bottom: 1.25rem;
  font-family: var(--font-title);
  font-weight: 600;
}

.vip-downloads-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vip-item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background-color: rgba(3, 12, 22, 0.4);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-smooth);
}

@media (min-width: 768px) {
  .vip-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.vip-item:hover {
  border-color: rgba(191, 163, 106, 0.15);
  background-color: rgba(3, 12, 22, 0.6);
}

.vip-item-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-base);
}

.vip-item-info p {
  font-size: 0.8rem;
  color: var(--color-text-sub);
}

.vip-item-info strong {
  color: var(--color-gold);
  font-weight: 500;
}

/* Mensaje sin resultados */
.no-results-msg {
  text-align: center;
  padding: 4rem 0;
  color: var(--color-text-sub);
  font-size: 1.1rem;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-lg);
  background-color: rgba(8, 20, 36, 0.2);
}

/* ====================================================
   SECCIÓN DEMOSTRACIÓN (index.html)
   ==================================================== */
.demo-section {
  background-color: var(--color-bg-white);
  position: relative;
  z-index: 20;
}

/* Control de Pestañas (Tabs) */
.demo-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.demo-tabs {
  display: flex;
  background-color: var(--color-bg-light);
  padding: 0.35rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-tab-btn {
  background: transparent;
  border: none;
  color: var(--color-text-sub);
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.demo-tab-btn:hover {
  color: var(--color-base);
}

.demo-tab-btn.active {
  background-color: var(--color-gold);
  color: #030C16;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(191, 163, 106, 0.25);
}

/* Contenido de Pestañas */
.demo-tab-content {
  display: none;
}

.demo-tab-content.active {
  display: block;
  animation: fadeInTab 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grilla de Galería */
.demo-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .demo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-card {
  background-color: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--box-shadow-premium);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: rgba(191, 163, 106, 0.25);
  box-shadow: var(--box-shadow-hover);
}

.gallery-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  background-color: #030C16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.gallery-card:hover .gallery-img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 12, 22, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  gap: 0.5rem;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.zoom-icon {
  width: 32px;
  height: 32px;
  color: var(--color-gold);
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .zoom-icon {
  transform: scale(1);
}

.gallery-overlay span {
  color: var(--color-base);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-info {
  padding: 1.5rem;
  flex-grow: 1;
}

.gallery-info h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--color-base);
}

.gallery-info p {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  line-height: 1.5;
}

/* Reproductor de Video */
.demo-video-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(191, 163, 106, 0.2);
  box-shadow: var(--box-shadow-premium);
  background-color: #000;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  position: relative;
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.6s ease;
}

.video-container:hover .thumbnail-img {
  transform: scale(1.02);
}

.video-overlay-play {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  z-index: 5;
  background-color: rgba(3, 12, 22, 0.45);
  transition: background-color 0.3s ease;
}

.video-container:hover .video-overlay-play {
  background-color: rgba(3, 12, 22, 0.55);
}

.play-btn {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background-color: var(--color-gold);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #030C16;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(191, 163, 106, 0.4);
}

.video-container:hover .play-btn {
  transform: scale(1.1);
  background-color: var(--color-gold-hover);
  box-shadow: 0 6px 25px rgba(191, 163, 106, 0.6);
}

.play-icon {
  width: 30px;
  height: 30px;
  margin-left: 5px;
}

.video-play-text {
  color: var(--color-base);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Contenedor Iframe responsivo */
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 10;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(3, 12, 22, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--color-text-sub);
  font-size: 3rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  line-height: 1;
  z-index: 2100;
}

.lightbox-close:hover {
  color: var(--color-gold);
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .lightbox-close {
    top: 2rem;
    right: 2.5rem;
  }
}

.lightbox-content {
  max-width: 95%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 15px 50px rgba(0,0,0,0.9);
}

.lightbox-caption {
  color: var(--color-text-sub);
  margin-top: 1.25rem;
  font-size: 0.9rem;
  text-align: center;
  max-width: 600px;
  font-family: var(--font-body);
  line-height: 1.5;
}


