/**
 * YA FICHÉ - CLON 1:1 DE PORTNEW PERSONAL PORTFOLIO
 * Estilo visual idéntico: Estructura, Orbitas, Badges, Ticker de Habilidades,
 * Tipografía Syne + DM Sans, variables de diseño y efectos originales.
 * Identidad Corporativa: Verde oficial (#10b924), fondo blanco/claro y oscuro SaaS.
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  /* Paleta Corporativa Oficial YA FICHÉ */
  --primary: #10b924;
  --primary-hover: #0ea11f;
  --primary-glow: rgba(16, 185, 36, 0.4);
  --secondary: #10b924;
  --dark: #081d34;
  --dark-2: #0d2238;
  --dark-3: #132a42;
  --focus-bg: #072619;
  
  --white-text: #ffffff;
  --title-text: #0f172a;
  --body-text: #475569;
  --muted-text: #94a3b8;
  --border-color: #e2e8f0;

  /* Font stacks */
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Syne', sans-serif;

  /* Headline scale Portnew */
  --fs-display-xl: clamp(2.5rem, min(6.8vw, 11.5vh), 6.5rem);
  --fs-display-lg: clamp(2.25rem, 4.8vw, 4.25rem);
  --section-space: clamp(4.5rem, 9vw, 8rem);
  --phero-fs: clamp(3.2rem, min(9vw, 13vh), 8.5rem);

  /* Texturas */
  --bg-noise-main: url('../img/noise-bg-main.webp');
  --bg-noise-secondary: url('../img/noise-bg-secondary.webp');
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--title-text);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
  font-stretch: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ========================================================
   CURSOR INTERACTIVO DUAL DE PORTNEW
   ======================================================== */
[data-cursor="0"] {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.2s, transform 0.05s ease-out;
}

[data-cursor="1"] {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  pointer-events: none;
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.2s, width 0.25s, height 0.25s, background-color 0.25s;
}

[data-cursor="0"].is-visible,
[data-cursor="1"].is-visible {
  opacity: 1;
}

body.cursor-hover--a [data-cursor="1"] {
  width: 54px;
  height: 54px;
  background-color: rgba(16, 185, 36, 0.12);
  border-color: var(--primary);
}

/* ========================================================
   MOTOR REVEAL DE PORTNEW
   ======================================================== */
.reveal-ready [data-reveal]:not(.is-revealed):not([data-reveal-now]) {
  opacity: 0;
}

.reveal-ready [data-reveal].is-revealed,
[data-reveal][data-reveal-now] {
  animation: var(--reveal-name) var(--reveal-duration, 700ms) var(--reveal-ease, ease-out) var(--reveal-delay, 0ms) backwards;
}

[data-reveal="fade-up"] {
  --reveal-name: reveal-fade-up;
}
[data-reveal="zoom-in"] {
  --reveal-name: reveal-zoom-in;
}

