/* ==========================================================================
   DIGITALIZA TU MUNDO - PIXEL-PERFECT TEMPLATE MATCHING CSS
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-dark: #030612;
  --bg-darker: #01030a;
  --primary-blue: #1d4ed8;
  --primary-bright: #2563eb;
  --accent-cyan: #38bdf8;
  --accent-blue-light: #60a5fa;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-highlight: #3b82f6;
  --border-subtle: rgba(37, 99, 235, 0.25);
  --border-active: rgba(59, 130, 246, 0.7);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Global Defaults --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

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

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

.text-blue-accent {
  color: #3b82f6;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* --- Common Headings --- */
.eyebrow-tag {
  display: inline-block;
  color: var(--accent-cyan);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.eyebrow-tag.blue-tag {
  color: var(--text-highlight);
}

.section-headline {
  font-size: clamp(20px, 2.4vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 10px;
}

/* --- Buttons --- */
.btn-primary-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1d4ed8;
  color: #ffffff;
  font-family: var(--font-family);
  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 600;
  padding: clamp(8px, 0.8vw, 12px) clamp(16px, 1.5vw, 24px);
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 4px 18px rgba(29, 78, 216, 0.45);
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-primary-blue:hover {
  background: #2563eb;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.65);
  transform: translateY(-2px);
}

.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(8, 16, 38, 0.8);
  color: #ffffff;
  font-family: var(--font-family);
  font-size: clamp(11px, 0.95vw, 14px);
  font-weight: 600;
  padding: clamp(8px, 0.8vw, 12px) clamp(16px, 1.5vw, 24px);
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-secondary-dark:hover {
  background: rgba(29, 78, 216, 0.25);
  border-color: var(--accent-blue-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   FIXED NAVBAR
   ========================================================================== */
.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(3, 6, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.15);
  transition: var(--transition-normal);
}

.site-navbar.scrolled {
  padding: 10px 0;
  background: rgba(2, 4, 12, 0.95);
  border-bottom-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.navbar-wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

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

.nav-item-link {
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
  position: relative;
  padding: 4px 2px;
}

.nav-item-link:hover, .nav-item-link.active {
  color: #ffffff;
}

.nav-item-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: #2563eb;
  border-radius: 2px;
  box-shadow: 0 0 8px #2563eb;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.4);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.nav-cta-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
}

.nav-mobile-drawer {
  display: none;
}

/* ==========================================================================
   CANVAS & BANNER SECTIONS (EXPLOSIVE EXPANSION FROM POINT "FUA PAC" ON SCROLL)
   ========================================================================== */
.canvas-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

.banner-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  line-height: 0;
}

.banner-section.banner-hero {
  transform: none !important;
  opacity: 1 !important;
  animation: none !important;
  transition: none !important;
}

.banner-section:not(.banner-hero) {
  transform: scale(0.35) translateY(120px);
  transform-origin: center center;
  opacity: 0;
  will-change: transform, opacity;
}

.banner-section:not(.banner-hero).section-in-view {
  animation: fuaPacSnap 0.72s cubic-bezier(0.05, 0.9, 0.15, 1) forwards;
}

@keyframes fuaPacSnap {
  0% {
    transform: scale(0.35) translateY(120px);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.banner-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  line-height: 1.6;
  z-index: 10;
}

/* 1. HERO BANNER (16:9 Aspect Ratio) */
.banner-hero {
  aspect-ratio: 2730 / 1536;
  background-image: url('assets/hero-bg.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
}

.hero-left-content {
  position: absolute;
  top: 24%;
  left: 6.5%;
  width: 38%;
  z-index: 5;
}

.hero-headline {
  color: #ffffff;
  font-size: clamp(22px, 2.9vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 1.5% 0 2% 0;
}

.hero-subline {
  color: #94a3b8;
  font-size: clamp(11px, 1.05vw, 16px);
  line-height: 1.55;
  margin-bottom: 4%;
  max-width: 90%;
}

.hero-btn-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 2. SERVICIOS BANNER (16:9 Aspect Ratio) */
.banner-servicios {
  aspect-ratio: 2730 / 1536;
  background-image: url('assets/servicios-bg.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.servicios-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
}

.servicios-header {
  position: absolute;
  top: 4.5%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 60%;
}

.servicios-card {
  position: absolute;
  top: 20.5%;
  height: 49.5%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: clamp(20px, 2.2vw, 36px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  cursor: pointer;
  z-index: 12;
  transition: transform 0.3s ease;
}

.servicios-card:hover {
  transform: translateY(-4px);
}

.card-slot-1 {
  left: 8.5%;
  width: 26.8%;
}

.card-slot-2 {
  left: 36.6%;
  width: 26.8%;
}

.card-slot-3 {
  left: 64.7%;
  width: 26.8%;
}

.icon-square-blue {
  width: clamp(38px, 3.5vw, 52px);
  height: clamp(38px, 3.5vw, 52px);
  background: rgba(14, 28, 68, 0.85);
  border: 1.5px solid #2563eb;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(15px, 1.4vw, 22px);
  color: #3b82f6;
  margin-bottom: clamp(10px, 1vw, 15px);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.4);
}

.card-title-wrap {
  margin-bottom: clamp(6px, 0.7vw, 10px);
}

.card-item-title {
  font-size: clamp(15px, 1.45vw, 22px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}

.card-title-line {
  width: 30px;
  height: 2px;
  background: #2563eb;
  border-radius: 1px;
}

.card-item-desc {
  font-size: clamp(10.5px, 0.9vw, 14px);
  color: #94a3b8;
  line-height: 1.5;
  max-width: 90%;
  margin-bottom: 0;
}

.card-item-arrow {
  align-self: flex-end;
  margin-top: clamp(10px, 1.1vw, 16px);
  color: #2563eb;
  font-size: clamp(14px, 1.3vw, 19px);
  transition: transform 0.2s ease, color 0.2s ease;
}

.servicios-card:hover .card-item-arrow {
  color: #60a5fa;
  transform: translateX(4px);
}

/* 3. ¿POR QUÉ ELEGIRNOS? BANNER */
.banner-why-us {
  aspect-ratio: 2730 / 1536;
  background-image: url('assets/resenas-bg.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.why-us-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
}

.why-us-header {
  position: absolute;
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 60%;
}

.why-us-grid-container {
  position: absolute;
  top: 28%;
  left: 7.5%;
  width: 85%;
  height: 52%;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: center;
  gap: 20px;
}

.why-side-col {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 44px);
}

.why-left-col {
  text-align: right;
}

.why-left-col .why-feature-row {
  flex-direction: row-reverse;
}

.why-right-col {
  text-align: left;
}

.why-feature-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon-circle {
  flex-shrink: 0;
  width: clamp(34px, 3.2vw, 50px);
  height: clamp(34px, 3.2vw, 50px);
  border-radius: 50%;
  background: rgba(10, 22, 54, 0.85);
  border: 1.5px solid rgba(37, 99, 235, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: clamp(13px, 1.2vw, 18px);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.3);
}

.feature-name {
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.feature-summary {
  font-size: clamp(10px, 0.9vw, 13.5px);
  color: #94a3b8;
  line-height: 1.45;
}

.why-center-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-placeholder-box {
  position: relative;
  width: 100%;
  max-width: clamp(200px, 25vw, 360px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-img-asset {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(37, 99, 235, 0.4));
}

.phone-back-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45) 0%, rgba(124, 58, 237, 0.2) 60%, transparent 80%);
  filter: blur(40px);
  z-index: 1;
}

/* 4. PORTAFOLIO BANNER (Clean 4 Blank Slots on Original Background) */
.banner-portfolio {
  aspect-ratio: 2730 / 1536;
  background-image: url('assets/portafolio-bg.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.portfolio-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
}

.portfolio-header-bar {
  position: absolute;
  top: 10%;
  left: 7.5%;
  right: 7.5%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.portfolio-subheading {
  font-size: clamp(10.5px, 0.95vw, 14.5px);
  color: #94a3b8;
  margin-top: 4px;
  max-width: 480px;
}

.portfolio-card-item {
  position: absolute;
  top: 37.0%;
  height: 40.5%;
  border-radius: 14px;
  background: #030612;
  border: 1px solid rgba(37, 99, 235, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.portfolio-card-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.45);
}

.port-slot-1 {
  left: 7.7%;
  width: 19.6%;
}

.port-slot-2 {
  left: 28.6%;
  width: 20.7%;
}

.port-slot-3 {
  left: 50.6%;
  width: 19.6%;
}

.port-slot-4 {
  left: 71.2%;
  width: 21.2%;
}

.card-image-box {
  width: 100%;
  height: 77.5%;
  overflow: hidden;
  position: relative;
  background: #02050f;
}

.portfolio-project-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  transition: opacity 0.4s ease;
}

.card-info-box {
  width: 100%;
  height: 22.5%;
  background: #02050f;
  border-top: 1px solid rgba(37, 99, 235, 0.3);
  padding: 0 clamp(8px, 1vw, 14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  flex-grow: 1;
  min-width: 0;
}

.card-cat-label {
  display: block;
  font-size: clamp(8px, 0.72vw, 10.5px);
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.card-name-label {
  font-size: clamp(10px, 0.88vw, 13px);
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-arrow-icon {
  color: #2563eb;
  font-size: clamp(11px, 0.95vw, 14px);
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.portfolio-card-item:hover .card-arrow-icon {
  color: #60a5fa;
  transform: translateX(3px);
}

/* ==========================================================================
   5. PRECIOS BANNER (Calibrated & Brand Color Matched)
   ========================================================================== */
.banner-precios {
  aspect-ratio: 2730 / 1536;
  background-image: url('assets/precios.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.precios-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
}

.precios-header {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 60%;
}

.pricing-grid-container {
  position: absolute;
  top: 26.5%;
  left: 10%;
  width: 80%;
  height: 50%;
  display: grid;
  grid-template-columns: 1fr 1.04fr 1fr;
  gap: clamp(12px, 1.4vw, 22px);
  align-items: center;
}

.pricing-card {
  background: rgba(6, 10, 22, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 14px;
  padding: clamp(12px, 1.3vw, 20px) clamp(12px, 1.4vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 94%;
  position: relative;
  transition: var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 10px 25px rgba(3, 6, 18, 0.8);
}

/* Middle Featured Card (Best Value in Brand Blue) */
.card-tier-featured {
  height: 100%;
  border: 1.5px solid #2563eb;
  background: rgba(8, 14, 30, 0.95);
  box-shadow: 0 0 35px rgba(37, 99, 235, 0.35);
  z-index: 5;
}

.tier-badge-top {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  font-size: clamp(8px, 0.65vw, 10px);
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.6);
}

.pricing-card-header {
  margin-bottom: clamp(4px, 0.6vw, 8px);
}

.tier-title {
  font-size: clamp(10.5px, 0.9vw, 13.5px);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 3px;
}

.tier-price-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.tier-price-val {
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.tier-price-val.val-blue {
  color: #38bdf8;
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tier-price-val.font-contact {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 800;
  color: #ffffff;
}

.tier-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.45vw, 7px);
  margin: clamp(5px, 0.6vw, 8px) 0;
  flex-grow: 1;
}

.tier-feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(9.5px, 0.78vw, 12px);
  color: #cbd5e1;
}

.check-blue {
  color: #38bdf8;
  font-size: clamp(9px, 0.75vw, 11.5px);
  flex-shrink: 0;
}

.tier-btn-wrap {
  margin-top: 4px;
}

.btn-tier-dark {
  display: block;
  width: 100%;
  text-align: center;
  background: rgba(14, 22, 44, 0.85);
  color: #ffffff;
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 700;
  padding: clamp(7px, 0.75vw, 10px);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  transition: var(--transition-normal);
}

.btn-tier-dark:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.btn-tier-blue {
  display: block;
  width: 100%;
  text-align: center;
  background: #1d4ed8;
  color: #ffffff;
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 800;
  padding: clamp(7px, 0.75vw, 10px);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 4px 18px rgba(29, 78, 216, 0.5);
  transition: var(--transition-normal);
}

.btn-tier-blue:hover {
  background: #2563eb;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.7);
  transform: translateY(-1px);
}

/* ==========================================================================
   6. RESEÑAS BANNER (16:9 Aspect Ratio)
   ========================================================================== */
.banner-resenas {
  aspect-ratio: 2730 / 1536;
  background-image: url('assets/resenas-bg.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.resenas-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
}

.resenas-header {
  position: absolute;
  top: 11%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 60%;
}

.resenas-bar {
  width: 44px;
  height: 2.5px;
  background: #2563eb;
  margin: 8px auto 0 auto;
  border-radius: 1px;
  box-shadow: 0 0 8px #2563eb;
}

.resenas-card {
  position: absolute;
  top: 33%;
  height: 38%;
  background: transparent;
  border: none;
  padding: clamp(16px, 2.2vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(8px, 1vw, 14px);
}

.resenas-slot-1 {
  left: 8.6%;
  width: 25.4%;
}

.resenas-slot-2 {
  left: 37.3%;
  width: 25.4%;
}

.resenas-slot-3 {
  left: 66%;
  width: 25.4%;
}

.quote-sign {
  font-size: clamp(24px, 2.4vw, 38px);
  color: #2563eb;
  font-family: serif;
  font-weight: bold;
  line-height: 1;
}

.resena-quote-text {
  font-size: clamp(11px, 1.05vw, 15px);
  color: #cbd5e1;
  line-height: 1.55;
  font-weight: 500;
}

.resena-divider-line {
  width: 36px;
  height: 2px;
  background: #2563eb;
  border-radius: 1px;
  margin: 2px 0;
}

.resena-client-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  width: 100%;
}

.client-avatar-circle {
  width: clamp(34px, 3vw, 46px);
  height: clamp(34px, 3vw, 46px);
  border-radius: 50%;
  border: 1.5px solid #2563eb;
  background: rgba(14, 28, 68, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.client-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-init {
  font-size: clamp(10px, 0.9vw, 13px);
  font-weight: 700;
  color: #3b82f6;
}

.client-bio-text {
  flex-grow: 1;
}

.client-name {
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.client-position {
  font-size: clamp(9.5px, 0.85vw, 12px);
  color: #94a3b8;
}

.client-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  font-size: clamp(10px, 0.9vw, 13px);
  flex-shrink: 0;
  margin-left: auto;
}

.resenas-bottom-cta {
  position: absolute;
  top: 76.5%;
  left: 50%;
  transform: translateX(-50%);
}

/* ==========================================================================
   7. CONTACTO BANNER (16:9 Aspect Ratio)
   ========================================================================== */
.banner-contacto {
  aspect-ratio: 2730 / 1536;
  background-image: url('assets/contacto-bg.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.contacto-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
}

.contacto-left-info {
  position: absolute;
  top: 10.0%;
  left: 17.5%;
  width: 29.5%;
  height: 72.0%;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 0.85vw, 13px);
  z-index: 10;
}

.contacto-line-blue {
  width: 32px;
  height: 2px;
  background: #2563eb;
  margin: 1px 0 4px 0;
}

.contacto-intro-text {
  font-size: clamp(10.5px, 0.9vw, 13px);
  color: #94a3b8;
  margin-bottom: 2px;
  line-height: 1.45;
}

.contacto-items-col {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.6vw, 9px);
}

.contacto-channel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1px 0;
}

.channel-circle-icon {
  width: clamp(26px, 2.2vw, 34px);
  height: clamp(26px, 2.2vw, 34px);
  border-radius: 50%;
  border: 1.5px solid #2563eb;
  background: rgba(10, 22, 54, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: clamp(11px, 0.95vw, 14px);
  flex-shrink: 0;
}

.channel-type {
  display: block;
  font-size: clamp(8px, 0.65vw, 10px);
  color: #94a3b8;
}

.channel-detail {
  font-size: clamp(10.5px, 0.9vw, 13px);
  font-weight: 600;
  color: #ffffff;
}

/* Contact form container matching the glowing frame */
.contacto-right-form {
  position: absolute;
  top: 11.5%;
  left: 49.0%;
  width: 33.5%;
  height: 72.0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 1.1vw, 15px);
  padding: clamp(18px, 2vw, 30px);
  box-sizing: border-box;
  z-index: 10;
}

.form-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 2px;
}

.form-plane-icon {
  width: clamp(30px, 2.6vw, 40px);
  height: clamp(30px, 2.6vw, 40px);
  border-radius: 50%;
  border: 1.5px solid #2563eb;
  background: rgba(14, 28, 68, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: clamp(12px, 1.1vw, 16px);
}

.form-title-text {
  font-size: clamp(14.5px, 1.35vw, 19px);
  font-weight: 700;
  color: #ffffff;
}

.form-line-blue {
  width: 28px;
  height: 2px;
  background: #2563eb;
  margin-top: 3px;
}

.contact-inner-form {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.85vw, 13px);
  width: 100%;
}

.field-wrap-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-text-ctrl {
  width: 100%;
  box-sizing: border-box;
  background: #02050f;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 8px;
  padding: clamp(8px, 0.85vw, 12px) clamp(12px, 1.1vw, 16px);
  padding-right: 36px;
  font-family: inherit;
  font-size: clamp(11.5px, 1.05vw, 14.5px);
  color: #ffffff;
  transition: var(--transition-normal);
}

.input-text-ctrl:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
  outline: none;
  background: #030717;
}

.input-text-ctrl::placeholder {
  color: #475569;
}

.input-icon-elem {
  position: absolute;
  right: 14px;
  color: #3b82f6;
  font-size: clamp(11.5px, 1.05vw, 15px);
  pointer-events: none;
}

.input-area-ctrl {
  height: clamp(80px, 8vw, 115px);
  resize: none;
  padding-right: 14px;
}

.btn-full-submit {
  width: 100%;
  padding: clamp(10px, 1vw, 14px) 18px;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 600;
  border-radius: 8px;
  margin-top: 2px;
}

.feedback-alert {
  display: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.feedback-alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
}

.feedback-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(37, 99, 235, 0.2);
  background: #01030a;
  padding: 50px 0 25px 0;
  width: 100%;
  margin: 0;
  position: relative;
}

.footer-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid-5 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-logo-pic {
  height: 36px;
  width: auto;
  margin-bottom: 14px;
}

.footer-bio-text {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 18px;
}

.footer-social-row {
  display: flex;
  gap: 10px;
}

.social-btn-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 13px;
  transition: 0.2s ease;
}

.social-btn-circle:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.footer-col-head {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

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

.footer-link-list a {
  font-size: 13px;
  color: #94a3b8;
}

.footer-link-list a:hover {
  color: #60a5fa;
  padding-left: 2px;
}

.footer-contact-direct li {
  font-size: 13px;
  color: #94a3b8;
}

.footer-copy-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  text-align: center;
}

.copyright-line {
  font-size: 12.5px;
  color: #64748b;
}

/* ==========================================================================
   ULTRA-RESPONSIVE ADAPTATION (TABLETS, MOBILES & 4K SCREENS)
   ========================================================================== */

/* 1. TABLET & MOBILE BREAKPOINT (<= 991px) */
@media (max-width: 991px) {
  /* Navigation */
  .nav-links-wrap, .nav-action-wrap {
    display: none;
  }
  
  .nav-mobile-btn {
    display: block;
  }
  
  .nav-mobile-drawer {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(3, 6, 18, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
    padding: 24px 20px;
    transform: translateY(-150%);
    transition: transform 0.35s ease;
    z-index: 1000;
  }
  
  .nav-mobile-drawer.open {
    transform: translateY(0);
  }
  
  .mobile-drawer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .mobile-drawer-link {
    font-size: 16px;
    font-weight: 600;
    color: #cbd5e1;
    display: block;
    padding: 8px 0;
  }
  
  .mobile-cta {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    padding: 12px;
  }

  /* Canvas and Banner Sections Flow */
  .canvas-wrapper {
    overflow-x: hidden;
  }

  .banner-section {
    aspect-ratio: auto !important;
    min-height: auto !important;
    padding: 60px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
    background: #02050f !important;
  }

  /* Completely hide all PC background videos on mobile and tablets */
  .servicios-bg-video,
  .why-us-bg-video,
  .portfolio-bg-video,
  .precios-bg-video,
  .resenas-bg-video,
  .contacto-bg-video {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .banner-inner {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 600px;
    height: auto !important;
    margin: 0 auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* 1. Hero Section (Full uncropped 720:1280 mobile video adaptation) */
  .banner-hero {
    aspect-ratio: 720 / 1280 !important;
    min-height: auto !important;
    height: auto !important;
    padding: clamp(70px, 10vw, 110px) 16px clamp(40px, 6vw, 70px) 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    background: #02050f !important;
    background-image: none !important;
    overflow: hidden;
  }

  .banner-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(2, 5, 15, 0.65) 0%, rgba(2, 5, 15, 0.35) 45%, rgba(2, 5, 15, 0.8) 100%);
    z-index: 2;
    pointer-events: none;
  }

  .banner-hero #heroBgVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill !important;
    opacity: 0.9 !important;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
  }

  .hero-left-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
  }

  .hero-headline {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
  }

  .hero-subline {
    color: #ffffff !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
    margin-bottom: 24px !important;
    max-width: 520px;
  }

  .hero-btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  /* 2. Servicios Section */
  .servicios-header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
  }

  .servicios-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 500px;
    height: auto !important;
    margin-bottom: 18px;
    background: rgba(5, 12, 30, 0.85);
    border: 1px solid rgba(37, 99, 235, 0.4);
    border-radius: 14px;
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }

  /* 3. ¿Por qué elegirnos? Section (All icons on the left side uniformly) */
  .why-us-header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
  }

  .why-us-grid-container {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .why-side-col,
  .why-left-col,
  .why-right-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left !important;
  }

  .why-left-col .why-feature-row,
  .why-right-col .why-feature-row,
  .why-feature-row {
    flex-direction: row !important;
    text-align: left !important;
    justify-content: flex-start !important;
    background: rgba(5, 12, 30, 0.85);
    border: 1px solid rgba(37, 99, 235, 0.4);
    border-radius: 14px;
    padding: 18px 20px;
    gap: 16px;
  }

  .feature-info-wrap {
    text-align: left !important;
  }

  .why-center-col {
    display: none;
  }

  /* 4. Portafolio Section */
  .portfolio-header-bar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 14px;
    margin-bottom: 24px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .portfolio-header-info {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .portfolio-subheading {
    max-width: 100%;
    margin: 6px auto 0 auto;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.5;
  }

  .portfolio-card-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 480px;
    height: 280px !important;
    margin-bottom: 18px;
  }

  /* 5. Precios Section */
  .precios-header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
  }

  .pricing-grid-container {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 0;
  }

  .pricing-card {
    width: 100%;
    transform: none !important;
  }

  /* 6. Reseñas Section */
  .resenas-header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .resenas-bar {
    margin: 8px auto 0 auto;
  }

  .resenas-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 480px;
    height: auto !important;
    margin-bottom: 18px;
    padding: 24px;
  }

  .resenas-bottom-cta {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-top: 16px;
  }

  /* 7. Contacto Section */
  .contacto-left-info {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 480px;
    height: auto !important;
    margin-bottom: 24px;
    text-align: center;
    align-items: center;
    padding: 0;
  }

  .contacto-items-col {
    align-items: center;
    width: 100%;
  }

  .contacto-right-form {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 480px;
    height: auto !important;
    background: rgba(5, 12, 30, 0.85);
    border: 1px solid rgba(37, 99, 235, 0.4);
    border-radius: 14px;
    padding: 24px;
    backdrop-filter: blur(10px);
  }

  /* 8. Footer */
  .footer-grid-5 {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand-info {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo-pic {
    margin: 0 auto 14px auto;
  }

  .footer-bio-text {
    max-width: 440px;
    margin: 0 auto 18px auto;
    text-align: center;
  }

  .footer-social-row {
    justify-content: center;
  }
}

/* 2. COMPACT MOBILE SCREENS (<= 580px - iPhones & Samsung) */
@media (max-width: 580px) {
  .banner-section {
    padding: 50px 14px;
  }

  .hero-headline {
    font-size: 26px;
  }

  .hero-subline {
    font-size: 13.5px;
  }

  .section-headline {
    font-size: 22px;
  }

  .footer-grid-5 {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo-pic {
    margin: 0 auto 14px auto;
  }

  .footer-bio-text {
    max-width: 100%;
    margin: 0 auto 18px auto;
  }

  .footer-social-row {
    justify-content: center;
  }

  .footer-link-list a:hover {
    padding-left: 0;
  }
}

/* 3. ULTRA-WIDE & 4K TV MONITORS (>= 2200px) */
@media (min-width: 2200px) {
  .canvas-wrapper {
    max-width: 2560px;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
  }
}
