/* C:\Users\NolfreyMartinezAOS\OneDrive\Escritorio\Nueva carpeta1\css\style.css */

/* ==========================================================================
   1. SISTEMA DE DISEÑO & VARIABLES (Google Fonts, HSL Colors, Shadows)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Paleta de Colores HSL Vibrantes */
  --primary: hsl(263, 90%, 55%);         /* Violeta Tecnológico (Innovación) */
  --primary-glow: hsla(263, 90%, 55%, 0.35);
  --secondary: hsl(180, 100%, 46%);       /* Cian Eléctrico (Velocidad/E-commerce) */
  --secondary-glow: hsla(180, 100%, 46%, 0.35);
  --accent: hsl(14, 100%, 57%);           /* Coral Neón (Energía/Aceleración) */
  --accent-glow: hsla(14, 100%, 57%, 0.3);
  
  /* Gradientes Dinámicos Premium */
  --grad-primary: linear-gradient(135deg, var(--primary) 0%, hsl(290, 85%, 50%) 100%);
  --grad-secondary: linear-gradient(135deg, var(--secondary) 0%, hsl(195, 100%, 45%) 100%);
  --grad-accent: linear-gradient(135deg, var(--accent) 0%, hsl(340, 100%, 55%) 100%);
  --grad-dark: linear-gradient(180deg, hsl(224, 71%, 4%) 0%, hsl(222, 55%, 8%) 100%);
  --grad-neon: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 50%, var(--accent) 100%);
  
  /* Sistema de Fondos y Contenedores (Glassmorphism) */
  --bg-deep: hsl(224, 71%, 4%);
  --bg-card: rgba(13, 20, 38, 0.55);
  --bg-card-hover: rgba(22, 33, 62, 0.75);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.18);
  
  /* Tipografía e Interlineado */
  --font-titles: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  /* Textos */
  --text-light: hsl(210, 40%, 98%);
  --text-muted: hsl(215, 20%, 65%);
  --text-dimmed: hsl(215, 15%, 45%);
  
  /* Transiciones & Curvas Bezier */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease-out;
  
  /* Contenedores */
  --max-width: 1280px;
  --header-height: 80px;
}

/* ==========================================================================
   2. ESTILOS BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-light);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--grad-dark);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
  outline: none;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selección de Texto */
::selection {
  background: var(--primary);
  color: #fff;
}

/* ==========================================================================
   3. CLASES DE UTILIDAD & CAPAS DE EFECTO
   ========================================================================== */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.text-gradient {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.85rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  gap: 0.5rem;
  font-family: var(--font-titles);
  letter-spacing: 0.5px;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-neon);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
}
.btn-primary:hover {
  box-shadow: 0 8px 25px var(--primary-glow);
  transform: translateY(-2px);
}
.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  border: 1px solid var(--border-glass-hover);
  background: rgba(255, 255, 255, 0.05);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--grad-accent);
  box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-accent:hover {
  box-shadow: 0 8px 25px var(--accent-glow);
  transform: translateY(-2px);
}

.section-padding {
  padding: 7rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-header h2 {
  font-family: var(--font-titles);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Efecto Glassmorphism */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  transition: var(--transition-smooth);
}
.glass-panel:hover {
  border-color: var(--border-glass-hover);
  background: var(--bg-card-hover);
}

/* Orbes de Fondo Dinámicos */
.bg-glow-orb {
  position: absolute;
  width: clamp(200px, 40vw, 500px);
  height: clamp(200px, 40vw, 500px);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -2;
}

/* ==========================================================================
   4. CABECERA & NAVEGACIÓN (Header)
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.main-header.scrolled {
  background: rgba(8, 12, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border-glass);
  height: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

/* Logotipo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-titles);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-icon svg path {
  transition: var(--transition-smooth);
}
.logo:hover .logo-icon svg path {
  stroke: var(--secondary);
}

/* Menú de Navegación */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-light);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--grad-neon);
  transition: var(--transition-smooth);
  border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Menú Móvil Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1010;
}
.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-light);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   5. SECCIÓN HERO (Presentación de Alto Impacto)
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 7rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  position: relative;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  background: rgba(180, 100%, 46%, 0.1);
  border: 1px solid rgba(180, 100%, 46%, 0.2);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.badge-tag span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  animation: pulse-glow 2s infinite;
}