@keyframes reveal-fade-up {
  from { opacity: 0; transform: translate3d(0, 35px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes reveal-zoom-in {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* ========================================================
   STROKE TEXT (Efecto Portnew de texto hueco y relleno)
   ======================================================== */
.stroke-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--title-text);
  background: linear-gradient(180deg, var(--primary) 0%, #059669 100%) no-repeat 0 100% / 100% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), -webkit-text-stroke 0.4s ease;
}

.stroke-text:hover,
.stroke-text.is-filled {
  background-size: 100% 100%;
  -webkit-text-stroke: 1.5px transparent;
}

/* ========================================================
   CABECERA NATIVA PORTNEW (ESTILO OSCURO DARK-SAAS IDÉNTICO AL FOOTER)
   ======================================================== */
.site-header {
  height: 90px;
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #040d1a;
  background-image:
    radial-gradient(40% 60% at 20% 0%, rgba(16, 185, 36, 0.15), transparent 70%),
    radial-gradient(35% 50% at 80% 0%, rgba(16, 185, 36, 0.1), transparent 70%),
    linear-gradient(180deg, #06152a 0%, #040d1a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
}

.site-header.scrolled {
  position: fixed;
  height: 76px;
  background: rgba(4, 13, 26, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(16, 185, 36, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

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

.header-nav a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #cfdde8;
  position: relative;
  transition: color 0.25s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions .cs-pill-link {
  color: #ffffff;
}

.header-actions .cs-pill-link:hover {
  color: var(--primary);
}

/* ========================================================
   RESPONSIVE MENU & HAMBURGER (MÓVIL Y TABLET EN VERTICAL)
   ======================================================== */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s ease;
  z-index: 1010;
}

.mobile-menu-btn:hover {
  background: rgba(16, 185, 36, 0.15);
  border-color: var(--primary);
}

.mobile-menu-btn .menu-bar {
  width: 100%;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-btn.is-active .menu-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--primary);
}

.mobile-menu-btn.is-active .menu-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.is-active .menu-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--primary);
}

.mobile-only-nav-item {
  display: none;
}

@media (max-width: 991px) {
  .site-header {
    overflow: visible;
  }
  .header-inner {
    position: relative;
  }
  .mobile-menu-btn {
    display: flex;
    position: relative;
    z-index: 10001;
  }
  .desktop-only-action {
    display: none !important;
  }
  .mobile-only-nav-item {
    display: block !important;
    margin-top: 15px;
    width: 100%;
  }
  .header-nav-wrap {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 300px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    background: #040d1a !important;
    background-image: linear-gradient(180deg, #06152a 0%, #040d1a 100%) !important;
    border-left: 1.5px solid rgba(16, 185, 36, 0.4) !important;
    box-shadow: -20px 0 50px rgba(0,0,0,0.95), 0 0 25px rgba(16,185,36,0.2) !important;
    padding: 100px 30px 40px 30px !important;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 10000 !important;
    display: block !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
  }
  .header-nav-wrap.is-open {
    right: 0 !important;
  }
  .header-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }
  .header-nav li {
    width: 100% !important;
    display: block !important;
  }
  .header-nav a {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    display: block !important;
    width: 100% !important;
    color: #e2e8f0 !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    text-decoration: none !important;
  }
  .header-nav a:hover,
  .header-nav a.active {
    color: var(--primary) !important;
    padding-left: 8px !important;
  }
}

/* ========================================================
   FOOTER NATIVO PORTNEW (FOOTER-PERSONAL CON WATERMARK & VIDRIO)
   ======================================================== */
.cs-footer-container-style-2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #040d1a;
  background-image:
    radial-gradient(50% 55% at 6% 10%, rgba(16, 185, 36, 0.18), transparent 70%),
    radial-gradient(46% 52% at 96% 68%, rgba(16, 185, 36, 0.12), transparent 70%),
    radial-gradient(34% 30% at 55% 100%, rgba(16, 185, 36, 0.08), transparent 70%),
    linear-gradient(180deg, #06152a 0%, #040d1a 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #8fa8bd;
  padding-top: clamp(4.5rem, 7vw, 6.5rem);
}

/* MARCA DE AGUA GIGANTE "YA FICHÉ" DE FONDO (PORTNEW STYLE) */
.cs-footer-watermark {
  position: absolute;
  left: 50%;
  bottom: 0.5em;
  z-index: 0;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(90px, 18vw, 320px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(16, 185, 36, 0.16) 0%, rgba(16, 185, 36, 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
}

.cs-footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}

/* COLUMNA IZQUIERDA: PÍLDORAS SOCIALES Y DATOS DE CONTACTO */
.cs-footer-info {
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 2.5vw, 2.2rem);
}

.cs-social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cs-social-pill {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: transparent;
}

.cs-social-pill.is-active,
.cs-social-pill:hover {
  background: var(--primary);
  color: #040d1a;
  box-shadow: 0 0 20px rgba(16, 185, 36, 0.45);
}

.cs-footer-item h6 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #8fa8bd;
  margin-bottom: 6px;
  text-transform: none;
}

.cs-footer-item h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.cs-footer-item h2 a {
  color: #ffffff;
  transition: color 0.25s ease;
}

.cs-footer-item h2 a:hover {
  color: var(--primary);
}

/* COLUMNA DERECHA: TARJETA DE VIDRIO ESMERILADO DE PORTNEW */
.cs-footer-form-card {
  position: relative;
  z-index: 2;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.015)
  );
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow:
    0 40px 90px -35px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cs-footer-form-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 185, 36, 0.9),
    rgba(255, 255, 255, 0.6),
    transparent
  );
  pointer-events: none;
}

