/* =====================================================
   VARIABLES DE SISTEMA Y RESET (SISTEMA DE DISEÑO)
   ===================================================== */
:root {
  --color-blue: #1a43dd;      /* Azul principal de acento */
  --color-dark-1: #262626;    /* Fondo oscuro base */
  --color-dark-2: #262626;    
  --color-dark-3: #262626;    
  --color-dark-4: #262626;    
  --color-white: #ffffff;     
  --pad-x: 60px;              /* Relleno horizontal en escritorio */
  --pad-x-m: 24px;            /* Relleno horizontal en móviles */
  --radius-panel: 48px;       /* Radio de curvatura de paneles */
}

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

html { 
  font-family: 'Urbanist', sans-serif; 
  scroll-behavior: smooth;    
}

body { 
  background: var(--color-dark-1); 
  color: var(--color-white); 
  overflow-x: hidden;         
  -webkit-font-smoothing: antialiased; 
}

/* =====================================================
   ESTRUCTURA MAESTRA DEL SCROLL (GSAP STACK)
   ===================================================== */
.stack-container {
  position: relative;
  height: 100vh;              
  overflow: hidden;           
}

.panel {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;          
  height: auto;               
  box-shadow: 0 10px 20px rgba(0,0,0,0.4); 
  will-change: transform;     
  backface-visibility: hidden; 
}

.radius-bottom { 
  border-radius: 0 0 var(--radius-panel) var(--radius-panel); 
}

/* =====================================================
   UTILIDADES TIPOGRÁFICAS
   ===================================================== */
h1 { 
  font-size: clamp(2.2rem, 4vw, 5.55rem); 
  font-weight: 300; 
  line-height: 1.1; 
  margin-bottom: 14px; 
}
h1 strong { 
  font-weight: 900; 
}
h2 { 
  font-size: clamp(1.5rem, 3.5vw, 2.75rem); 
  font-weight: 300; 
  line-height: 1.2; 
}
h2 strong { 
  font-weight: 900; 
}

/* =====================================================
   HERO / COMPONENTES DE CABECERA
   ===================================================== */
.s01-nav { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 22px 0; 
  flex-shrink: 0;             
}
.hamburger { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  cursor: pointer; 
  background: none; 
  border: none; 
  padding: 4px; 
}
.hamburger span { 
  display: block; 
  width: 40px; 
  height: 3px; 
  background: #fff; 
  border-radius: 2px; 
}
.logo { 
  display: flex;
  align-items: center;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-spacer { 
  width: 30px; 
}
.s01-body { 
  flex: 1;                    
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 0 0 50px; 
  gap: 40px; 
}
.s01-text { 
  width: 65%; 
}
.s01-text p { 
  font-size: 2.6rem;       
  color: rgba(255,255,255,.8); 
  line-height: 1.2; 
  margin-bottom: 40px; 
}
.iso_logo { 
  width: 35%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0; 
}
.iso_logo img {
  width: 450px;
  height: 450px;
  object-fit: contain;
}
.scroll-hint { 
  position: absolute; 
  bottom: 28px; 
  left: 50%; 
  transform: translateX(-50%); 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 6px; 
  font-size: 0.625rem;        
  letter-spacing: 2px; 
  text-transform: uppercase; 
  color: rgba(255,255,255,.45); 
  animation: bob 2s ease-in-out infinite; 
  z-index: 2;                 
}
@keyframes bob { 
  0%, 100% { transform: translateX(-50%) translateY(0); } 
  50% { transform: translateX(-50%) translateY(6px); } 
}

/* =====================================================
   ESTILOS EXCLUSIVOS DE FONDOS Y SPOTLIGHTS
   ===================================================== */
.s01-brand-bg, .s01-social-bg, .s01-web-bg, .s01-people-bg {
  position: relative;
  --mouse-x: 50%;
  --mouse-y: 50%;
  background: #000000 !important; 
  overflow: hidden;
}
.s01-brand-bg::before, .s01-social-bg::before, .s01-web-bg::before, .s01-people-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;               
  z-index: 0;
  pointer-events: none;
}
.s01-brand-bg::before { background-image: url('assets/img/service_Brand.jpg'); }
.s01-social-bg::before { background-image: url('assets/img/service_Social.jpg'); }
.s01-web-bg::before { background-image: url('assets/img/service_Web.jpg'); }
.s01-people-bg::before { background-image: url('assets/img/service_People.jpg'); }

.s01-grad-multiply {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 95% 15%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 10% 30%, rgba(15, 15, 15, 1) 0%, rgba(15, 15, 15, 0) 55%),
    radial-gradient(circle at 60% 85%, rgba(26, 69, 221, 1) 0%, rgba(26, 69, 221, 0.8) 50%, rgba(26, 69, 221, 0) 100%),
    #1028a0;
  mix-blend-mode: multiply;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}