.hero-title {
  font-family: var(--font-titles);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-titles);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tarjeta Visual de Hero (Derecha) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-card {
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.hero-card-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(263, 90%, 55%, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 10px;
}
.hero-card-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary);
}

.hero-chart-placeholder {
  height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2rem;
  position: relative;
}

.chart-bar {
  width: 100%;
  background: var(--grad-primary);
  border-radius: 6px 6px 0 0;
  position: relative;
  animation: grow-height 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: bottom;
}
.chart-bar:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.chart-bar:nth-child(2) { height: 50%; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { height: 40%; animation-delay: 0.3s; }
.chart-bar:nth-child(4) { height: 75%; animation-delay: 0.4s; }
.chart-bar:nth-child(5) { height: 60%; animation-delay: 0.5s; --grad-primary: var(--grad-secondary); }
.chart-bar:nth-child(6) { height: 95%; animation-delay: 0.6s; --grad-primary: var(--grad-accent); }

.chart-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 3px solid var(--accent);
  border-radius: 50%;
  top: 5px;
  right: 5%;
  box-shadow: 0 0 15px var(--accent);
  animation: bounce-orb 2.5s infinite ease-in-out;
}

.hero-card-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.card-feat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.card-feat-item svg {
  color: var(--secondary);
}

/* Orbes Decorativos */
.hero-orb-1 {
  top: 10%;
  left: -10%;
  background: var(--primary);
}
.hero-orb-2 {
  bottom: 10%;
  right: -10%;
  background: var(--secondary);
}
.hero-glow-element {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, hsla(263, 90%, 55%, 0.1) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   6. SERVICIOS (Los Pilares de Crecimiento)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 3rem 2.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  margin-bottom: 2rem;
  color: var(--theme-color, var(--primary));
  transition: var(--transition-smooth);
}
.service-card:hover .service-icon-box {
  background: var(--theme-color, var(--primary));
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px var(--theme-glow, var(--primary-glow));
}

.service-card h3 {
  font-family: var(--font-titles);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
  width: 100%;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-light);
}
.service-features li svg {
  color: var(--theme-color, var(--primary));
}

.service-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-color, var(--primary));
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}
.service-card-link svg {
  transition: var(--transition-fast);
}
.service-card:hover .service-card-link svg {
  transform: translateX(5px);
}

/* ==========================================================================
   7. NOSOTROS (Misión, Visión, Valores) - Layout Dinámico de Pestañas
   ========================================================================== */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}
.about-glow {
  background: var(--accent);
  left: 20%;
  top: 20%;
  opacity: 0.12;
}

.about-card-stack {
  position: relative;
  height: 380px;
}
.about-stack-item {
  position: absolute;
  width: 85%;
  height: 300px;
  border-radius: 24px;
  overflow: hidden;
}
.about-stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-stack-item-1 {
  z-index: 3;
  top: 0;
  left: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--border-glass-hover);
}
.about-stack-item-2 {
  z-index: 2;
  top: 40px;
  left: 40px;
  opacity: 0.6;
  border: 1px solid var(--border-glass);
}
.about-stack-item-3 {
  z-index: 1;
  top: 80px;
  left: 80px;
  opacity: 0.3;
  border: 1px solid var(--border-glass);
}

.about-content h2 {
  font-family: var(--font-titles);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* Pestañas (Tabs) */
.about-tabs-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
}
.about-tab-btn {
  padding: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-family: var(--font-titles);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}
.about-tab-btn:hover, .about-tab-btn.active {
  color: var(--text-light);
}
.about-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad-neon);
  transition: var(--transition-smooth);
}
.about-tab-btn.active::after {
  width: 100%;
}

.about-tabs-content {
  position: relative;
  min-height: 200px;
}
.about-tab-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}
.about-tab-pane.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.about-values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  list-style: none;
}
.about-values-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.about-values-list li svg {
  color: var(--secondary);
}

/* ==========================================================================
   8. CALCULADORA INTERACTIVA DE CRECIMIENTO (Ahorro/Ventas)
   ========================================================================== */