.cs-form-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.cs-form-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
}

/* CAMPOS DE FORMULARIO PORTNEW */
.cs-contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.cs-dark-input,
.cs-dark-select,
.cs-dark-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(8, 29, 52, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.25s ease;
}

.cs-dark-input::placeholder,
.cs-dark-textarea::placeholder {
  color: #64748b;
}

.cs-dark-input:focus,
.cs-dark-select:focus,
.cs-dark-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(8, 29, 52, 0.95);
  box-shadow: 0 0 0 3px rgba(16, 185, 36, 0.2);
}

.cs-dark-textarea {
  min-height: 110px;
  resize: vertical;
  margin-bottom: 18px;
}

/* ANTISPAM NUMÉRICO DINÁMICO */
.cs-captcha-box {
  background: rgba(4, 13, 26, 0.65);
  border: 1px solid rgba(16, 185, 36, 0.25);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cs-captcha-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #94a3b8;
  font-weight: 500;
  user-select: none;
}

.cs-captcha-highlight {
  color: var(--primary);
  font-size: 15px;
  letter-spacing: 0.04em;
  font-weight: 800;
  background: rgba(16, 185, 36, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 36, 0.3);
}

.cs-captcha-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cs-captcha-input {
  max-width: 140px;
  margin-bottom: 0 !important;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 14px;
}

.cs-captcha-refresh {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.cs-captcha-refresh:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(16, 185, 36, 0.15);
  transform: rotate(180deg);
}

.cs-btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border-radius: 999px;
  background: var(--primary);
  color: #040d1a;
  border: none;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 185, 36, 0.35);
  transition: all 0.3s ease;
}

.cs-btn-send:hover {
  background: #15d62d;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 36, 0.5);
}

/* BARRA DE COPYRIGHT INFERIOR */
.cs-footer-copyright-bar {
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 5vw, 5rem);
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

/* BOTÓN PILL DE PORTNEW */
.cs-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 8px 24px -4px rgba(16, 185, 36, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-pill-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 36, 0.5);
}

.cs-pill-btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.cs-pill-btn:hover .cs-pill-btn-icon {
  transform: translateX(3px);
}

.cs-pill-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  padding: 12px 20px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s ease;
}

.cs-phero .cs-pill-link {
  color: #ffffff;
}

.cs-phero .cs-pill-link:hover {
  color: var(--primary);
}

.cs-btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border-radius: 999px;
  background: var(--primary);
  color: #040d1a;
  border: none;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 185, 36, 0.35);
  transition: all 0.3s ease;
}

button, .btn, [class*="btn"], .cs-social-pill {
  white-space: nowrap;
}

.cs-pill-link:hover {
  color: var(--primary);
}

/* ========================================================
   BANDA MONUMENTAL MARQUEE STYLE-2 ANTES DEL FOOTER (PORTNEW NATIVE)
   ======================================================== */
.cs-footer-marquee-wrap {
  background: #040d1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee-style-2 {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: transparent;
  width: 100%;
  overflow: hidden;
}

.marquee-style-2 .marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-style-2 .marquee-track {
  display: flex;
  width: max-content;
  animation: cs-marquee-scroll 32s linear infinite;
}