.s01-grad-normal {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 95% 15%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 10% 30%, rgba(15, 15, 15, 1) 0%, rgba(15, 15, 15, 0) 55%),
    radial-gradient(circle at 60% 85%, rgba(26, 69, 221, 1) 0%, rgba(26, 69, 221, 0.8) 50%, rgba(26, 69, 221, 0) 100%),
    #1028a0;
  opacity: 0.6;
  z-index: 2;
  pointer-events: none;
}
.s01-spotlight {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;                 
  z-index: 3;                 
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 350px at var(--mouse-x) var(--mouse-y), black 0%, rgba(0,0,0,0.85) 30%, transparent 100%);
  mask-image: radial-gradient(circle 350px at var(--mouse-x) var(--mouse-y), black 0%, rgba(0,0,0,0.85) 30%, transparent 100%);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.s01-brand-bg .s01-spotlight { background-image: url('assets/img/service_Brand.jpg'); }
.s01-social-bg .s01-spotlight { background-image: url('assets/img/service_Social.jpg'); }
.s01-web-bg .s01-spotlight { background-image: url('assets/img/service_Web.jpg'); }
.s01-people-bg .s01-spotlight { background-image: url('assets/img/service_People.jpg'); }

.panel.mouse-out .s01-spotlight {
  opacity: 0;
}
.s01-content {
  position: relative;
  z-index: 4;                 
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.scroll-hint {
  z-index: 4 !important;      
}

/* =====================================================
   SECCIÓN DE PRECIOS (TARJETAS COMPARTIDAS)
   ===================================================== */
.brand-pricing-section {
  background: #ffffff !important;
  color: #111111 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important; 
  align-items: center !important;         
  padding: 25vh var(--pad-x) 50px var(--pad-x) !important; 
  height: 120vh !important;               
  min-height: 120vh !important; 
  box-sizing: border-box;
  overflow: hidden;
}

.pricing-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;    
  width: 100%;
  max-width: 1440px;          
  margin: 0 auto;
  gap: 16px;                  
  max-height: 80vh;           
  box-sizing: border-box;
}

.pricing-card {
  flex: 1;
  padding: 24px 30px;         
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: 20px;
  background-color: transparent;
  transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.4s ease, 
              transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
  max-height: 75vh;           
  box-sizing: border-box;
}

.pricing-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: #c5c5c5;
  transition: opacity 0.3s ease;
}

.pricing-container:has(.pricing-card.active) .pricing-card::after {
  opacity: 0;
}

.pricing-card.active {
  background-color: #212121 !important;
  color: #ffffff !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  transform: translateY(-8px);
}

.pricing-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: #262626;
  margin-bottom: 12px;
  font-family: 'Urbanist', sans-serif;
  transition: color 0.4s ease;
}
.pricing-card.active .pricing-title {
  color: #ffffff !important;
}

.pricing-desc {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: #555;
  line-height: 1.4;
  margin-bottom: 40px;
  min-height: 50px;
  transition: color 0.4s ease;
}
.pricing-card.active .pricing-desc {
  color: rgba(255,255,255,0.7) !important;
}

.pricing-meta {
  margin-top: 0;               
  margin-bottom: 20px;
}

.pricing-label {
  font-size: 0.85rem;
  color: #888;
  text-transform: lowercase;
  margin-bottom: 4px;
  display: block;
}

.pricing-price {
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 800;
  color: #1a45dd;
  line-height: 1;
  transition: color 0.4s ease;
}
.pricing-card.active .pricing-price {
  color: #1a45dd !important; 
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 0.4s ease, 
              margin 0.4s ease;
}
.pricing-card.active .pricing-features {
  max-height: clamp(150px, 45vh, 420px); 
  opacity: 1;
  margin: 15px 0;
  overflow-y: auto;            
}
.pricing-features::-webkit-scrollbar {
  width: 4px;
}
.pricing-features::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}
.pricing-features::-webkit-scrollbar-thumb {
  background: #1a45dd;
  border-radius: 2px;
}
.pricing-features li {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 8px;
  color: #bbbbbb;
  position: relative;
  padding-left: 18px;
}
.pricing-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1a45dd;             
  font-weight: bold;
}

.pricing-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 0;
  margin-top: auto;            
  background: linear-gradient(45deg, #181E27 0%, #1a45dd 50%, #ffffff 100%);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1.15rem;
  transition: transform 0.2s ease, 
              box-shadow 0.2s ease,
              opacity 0.3s ease;
  pointer-events: all;
  box-shadow: 0 4px 15px rgba(26, 69, 221, 0.3);
}
.pricing-card.active .pricing-btn {
  animation: fadeInBtn 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes fadeInBtn {
  0% { opacity: 0; }
  35% { opacity: 0; }
  100% { opacity: 1; }
}
.pricing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 69, 221, 0.45);
}