.calc-section {
  position: relative;
  overflow: hidden;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.calc-form-container {
  padding: 3rem;
}

.calc-group {
  margin-bottom: 2.25rem;
}
.calc-label-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.calc-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
}
.calc-value-display {
  font-family: var(--font-titles);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
}

/* Range input premium */
.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--secondary-glow);
  transition: var(--transition-fast);
}
.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-select {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-fast);
}
.calc-select:focus {
  border-color: var(--primary);
}

/* Panel de Resultados de Calculadora */
.calc-results-panel {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
.calc-result-item {
  margin-bottom: 2.5rem;
}
.calc-result-item:last-child {
  margin-bottom: 0;
}
.calc-result-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.calc-result-number {
  font-family: var(--font-titles);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.calc-result-number.saving { color: var(--secondary); }
.calc-result-number.revenue { color: var(--accent); }

.calc-result-desc {
  font-size: 0.85rem;
  color: var(--text-dimmed);
}

/* ==========================================================================
   9. PORTAFOLIO DE CASOS DE ÉXITO
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.portfolio-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portfolio-image-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.portfolio-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.portfolio-card:hover .portfolio-image-wrapper img {
  transform: scale(1.08) rotate(1deg);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(8, 12, 24, 0.9) 0%, rgba(8, 12, 24, 0.2) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.portfolio-badge {
  background: var(--theme-color, var(--primary));
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.portfolio-details {
  padding: 2.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.portfolio-details h3 {
  font-family: var(--font-titles);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.portfolio-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.portfolio-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.25rem;
}
.portfolio-metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.portfolio-metric-value {
  font-family: var(--font-titles);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
}

/* ==========================================================================
   10. SECCIÓN BLOG (Grid Dinámica y Drawer Lateral de Lectura)
   ========================================================================== */
.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}
.blog-filter-btn {
  padding: 0.6rem 1.35rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}
.blog-filter-btn:hover, .blog-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.blog-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dimmed);
  margin-bottom: 1rem;
  font-weight: 500;
}
.blog-card-meta .category {
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.blog-card h3 {
  font-family: var(--font-titles);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  cursor: pointer;
  transition: var(--transition-fast);
}
.blog-card h3:hover {
  color: var(--secondary);
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-btn {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  align-self: flex-start;
}
.blog-card-btn svg {
  transition: var(--transition-fast);
}
.blog-card:hover .blog-card-btn svg {
  transform: translateX(4px);
  color: var(--secondary);
}
.blog-card:hover .blog-card-btn {
  color: var(--secondary);
}

/* --------------------------------------------------------------------------
   SISTEMA DE DRAWER LATERAL DE LECTURA (Slide-in)
   -------------------------------------------------------------------------- */
.blog-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 12, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}
.blog-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.blog-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 680px;
  height: 100%;
  background: hsl(223, 47%, 7%);
  border-left: 1px solid var(--border-glass-hover);
  z-index: 2000;
  transform: translateX(100%);
  transition: var(--transition-smooth);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}
.blog-drawer.active {
  transform: translateX(0);
}

.blog-drawer-header {
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 12, 24, 0.4);
}
.drawer-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.drawer-close-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: rotate(90deg);
  color: var(--accent);
}

.blog-drawer-content {
  padding: 3rem 2.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

/* Estilos de maquetado del contenido interno del Drawer */
.drawer-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dimmed);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.drawer-category {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
}