.marquee-style-2 .marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marquee-style-2 .cs-marquee-content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-style-2 .marquee-text {
  background: linear-gradient(100deg, var(--primary) 0%, #a7f3d0 50%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  transition: all 0.3s ease;
}

.marquee-style-2 .marquee-text.is-outline {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.025em, 3px) var(--primary);
  background: none;
  transition: all 0.3s ease;
}

.marquee-style-2 .cs-marquee-content:hover .marquee-text.is-outline {
  -webkit-text-fill-color: var(--primary);
}

.marquee-style-2 .marquee-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 clamp(1.5rem, 3.5vw, 3rem);
}

.marquee-style-2 .marquee-sep svg {
  width: clamp(26px, 3.5vw, 48px);
  height: clamp(26px, 3.5vw, 48px);
  fill: var(--primary);
  animation: cs-marquee-spin 12s linear infinite;
}

@keyframes cs-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes cs-marquee-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-style-2 .marquee-track {
    animation: none;
  }
  .marquee-style-2 .marquee-sep svg {
    animation: none;
  }
}

/* ========================================================
   ESTILOS NATIVOS DE PÁGINAS INTERIORES (PORTNEW INNER PAGES)
   ======================================================== */
.cs-inner-hero {
  position: relative;
  background: #040d1a;
  background-image:
    radial-gradient(45% 55% at 15% 20%, rgba(16, 185, 36, 0.16), transparent 70%),
    radial-gradient(40% 50% at 85% 60%, rgba(16, 185, 36, 0.12), transparent 70%),
    linear-gradient(180deg, #06152a 0%, #040d1a 100%);
  padding: 160px 0 80px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-inner-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 18px;
}

.cs-inner-hero-desc {
  max-width: 780px;
  margin: 0 auto 28px auto;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  color: #8fa8bd;
  line-height: 1.6;
}

.cs-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}

.cs-breadcrumb a {
  color: #8fa8bd;
  transition: color 0.25s ease;
}

.cs-breadcrumb a:hover {
  color: var(--primary);
}

.cs-breadcrumb span {
  color: var(--primary);
}

.cs-breadcrumb-sep {
  color: #475569;
}

/* SECCIONES Y BLOQUES INTERIORES */
.cs-feature-section {
  padding: 90px 0;
  background: #ffffff;
}

.cs-feature-section:nth-of-type(even) {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cs-feature-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cs-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cs-feature-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 700;
  color: var(--title-text);
  line-height: 1.25;
  margin-bottom: 18px;
}

.cs-feature-text {
  font-size: 1.05rem;
  color: var(--body-text);
  line-height: 1.65;
  margin-bottom: 24px;
}

.cs-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.cs-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--title-text);
  line-height: 1.5;
}

.cs-feature-list li svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.cs-feature-card-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
}

.cs-feature-card-box:hover {
  border-color: var(--primary);
  box-shadow: 0 24px 50px -10px rgba(16, 185, 36, 0.15);
}

.cs-feature-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--title-text);
}

.cs-feature-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.cs-feature-channel-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
}

.cs-feature-channel-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -10px rgba(16, 185, 36, 0.18);
}