/* =====================================================
   MENÚ OVERLAY Y FLOTANTES
   ===================================================== */
#menu-overlay { 
  position: fixed; 
  inset: 0; 
  z-index: 9000;              
  background: #0d0dcc; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  padding: 0 var(--pad-x); 
  opacity: 0; 
  pointer-events: none; 
  transform: translateY(-20px); 
  transition: opacity .4s ease, transform .4s ease; 
}
#menu-overlay.open { 
  opacity: 1; 
  pointer-events: all; 
  transform: translateY(0); 
}
.menu-close { 
  position: absolute; 
  top: 24px; 
  right: 44px; 
  background: none; 
  border: none; 
  cursor: pointer; 
  display: flex; 
  flex-direction: column; 
  width: 50px; 
  height: 50px; 
  justify-content: center; 
  align-items: center; 
}
.menu-close span { 
  display: block; 
  width: 40px; 
  height: 2px; 
  background: #fff; 
  border-radius: 2px; 
  position: absolute; 
}
.menu-close span:first-child { transform: rotate(45deg); }
.menu-close span:last-child { transform: rotate(-45deg); }

.menu-logo { 
  position: absolute; 
  top: 26px; 
  left: 44px; 
}
.menu-logo img {
  height: 22px;
  width: auto;
  display: block;
}
.menu-nav { 
  list-style: none; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  width: fit-content;         
}
.menu-nav li {
  width: fit-content;         
}
.menu-nav li a { 
  display: inline-flex;       
  width: fit-content;         
  align-items: baseline; 
  gap: 20px; 
  text-decoration: none; 
  color: rgba(255,255,255,.5); 
  font-size: clamp(2.25rem, 6vw, 4.5rem); 
  font-weight: 800; 
  transition: color .2s; 
  cursor: pointer;            
  user-select: none;          
}
.menu-nav li a:hover { 
  color: #fff; 
}
.menu-nav li a .num { 
  font-size: 0.875rem;        
  font-weight: 400; 
  opacity: .4; 
  margin-top: 6px; 
}
.menu-footer { 
  position: absolute; 
  bottom: 36px; 
  left: 60px; 
  right: 60px; 
  display: flex; 
  justify-content: space-between; 
  font-size: 0.8125rem;       
  color: rgba(255,255,255,.4); 
}

/* Botón flotante de WhatsApp */
.wa-float { 
  position: fixed; 
  right: 24px; 
  bottom: 24px; 
  width: 70px; 
  height: 70px; 
  background: #25d366; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 8000; 
  box-shadow: 0 4px 18px rgba(37,211,102,.5); 
  transition: transform .3s cubic-bezier(0.25, 1, 0.5, 1); 
}
.wa-float svg {
  width: 36px !important;
  height: 36px !important;
}
.wa-float:hover { 
  transform: scale(1.05); 
}
.wa-tooltip {
  position: absolute;
  right: 82px;
  background: #25d366;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(37,211,102,.3);
  opacity: 0;
  transform: translateX(15px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  user-select: none;
}
.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Botón flotante Back to top */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 104px;               
  width: 50px;
  height: 50px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8000;
  box-shadow: 0 4px 18px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
#back-to-top:hover {
  background: #222;
  transform: scale(1.05);
}

/* =====================================================
   ORDEN Z PARA LAS 9 SECCIONES DE PAQUETES (GSAP STACK)
   ===================================================== */
#s01 { z-index: 9 !important; }
#s02 { z-index: 8 !important; }
#s03 { z-index: 7 !important; }
#s04 { z-index: 6 !important; }
#s05 { z-index: 5 !important; box-shadow: 0 10px 20px rgba(0,0,0,0.4) !important; }
#s06 { z-index: 4 !important; }
#s07 { z-index: 3 !important; }
#s08 { z-index: 2 !important; }
#s09 { z-index: 1 !important; box-shadow: none !important; }

/* =====================================================
   ESTRUCTURA DE CABECERAS (SPOTLIGHTS)
   ===================================================== */
#s01, #s03, #s05, #s07 {
  position: absolute !important;
  background: #000000 !important;
  color: #ffffff !important;
  display: block !important;
  padding: 0 !important;
  height: 100vh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
}

/* =====================================================
   ESTRUCTURA DE TARJETEROS DE PRECIOS
   ===================================================== */
