/**
 * IA CONSULTING RD — Componentes de Interfaz Liquid Glass (iOS 27)
 * =====================================================================
 */

/* --- 1. NAVBAR FLOTANTE LIQUID GLASS --- */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}

.site-header .container {
  display: flex;
  justify-content: center;
}

.nav-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 18px 10px 24px;
  background: var(--liquid-glass-nav);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  border: var(--liquid-border);
  box-shadow: 
    var(--liquid-specular-top),
    var(--liquid-specular-ambient),
    0 20px 40px -10px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-full);
  width: 100%;
  max-width: 1120px;
  transition: all var(--transition-smooth);
}

.nav-dock:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 
    var(--liquid-specular-top),
    0 25px 50px -10px rgba(6, 182, 212, 0.2);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary-light);
  box-shadow: 0 0 12px var(--primary-glow);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-text span {
  color: var(--primary-light);
  font-weight: 400;
  font-size: 0.82rem;
  background: rgba(6, 182, 212, 0.15);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* --- 2. HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 150px;
  padding-bottom: 80px;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  border: var(--liquid-border);
  box-shadow: var(--liquid-specular-top);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-contrast);
  margin-bottom: 24px;
}

.live-dot {
  width: 9px;
  height: 9px;
  background-color: var(--emerald-light);
  border-radius: 50%;
  animation: livePulse 2s infinite;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* Tarjetas de Estadísticas en Hero */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 8px;
  background: var(--gradient-neon-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- 3. CATÁLOGO DE SERVICIOS INTERACTIVO --- */
.services-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(12px);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
  border: 1px solid var(--primary-light);
  color: #FFFFFF;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.35),
    0 0 20px rgba(6, 182, 212, 0.3);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.service-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
}

.service-card-top {
  margin-bottom: 24px;
}

.service-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(34, 211, 238, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.service-category-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-light);
  margin-bottom: 8px;
}

.service-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-contrast);
}

.service-feature-item svg {
  color: var(--emerald-light);
  flex-shrink: 0;
}

.service-card-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-link {
  color: var(--primary-light);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition-fast);
}

.service-link:hover {
  transform: translateX(4px);
  color: #FFFFFF;
}

/* --- 4. SHOWCASE DE CASOS REALES & VIDEOS --- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.showcase-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.showcase-media-container {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-video-preview, .showcase-img-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.showcase-card:hover .showcase-video-preview,
.showcase-card:hover .showcase-img-preview {
  transform: scale(1.05);
}

.showcase-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.9) 0%, rgba(3, 7, 18, 0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  z-index: 2;
}

.play-video-trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 0 25px rgba(6, 182, 212, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 3;
  transition: all var(--transition-fast);
}

.play-video-trigger:hover {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--gradient-brand);
  border-color: #FFFFFF;
}

.showcase-tag-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
}

.showcase-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.showcase-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.showcase-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.showcase-metrics-bar {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-pill {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* --- 5. MODAL CINEMATOGRÁFICO DE VIDEO (IOS 27) --- */
.video-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: var(--liquid-blur-deep);
  -webkit-backdrop-filter: var(--liquid-blur-deep);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.video-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-container {
  width: 90%;
  max-width: 820px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(6, 182, 212, 0.3);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-spring);
}

.video-modal-backdrop.active .video-modal-container {
  transform: scale(1);
}

.video-modal-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.video-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.video-modal-body {
  position: relative;
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.video-modal-body video {
  width: 100%;
  max-height: 70vh;
  outline: none;
}

/* --- 6. CALCULADORA INTERACTIVA DE AHORRO ROI --- */
.calculator-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  padding: 48px;
  border-radius: var(--radius-xl);
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-contrast);
}

.slider-val-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-light);
  background: rgba(6, 182, 212, 0.15);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.liquid-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.liquid-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 
    0 0 15px var(--primary-light),
    0 4px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  border: 2px solid var(--primary);
  transition: transform var(--transition-fast);
}

.liquid-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-results-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.calc-results-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-brand);
}

.result-item {
  margin-bottom: 24px;
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--emerald-light);
  line-height: 1.1;
  text-shadow: 0 0 20px var(--emerald-glow);
}

.result-subtext {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-top: 4px;
}

/* --- 7. METODOLOGÍA DE 4 PASOS --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  position: relative;
}

.process-step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.process-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.process-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- 8. CONTACTO & REDES OFICIALES --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.direct-contact-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-avatar-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #FFFFFF;
  box-shadow: 0 0 18px var(--primary-glow);
}

.contact-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-role {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
}

.contact-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.contact-phone-btn:hover {
  background: var(--emerald);
  box-shadow: 0 0 20px var(--emerald-glow);
  transform: translateY(-2px);
}

/* Tarjeta Instagram Oficial */
.instagram-showcase-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.instagram-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ig-gradient-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  box-shadow: 0 0 15px rgba(221, 42, 123, 0.4);
}

.ig-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.ig-handle {
  font-size: 1.1rem;
  font-weight: 700;
}

.ig-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-panel {
  padding: 36px;
  border-radius: var(--radius-xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-contrast);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px var(--primary-glow);
}

.form-select option {
  background: var(--bg-surface);
  color: #FFFFFF;
}

/* --- 9. BOTÓN FLOTANTE WHATSAPP (IOS 27) --- */
.whatsapp-float-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.whatsapp-float-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: rgba(16, 185, 129, 0.85);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    0 10px 30px rgba(16, 185, 129, 0.5);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.whatsapp-float-btn:hover {
  background: #10B981;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 
    0 15px 40px rgba(16, 185, 129, 0.7);
}

/* --- 10. FOOTER FUTURISTA --- */
.site-footer {
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 10;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: var(--liquid-blur);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive queries */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  .calculator-panel {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}