.cs-cta-banner-box {
  background: #040d1a;
  background-image:
    radial-gradient(40% 50% at 50% 0%, rgba(16, 185, 36, 0.22), transparent 75%),
    linear-gradient(180deg, #06152a 0%, #040d1a 100%);
  border: 1px solid rgba(16, 185, 36, 0.35);
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

@media (max-width: 991px) {
  .cs-feature-grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cs-feature-channel-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ========================================================
   SECCIÓN HERO: PORTNEW PERSONAL PORTFOLIO HERO CLON 1:1 IDÉNTICO
   (Fondo oscuro #050f1c, destellos verdes, imagen en perspectiva,
    tarjetas de estadísticas y ticker inferior)
   ======================================================== */
.cs-phero {
  --phero-fs: clamp(3.6rem, min(12vw, 17vh), 11.5rem);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: clamp(5.5rem, 12vh, 9.5rem);
  overflow: hidden;
  background-color: #050f1c;
  background-image: url('../img/pattern.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cs-phero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 60% at 74% 55%, rgba(16, 185, 36, 0.18), transparent 70%),
    radial-gradient(40% 40% at 4% 8%, rgba(16, 185, 36, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(5, 15, 28, 0.78), rgba(5, 15, 28, 0.9) 70%, #081d34);
}

.cs-phero-inner {
  position: relative;
  flex: 1;
  width: 100%;
}

.cs-phero-copy {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(1.5rem, 4vh, 4rem);
}

.cs-phero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 clamp(0.75rem, 2.4vh, 1.75rem);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #cfdde8;
}

.cs-phero-dot {
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  animation: cs-pulse 2.2s ease-out infinite;
}

/* TITULAR GIGANTE DE PORTNEW (ESCALA GRANDE Y EQUILIBRADA SIN MONTARSE EN EL SMARTPHONE) */
.cs-phero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(3.8rem, min(10vw, 14.5vh), 8.8rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #ffffff;
  max-width: 580px;
}

.cs-phero-name {
  display: block;
}

.cs-phero-name.is-outline {
  color: transparent;
  -webkit-text-stroke: 0.02em var(--primary);
  background: linear-gradient(180deg, var(--primary) 0%, rgba(16, 185, 36, 0.5) 100%) no-repeat 0 100% / 100% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  padding-left: 0.25em;
  transition: background-size 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cs-phero-name.is-outline:hover {
  background-size: 100% 100%;
}

.cs-phero-name.is-outline:hover {
  background-size: 100% 100%;
}

.cs-phero-role {
  position: relative;
  z-index: 3;
  margin: clamp(0.75rem, 2.4vh, 1.75rem) 0 0;
  font-size: clamp(16px, min(1.7vw, 2.8vh), 26px);
  color: #cfdde8;
}

.cs-phero-role em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  padding-bottom: 0.2em;
  color: var(--primary);
}

.cs-phero-lead {
  position: relative;
  z-index: 3;
  max-width: 460px;
  margin-top: clamp(1rem, 3vh, 2rem);
}

.cs-phero-lead p {
  margin: 0;
  font-size: clamp(15px, 2vh, 18px);
  line-height: 1.65;
  color: #aebfce;
}

.cs-phero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(1rem, 2.6vh, 1.75rem);
}

/* GRUPO DE BADGES DE APP STORE & GOOGLE PLAY EN EL HERO */
.cs-hero-stores {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(1rem, 2.4vh, 1.6rem);
  flex-wrap: wrap;
}

.cs-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(6, 21, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 8px 16px;
  color: #ffffff;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.cs-store-badge:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 36, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 185, 36, 0.25), 0 0 15px rgba(16, 185, 36, 0.2);
}

.cs-store-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.cs-store-caption {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fa8bd;
  font-weight: 600;
}

.cs-store-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.cs-phero-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.4rem;
  margin-top: clamp(0.8rem, 2.4vh, 1.75rem);
  font-size: 14px;
}

.cs-phero-socials span {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fa8bd;
}

.cs-phero-socials a {
  position: relative;
  color: #ffffff;
  transition: color 0.3s ease;
}

.cs-phero-socials a:hover {
  color: var(--primary);
}

/* ESCENARIO VISUAL DERECHO: PORTRAIT STAGE DE PORTNEW */
.cs-phero-visual {
  position: absolute;
  right: calc(50% - 50vw + 4vw);
  bottom: 0;
  z-index: 2;
  width: min(56%, 800px, calc((88svh - 6rem) * 1.07));
  min-width: 340px;
}

.cs-phero-portrait {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s ease;
}

.cs-phero-glow {
  position: absolute;
  inset: -8% -14% 0;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(16, 185, 36, 0.3), transparent 72%);
}

.cs-phero-orbit {
  position: absolute;
  left: 50%;
  bottom: -32%;
  z-index: 1;
  width: 124%;
  margin-left: -62%;
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform-origin: center center;
  animation: cs-phero-spin 45s linear infinite;
}

/* Pequeño planeta viajando a lo largo del anillo exterior */
.cs-phero-orbit::after {
  content: "";
  position: absolute;
  top: 6%;
  left: 14%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 24px 6px rgba(16, 185, 36, 0.8), 0 0 10px 2px #ffffff;
}

.cs-phero-orbit.is-inner {
  bottom: -20%;
  width: 92%;
  margin-left: -46%;
  border: 1.5px solid rgba(16, 185, 36, 0.35);
  transform-origin: center center;
  animation: cs-phero-spin-reverse 35s linear infinite;
}

/* Segundo planeta viajando en el anillo interior en sentido contrario */
.cs-phero-orbit.is-inner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 26px 8px rgba(34, 197, 94, 0.9), 0 0 12px 3px #ffffff;
}

@keyframes cs-phero-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes cs-phero-spin-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* HERRAMIENTAS FLOTANTES CIRCULARES (IZQUIERDA DEL ESCENARIO) */
.cs-phero-tools {
  position: absolute;
  top: 16%;
  left: -3%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.cs-phero-tool {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
  animation: cs-float 6s ease-in-out infinite;
}

.cs-phero-tool img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* TARJETAS FLOTANTES DE ESTADÍSTICAS Y STATUS (PORTNEW GLASS) */
.cs-phero-card {
  position: absolute;
  z-index: 3;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.cs-phero-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
}

.cs-phero-card span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa8bd;
}

.cs-phero-card.is-stats {
  top: 30%;
  right: -5%;
  display: flex;
  gap: 1.5rem;
  animation: cs-float 7s ease-in-out infinite;
}

.cs-phero-card.is-stats strong {
  font-size: 32px;
  line-height: 1.1;
  color: var(--primary);
}

.cs-phero-card.is-status {
  bottom: 12%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: cs-float 8s ease-in-out infinite;
  animation-delay: -3s;
}

/* SCROLLING SKILLS STRIP (PORTNEW TICKER) */
.cs-phero-ticker {
  position: relative;
  z-index: 4;
  overflow: hidden;
  background:
    radial-gradient(40% 180% at 50% 0%, rgba(16, 185, 36, 0.1), transparent 70%),
    linear-gradient(180deg, #07182c 0%, #050f1f 100%);
  box-shadow: inset 0 1px 0 rgba(16, 185, 36, 0.28);
}

.cs-phero-ticker::before,
.cs-phero-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(60px, 12vw, 220px);
  pointer-events: none;
}

.cs-phero-ticker::before {
  left: 0;
  background: linear-gradient(90deg, #050f1f, transparent);
}

.cs-phero-ticker::after {
  right: 0;
  background: linear-gradient(270deg, #050f1f, transparent);
}

.cs-phero-ticker-track {
  display: flex;
  width: max-content;
  animation: cs-ticker-anim 40s linear infinite;
}

.cs-phero-ticker-set {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: clamp(0.8rem, 1.9vh, 1.25rem) 0;
}

.cs-phero-ticker-set li {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: #cfdde8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cs-phero-ticker-set svg {
  width: 14px;
  height: 14px;
  fill: var(--primary);
}

.cs-phero-ticker-track {
  display: flex;
  width: max-content;
  animation: cs-ticker-anim 35s linear infinite;
}

.cs-phero-ticker-set {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 18px 0;
}

.cs-phero-ticker-set li {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cs-phero-ticker-set svg {
  width: 14px;
  height: 14px;
  fill: var(--primary);
}

@keyframes cs-ticker-anim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================================
   SECCIÓN SERVICE CARDS (PORTNEW STYLE-3)
   ======================================================== */
.cs-services-style-3 {
  padding: 90px 0;
  background: #ffffff;
}

.heading-style-2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.heading-caption {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.heading-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--title-text);
}

.services-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cs-service-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.cs-service-box:hover {
  transform: translateY(-8px);
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 20px 45px -10px rgba(16, 185, 36, 0.15), 0 0 0 1px var(--primary);
}

.cs-service-box .icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #ecfdf3;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.cs-service-box h4 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.cs-service-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--body-text);
}

/* ========================================================
   SECCIÓN PERSONAL PROJECTS / CARACTERÍSTICAS DESTACADAS
   ======================================================== */
.cs-projects-section {
  padding: 80px 0;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card-wrap {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card-wrap:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(16, 185, 36, 0.18), 0 0 0 1px var(--primary);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ecfdf3;
  color: var(--primary);
  border: 1px solid rgba(16, 185, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.project-card-wrap:hover .project-icon-box {
  background: var(--primary);
  color: #040d1a;
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 8px 20px rgba(16, 185, 36, 0.35);
}

.project-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ========================================================
   TESTIMONIAL CARDS (PORTNEW PERSONAL TESTIMONIAL)
   ======================================================== */
.cs-testimonial-sec {
  padding: 90px 0;
  background: #ffffff;
}

.cs-testimonial-box {
  background: #ecfdf3;
  border: 1.5px solid rgba(16, 185, 36, 0.3);
  border-radius: 24px;
  padding: 44px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 30px;
  align-items: center;
}

.cs-testimonial-quote {
  font-family: serif;
  font-size: 4rem;
  color: var(--primary);
  line-height: 1;
}

.cs-testimonial-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--title-text);
  line-height: 1.6;
  margin-bottom: 14px;
}

.cs-testimonial-author {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

/* ========================================================
   FORMULARIO DE CONTACTO
   ======================================================== */
.cs-contact-section {
  padding: 90px 0;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
}

.contact-card-box {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--title-text);
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 36, 0.15);
}

/* ========================================================
   FOOTER PORTNEW CORPORATIVO
   ======================================================== */
.cs-footer {
  background: #081d34;
  color: #94a3b8;
  padding: 70px 0 30px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ========================================================
   BANNER DE COOKIES ULTRA PREMIUM (CONFORME AEPD / RGPD)
   ======================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 540px;
  width: calc(100% - 48px);
  z-index: 999999;
  background: rgba(6, 21, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(16, 185, 36, 0.35);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #cfdde8;
  animation: cookie-fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

@keyframes cookie-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cookie-banner-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cookie-icon-wrap {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-wiggle 6s ease-in-out infinite;
}

@keyframes cookie-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}

.cookie-content {
  flex: 1;
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.cookie-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.cookie-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 36, 0.18);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 36, 0.3);
  text-transform: uppercase;
}

.cookie-content p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #94a3b8;
  margin-bottom: 16px;
}