#s02, #s04, #s06, #s08 {
  position: absolute !important;
  background: #ffffff !important;
  color: #111111 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 25vh var(--pad-x) 50px var(--pad-x) !important;
  height: 120vh !important;
  min-height: 120vh !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* =====================================================
   SECCIÓN DE CONTACTO (SECCIÓN 09 / #s09)
   ===================================================== */
#s09 {
  background: var(--color-blue) !important;
  color: #ffffff !important;
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

#s09 h1 {
  font-size: clamp(1.8rem, 3.8vw, 3.2rem) !important;
  line-height: 1.1;
  margin-bottom: 30px;
  color: #ffffff !important;
}

#s09 h1 strong {
  font-weight: 900;
}

#s09 .s09-email {
  font-size: clamp(1.1rem, 2.5vw, 2.0rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-decoration: none;
  border-bottom: 2px solid #ffffff !important;
  width: fit-content;
  padding-bottom: 2px;
  transition: opacity 0.3s ease;
}

#s09 .s09-email:hover {
  opacity: 0.8;
}

#s09 .s09-cta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  position: relative;
  text-align: left;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

#s09 .s09-footer {
  background: var(--color-dark-4) !important;
  color: #ffffff !important;
  padding: 40px var(--pad-x) !important;
  border-top-left-radius: var(--radius-panel) !important;
  border-top-right-radius: var(--radius-panel) !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: none !important;
  flex-shrink: 0 !important;
}

.wa-s09 {
  display: inline-flex;
  vertical-align: middle;
  position: relative;
  top: 20px;
  margin-left: 24px;
  width: clamp(70px, 8vw, 100px);
  height: clamp(70px, 8vw, 100px);
  background: #25d366;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37,211,102,.4);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.wa-s09 svg {
  width: clamp(40px, 4.5vw, 60px) !important;
  height: clamp(40px, 4.5vw, 60px) !important;
}

.wa-s09:hover {
  transform: scale(1.1);
}

.s09-footer .soc {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.s09-footer .soc:hover {
  opacity: 0.85;
  transform: scale(1.05);
}
.s09-footer .soc svg {
  fill: #262626;
  stroke: #262626;
}
.footer-label {
  font-size: 1.2rem;
  color: #888;
}

/* =====================================================
   DISEÑO RESPONSIVO (MEDIA QUERIES)
   ===================================================== */
@media (max-width: 960px) {
  :root { 
    --radius-panel: 32px;     
  }

  /* --- HERO/CABECERAS RESPONSIVOS --- */
  #s01, #s03, #s05, #s07 {
    height: auto !important;
    min-height: 100vh !important;
  }
  .s01-content {
    width: 90%;
  }
  .s01-body { 
    flex-direction: column; 
    padding: 40px 0 60px; 
    text-align: center; 
    justify-content: center; 
    gap: 30px;
  }
  .s01-nav { 
    padding: 18px 0; 
  }
  .s01-text, .iso_logo {
    width: 100%;
  }
  .iso_logo img {
    width: 280px;             
    height: 280px;
  }

  /* --- TARJETAS PRECIOS RESPONSIVOS --- */
  #s02, #s04, #s06, #s08 {
    height: auto !important;  
    min-height: 120vh !important;
    padding: 80px var(--pad-x-m) !important;
  }
  .pricing-container {
    flex-direction: column;
    gap: 30px;
    max-height: none;
  }
  .pricing-card {
    padding: 30px 20px;
    max-height: none;
  }
  .pricing-card:not(:last-child)::after {
    display: none;            
  }
  .pricing-card:not(.active) {
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
  }
  .pricing-desc {
    margin-bottom: 30px;
    min-height: auto;
  }

  /* --- CONTACTO RESPONSIVO --- */
  #s09 {
    height: auto !important;
    min-height: 100vh;
  }
  #s09 .s09-cta { 
    padding: 80px var(--pad-x-m) 60px; 
    text-align: center;
    align-items: center;
  }
  #s09 .s09-footer {
    padding: 40px var(--pad-x-m);
    flex-direction: column;
    gap: 15px;
  }

  /* --- MENÚ OVERLAY RESPONSIVO --- */
  #menu-overlay { 
    padding: 120px var(--pad-x-m) 40px; 
    justify-content: center;   
    overflow-y: auto;          
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  .menu-logo { 
    left: 24px; 
  }
  .menu-close { 
    right: 24px; 
  }
  .menu-footer { 
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 40px;
    flex-direction: column; 
    gap: 10px; 
    align-items: flex-start; 
  }
  .menu-nav li a {
    font-size: clamp(2rem, 8vw, 3.5rem); 
  }
}

@media (max-width: 580px) {
  .iso_logo img {
    width: 200px;             
    height: 200px;
  }
}