.drawer-title {
  font-family: var(--font-titles);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.drawer-image {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.drawer-body-text {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.drawer-body-text h3 {
  font-family: var(--font-titles);
  font-size: 1.45rem;
  color: var(--text-light);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.drawer-body-text h4 {
  font-family: var(--font-titles);
  font-size: 1.2rem;
  color: var(--text-light);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.drawer-body-text p {
  margin-bottom: 1.5rem;
}
.drawer-body-text ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.drawer-body-text li {
  margin-bottom: 0.5rem;
}
.drawer-body-text blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: rgba(263, 90%, 55%, 0.05);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  margin: 2rem 0;
  color: var(--text-light);
}

/* ==========================================================================
   11. FORMULARIO DE REGISTRO / CONTACTO (Llamativos e Interactivos)
   ========================================================================== */
.contact-section {
  position: relative;
  overflow: hidden;
}
.contact-orb {
  background: var(--primary);
  bottom: -10%;
  left: 20%;
  opacity: 0.12;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.contact-info-panel h2 {
  font-family: var(--font-titles);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.contact-info-panel p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-method-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.contact-method-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}
.contact-method-details h4 {
  font-size: 0.85rem;
  color: var(--text-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}
.contact-method-details p {
  font-weight: 600;
  margin: 0;
  font-size: 1.05rem;
}

/* Formulario paso a paso interactivo */
.contact-form-panel {
  padding: 3.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
}

.form-step {
  display: none;
}
.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.form-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.form-progress-fill {
  height: 100%;
  background: var(--grad-neon);
  width: 33.33%;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.75rem;
  position: relative;
}
.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-light);
  transition: var(--transition-fast);
}
.form-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 10px rgba(180, 100%, 46%, 0.15);
  background: rgba(255,255,255,0.06);
}

.form-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}
.form-option-card {
  position: relative;
  cursor: pointer;
}
.form-option-card input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.form-option-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.02);
  transition: var(--transition-fast);
  text-align: center;
}
.form-option-card-inner svg {
  margin-bottom: 0.75rem;
  color: var(--text-dimmed);
}
.form-option-card-inner span {
  font-size: 0.85rem;
  font-weight: 600;
}
.form-option-card input:checked + .form-option-card-inner {
  border-color: var(--primary);
  background: rgba(263, 90%, 55%, 0.08);
}
.form-option-card input:checked + .form-option-card-inner svg {
  color: var(--primary);
}

.form-buttons-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  margin-top: 2.5rem;
}

/* Indicador de Estado de Envío */
.form-status {
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: none;
  animation: fadeIn 0.3s ease-out;
}
.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}
.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.form-status.loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
}
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   12. SECCIÓN PREGUNTAS FRECUENTES (FAQ Acordeón)
   ========================================================================== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.75rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}
.faq-question h3 {
  font-family: var(--font-titles);
  font-size: 1.15rem;
  font-weight: 700;
}
.faq-icon-arrow {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: var(--transition-smooth);
}
.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner {
  padding: 0 2.25rem 2rem 2.25rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  border-top: 1px solid transparent;
}
.faq-item.active .faq-answer-inner {
  border-color: rgba(255,255,255,0.03);
}

/* ==========================================================================
   13. PIE DE PÁGINA (Footer)
   ========================================================================== */
.main-footer {
  background: hsl(224, 71%, 3%);
  border-top: 1px solid var(--border-glass);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

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

.footer-brand .logo {
  margin-bottom: 1.25rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-nav-col h4 {
  font-family: var(--font-titles);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  position: relative;
}
.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-nav-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer-nav-col a:hover {
  color: var(--secondary);
  padding-left: 3px;
}

.footer-newsletter h4 {
  font-family: var(--font-titles);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}
.footer-newsletter p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
}
.newsletter-form .form-input {
  border-radius: 30px 0 0 30px;
  padding-left: 1.5rem;
}
.newsletter-form .btn {
  border-radius: 0 30px 30px 0;
  padding: 0.85rem 1.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dimmed);
}
.footer-legal-links {
  display: flex;
  gap: 2rem;
}

/* ==========================================================================
   14. ANIMACIONES CLAVE (Keyframes)
   ========================================================================== */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 hsla(180, 100%, 46%, 0.4); }
  70% { box-shadow: 0 0 0 10px hsla(180, 100%, 46%, 0); }
  100% { box-shadow: 0 0 0 0 hsla(180, 100%, 46%, 0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes grow-height {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes bounce-orb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ==========================================================================
   15. RESPONSIVIDAD (Media Queries Móviles y Tablets)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .calc-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-desc {
    margin: 0 auto 2.5rem auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    width: 100%;
  }
  
  .about-stack-item {
    width: 70%;
  }
  .about-card-stack {
    height: 320px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  /* Menu Movil Hamburger Toggle */
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: hsl(224, 71%, 4%);
    flex-direction: column;
    padding: 4rem 2rem;
    gap: 2.5rem;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  .nav-menu.active {
    left: 0;
  }
  
  .calc-form-container, .calc-results-panel, .contact-form-panel {
    padding: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .form-group-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .about-tab-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }
}