.cookie-content a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

/* PANEL DETALLADO DE CONFIGURACIÓN */
.cookie-config-panel {
  background: rgba(4, 13, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.cookie-option-info strong {
  display: block;
  font-size: 0.85rem;
  color: #ffffff;
}

.cookie-option-info p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 2px 0 0 0;
  line-height: 1.35;
}

.cookie-always-active {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* TOGGLE SWITCHES */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #1e293b;
  border-radius: 20px;
  transition: 0.3s;
}

.cookie-slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.3s;
}

.cookie-switch input:checked + .cookie-slider {
  background-color: var(--primary);
}

.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(18px);
}

/* BOTONES DE ACCIÓN COOKIE */
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-btn {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.cookie-btn-accept {
  background: var(--primary);
  color: #040d1a;
  box-shadow: 0 4px 15px rgba(16, 185, 36, 0.4);
}

.cookie-btn-accept:hover {
  background: #14da2c;
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.cookie-btn-config {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-config:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-save {
  background: var(--primary);
  color: #040d1a;
}

/* Botón flotante para reabrir / modificar cookies (siempre en la esquina inferior izquierda) */
.cookie-trigger-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(6, 21, 42, 0.92);
  border: 1.5px solid rgba(16, 185, 36, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 36, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  z-index: 999990;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.cookie-trigger-btn:hover {
  transform: translateY(-3px) scale(1.08);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 36, 0.4);
}

.cookie-trigger-btn svg {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}

.cookie-trigger-btn:hover svg {
  transform: rotate(20deg);
}

/* Botón Back to Top (siempre en la esquina inferior derecha) */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(6, 21, 42, 0.92);
  border: 1.5px solid rgba(16, 185, 36, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 36, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  cursor: pointer;
  z-index: 999990;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--primary);
  color: #040d1a;
  border-color: var(--primary);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 14px 30px rgba(16, 185, 36, 0.4), 0 0 25px rgba(16, 185, 36, 0.5);
}

.back-to-top-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .cookie-trigger-btn {
    bottom: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
  }
  .cookie-trigger-btn svg {
    width: 22px;
    height: 22px;
  }
  .back-to-top-btn {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
  .back-to-top-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    padding: 18px;
  }
  .cookie-banner-inner {
    flex-direction: column;
    gap: 14px;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 1199px) {
  .cs-phero {
    --phero-fs: clamp(2.8rem, 8vw, 5.5rem);
  }
  .cs-phero-visual {
    width: 48%;
  }
}

@media (max-width: 991px) {
  .site-header {
    height: 76px;
  }
  .header-nav {
    display: none;
  }
  .cs-phero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 40px;
  }
  .cs-phero-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .cs-phero-copy {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 30px;
  }
  .cs-phero-title {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
  }
  .cs-phero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  .cs-hero-stores {
    justify-content: center;
  }
  .cs-phero-socials {
    justify-content: center;
  }
  .cs-phero-visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 440px;
    margin: 20px auto 0 auto;
  }
  .cs-phero-orbit {
    width: 95%;
  }
  .cs-phero-card.is-stats {
    top: 10%;
    right: 0;
  }
  .cs-phero-card.is-status {
    bottom: 5%;
    left: 0;
  }
  .services-grid-3 {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .cs-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cs-contact-form-grid {
    grid-template-columns: 1fr;
  }
  .cs-testimonial-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* AJUSTES PARA PÁGINAS LEGALES EN VERTICAL (TABLETS Y MÓVILES) */
  .legal-content-box {
    padding: 24px 18px !important;
    border-radius: 16px !important;
    margin-top: 0 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
  }
  .legal-highlight-card {
    padding: 16px !important;
    border-radius: 12px !important;
    margin: 18px 0 24px 0 !important;
  }
  .legal-content-box h2 {
    font-size: 1.25rem !important;
    margin: 28px 0 12px 0 !important;
  }
  .legal-content-box ul, .legal-content-box ol {
    padding-left: 18px !important;
  }
  .cs-inner-hero {
    padding: 40px 0 30px 0 !important;
  }
  .cs-inner-hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
  .cs-phero-title {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }
  .cs-phero-name.is-outline {
    padding-left: 0.15em;
  }
  .cs-phero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .cs-pill-btn, .cs-pill-link {
    width: 100%;
    justify-content: center;
  }
  .cs-phero-card.is-stats {
    position: static;
    margin: 15px auto;
    width: 100%;
    justify-content: center;
  }
  .cs-phero-card.is-status {
    position: static;
    margin: 10px auto;
    width: 100%;
    justify-content: center;
  }
  .heading-style-2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cs-footer-container-style-2 {
    padding-top: 3.5rem;
  }
  .cs-social-pills {
    justify-content: center;
  }
  .cs-footer-info {
    text-align: center;
  }
}
