/* ==========================================================================
   MINT GRIDS - styles.css v6 (Saneado & Unificado)
   Premium dark - Syncopate + Ubuntu
   ========================================================================== */

/* --- TOKENS & VARIABLES --- */
:root {
  --bg:        #0c0c0f;
  --bg-2:      #111116;
  --bg-3:      #18181f;
  --surface:   var(--accent-2);
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgb(255, 255, 255);
  --accent:    #00ffcc;
  --accent-2:  #02d5ab;
  --text:      #f0f0f0;
  --text-2:    #bbbbcb;
  --text-3:    #91989d;
  --text-4:    #0d0d44;
  --navy:      #171a7d;
  --serif:     'Syncopate', sans-serif;
  --sans:      'Ubuntu', sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
  --nav-h:     68px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
}

/* --- RESET & ESTRUCTURA BASE --- */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  min-height: 100vh;
}

html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at top, #1b1464 0%, #171432 60%, #0a0727 100%);
  pointer-events: none;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: transparent;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 1;
}

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

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

em { 
  font-style: italic; 
  color: var(--accent); 
}

p {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   PREMIUM SITE LOADER
   ========================================================================== */

   .site-loader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: #070736;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    /* Transición enfocada exclusivamente en la opacidad */
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
  }
  
  /* Estado cuando el loader se desvanece */
  .site-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    /* Eliminamos el transform: translateY(-100%) para que no se eleve como cortina */
  }
  
  .loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .loader-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 255, 212, 0.1);
    border-top-color: #00ffd4; /* Color Mint */
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
  }
  
  /* Animación de rotación del spinner */
  @keyframes loader-spin {
    to { transform: rotate(360deg); }
  }
  
  /* Bloqueo temporal del scroll mientras el loader está activo */
  body.loader-active {
    overflow: hidden;
    height: 100vh;
  }

/* ==========================================================================
   NAVBAR (NAVEGACIÓN)
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11, 11, 40, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand__icon {
  width: 32px;
  height: 32px;
  color: #00ffd4;
  flex-shrink: 0;
}

.brand__text {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

/* --- ESTILOS NAVEGACIÓN DESKTOP --- */
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

/* Ajuste para ubicar los links correctamente en la barra en pantallas grandes */
@media (min-width: 769px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: calc((100vw - min(1160px, 100vw)) / 2 + 24px);
    height: var(--nav-h);
    z-index: 101;
  }
}

.nav__links a {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav__links a:hover { 
  color: var(--accent); 
}

.nav__cta {
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--accent);
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.nav__cta:hover {
  background: var(--surface);
  border-color: var(--border-2);
  color: var(--text-4);
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 18px;
  background: none; 
  border: none; 
  cursor: pointer;
  padding: 0;
}

.nav__burger span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__burger.open span:nth-child(1) { transform: translateY(8.25px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-8.25px) rotate(-45deg); }

/* ==========================================================================
   NAV DROPDOWN (START A PROJECT)
   ========================================================================== */

   .nav__dropdown {
    position: relative;
    display: inline-block;
  }
  
  .nav__dropdown-btn {
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    transition: color 0.2s var(--ease);
  }
  
  .nav__dropdown:hover .nav__dropdown-btn {
    color: var(--accent);
  }
  
  .nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 240px;
    background: rgba(11, 11, 40, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    box-shadow: 0 10px 30px rgba(11, 11, 40, 0.3);
    z-index: 110;
  }
  
  .nav__dropdown:hover .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  
  .dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background 0.2s var(--ease);
  }
  
  .dropdown-item:hover {
    background: rgba(0, 255, 204, 0.08);
  }
  
  .dropdown-item strong {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 500;
  }
  
  .dropdown-item span {
    font-size: 0.72rem;
    color: var(--text-3);
    font-weight: 300;
  }


/* ==========================================================================
   SLIDER DE FONDO PARA EL HERO (3 IMÁGENES)
   ========================================================================== */

   .hero-bg-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  .hero-bg-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
  }
  
  /* Rutas de tus 3 imágenes de fondo */
  .hero-bg-slider .slide--1 { background-image: url('images/hero-bg-1.webp'); }
  .hero-bg-slider .slide--2 { background-image: url('images/hero-bg-2.webp'); }
  .hero-bg-slider .slide--3 { background-image: url('images/hero-bg-3.webp'); }
  
  .hero-bg-slider .slide.active {
    opacity: 1;
  }

  
  /* ==========================================================================
     HERO SECTION (DISEÑO Y TIPOGRAFÍA ORIGINAL APROBADA)
     ========================================================================== */
  
  .hero {
    position: relative; /* Evita que el Hero flote y solape al Manifesto */
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-h);
    background: transparent;
    overflow: hidden;
    z-index: 10;
  }
  
  .hero__layout {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 380px 1fr;
    align-items: center;
    gap: 48px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    pointer-events: auto;
  }
  
  .hero__left { 
    text-align: right; /* Mantiene la alineación original a la derecha */
  }
  
  .hero__center {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero__right { 
    text-align: left;
  }
  
  .hero__eyebrow {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    text-align: right;
  }
  
  /* Mantiene Syncopate en mayúsculas y la estética de la imagen aprobada */
  .hero__title {
    font-family: var(--serif); /* 'Syncopate', sans-serif */
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    text-align: right;
  }
  
  .hero__title em {
    font-style: italic;
    color: var(--accent);
  }
  
  .hero__sub {
    font-family: var(--sans);
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: var(--text);
    line-height: 1.6;
    font-weight: 300;
  }

/* ==========================================================================
   LOGOTIPO SVG & ANIMACIÓN TRIDIMENSIONAL (PRE-ESTILIZADO EN CSS)
   ========================================================================== */

   #mg-stage {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
  }
  
  #mg-wrap {
    width: 75%;
    height: 75%;
    transform-style: preserve-3d;
    transform: rotateY(-12deg) rotateX(18deg);
    cursor: pointer;
  }
  
  .mg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  
  #mg-fill path {
    fill: transparent;
    stroke: #00ffd4;
    stroke-width: 3.4;
    stroke-miterlimit: 10;
    stroke-dasharray: 5941.38;
    stroke-dashoffset: 5941.38; /* Desplazado al 100% para ocultar el contorno */
  }
  
  /* TRACE path - Estado inicial para el brillo */
  #mg-trace {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
  }
  
  #mg-trace path {
    fill: transparent;
    stroke: #ffffff;
    stroke-width: 3.4;
    stroke-miterlimit: 10;
    stroke-dasharray: 5941.38;
    stroke-dashoffset: 5941.38;
  }
  
  /* Loop tridimensional de oscilación infinita (Solo Desktop) */
  @keyframes mg-rot-loop {
    0%   { transform: rotateY(-14deg) rotateX(20deg); }
    50%  { transform: rotateY(14deg) rotateX(10deg); }
    100% { transform: rotateY(-14deg) rotateX(20deg); }
  }
  
  .mg-rotating {
    animation: mg-rot-loop 6s ease-in-out infinite;
  }

/* ==========================================================================
   BOTONES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  border: 1.4px solid transparent;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: #0c0c0f;
  font-weight: 600;
  box-shadow: 0 0 30px rgba(0,255,204,0.2);
}

.btn--primary:hover {
  background: #1fffd4;
  box-shadow: 0 0 40px rgba(0,255,204,0.35);
}

.btn--ghost {
  border-color: var(--border-2);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--text-4);
  background: var(--surface); 
}

.btn--outline {
  border-color: var(--border-2);
  color: var(--text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--border-2);
  color: var(--accent);
}

.btn--large {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ==========================================================================
   CUBOS BACKGROUND ANIMATION
   ========================================================================== 

.cubes-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cube {
  position: absolute;
  top: 80vh;
  left: 45vw;
  width: 30px;
  height: 30px;
  border: solid 1px #0c2c38;
  transform-origin: top left;
  transform: scale(0) rotate(0deg) translate(-50%, -50%);
  animation: cube 16s ease-in forwards infinite;
  animation-delay: -4s;
}

.cube:nth-child(2n) { border-color: #0f343c; }
.cube:nth-child(2) { animation-delay: 1.3s; left: 25vw; top: 40vh; }
.cube:nth-child(3) { animation-delay: 2.6s; left: 75vw; top: 50vh; }
.cube:nth-child(4) { animation-delay: 4s; left: 90vw; top: 10vh; }
.cube:nth-child(5) { animation-delay: 5.3s; left: 10vw; top: 85vh; }
.cube:nth-child(6) { animation-delay: 6.6s; left: 50vw; top: 10vh; }

@keyframes cube {
  from {
    transform: scale(0) rotate(0deg) translate(-50%, -50%);
    opacity: 1;
  }
  to {
    transform: scale(20) rotate(960deg) translate(-50%, -50%);
    opacity: 0;
  }
}*/

/* ==========================================================================
   MANIFESTO SECTION (LIGHT MODE & FULL WIDTH FIX)
   ========================================================================== */

   .manifesto-section {
    width: 100%;
    background: transparent;
    padding: 100px 0;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(23, 26, 125, 0.1);
  }
  
  .manifesto__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
  }
  
  /* Tag idéntico en tamaño, tipografía y tracking al de PORTFOLIO */
  .manifesto-section .manifesto__tag {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    line-height: 1;
  }
  
  /* Titular en azul corporativo con acento menta */
  .manifesto__title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 28px;
  }
  
  .manifesto__title em {
    font-style: italic;
    color: var(--accent);
  }
  
  /* Párrafos descriptivos (sin afectar al tag) */
  .manifesto-section p.manifesto__text {
    font-family: var(--sans);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text);
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 1rem 0;
  }
  
  .manifesto-section p.manifesto__text strong {
    font-weight: 600;
    color: var(--text);
  }
  
  .manifesto-section p.manifesto__text em {
    font-style: italic;
    color: var(--accent);
  }

/* ==========================================================================
   PORTAFOLIO & FILTROS (CARRUSEL)
   ========================================================================== */

.pf-section {
  padding: 0;
  background: transparent; 
  position: relative;
  border-top: 1px solid var(--border);
  z-index: 2;
}

.pf-section .container {
  padding: 85px 24px 32px;
}

.pf-section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.pf-section__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 40px;
}

.portfolio-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.filter-btn.active, .filter-btn:hover {
  background: #fff;
  color: #000;
}

.carrusel-contenedor {
  width: 100%;
}

.carrusel-elementos {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 20px; 
  padding-bottom: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carrusel-elementos::-webkit-scrollbar {
  display: none;
}

/* Carrusel del Portfolio (Ancho fijo estricto) */
.carrusel-item {
  flex: 0 0 300px !important;
  width: 300px !important;
  max-width: 300px !important;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
  transform: scale(1);
  display: block;
}

.carrusel-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.carrusel-item.is-hidden {
  opacity: 0;
  transform: scale(0.8);
  flex: 0 0 0px;
  width: 0px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
}

/* ==========================================================================
   PROYECTO DETALLE (MODAL DE CRISTAL PREMIUM) - CÓDIGO ORIGINAL
   ========================================================================== */

   .pf-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .pf-modal[open] {
    opacity: 1;
    pointer-events: all;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  
  .pf-modal::backdrop {
    background: rgba(15, 15, 20, 0.95); 
  }
  
  .pf-modal__inner {
    position: relative;
    width: min(860px, calc(100vw - 32px));
    height: 100dvh;
    overflow-y: auto;
    background: rgba(22, 22, 30, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.35s ease;
  }
  
  .pf-modal[open] .pf-modal__inner {
    transform: translateY(0) scale(1);
  }
  
  .pf-modal__inner img {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: none;
  }
  
  /* Scrollbar Custom del Modal */
  .pf-modal__inner::-webkit-scrollbar {
    width: 8px; 
  }
  
  .pf-modal__inner::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03); 
    border-radius: 20px;
  }
  
  .pf-modal__inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 20px;
    border: 2px solid transparent; 
    background-clip: padding-box;  
    transition: background 0.2s ease;
  }
  
  .pf-modal__inner::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
  }
  
  .pf-modal__close {
    position: fixed;  
    top: 30px;         
    right: 30px;      
    z-index: 220;      
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(22, 22, 30, 0.85);
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
  }
  
  .pf-modal__close svg { width: 16px; height: 16px; }
  
  .pf-modal__close:hover {
    border-color: #00ffcc;
    color: #00ffcc;
    transform: scale(1.05); 
  }
  
  .pf-modal__cover-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #1c1c26;
    margin-bottom: 24px;
    contain: paint; 
  }
  
  .pf-modal__cover {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    display: block;
    contain-intrinsic-size: 4 / 3; 
  }
  
  .pf-modal__meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  
  .pf-modal__title {
    font-family: var(--sans);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
  }
  
  .pf-modal__desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    font-weight: 300;
    padding-top: 4px;
  }
  
  .pf-modal__pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .pf-modal__sq-wrap {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #1c1c26;
    contain: paint; 
  }
  
  .pf-modal__sq {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    contain-intrinsic-size: 1 / 1; 
  }
  
  .pf-modal__sq-wrap:hover .pf-modal__sq {
    transform: scale(1.04);
  }
  
  .pf-modal__full-wrap {
    width: 100%;
    aspect-ratio: 4 / 3; 
    border-radius: 12px;
    overflow: hidden;
    background: #1c1c26;
    margin-bottom: 12px;
    contain: paint; 
  }
  
  .pf-modal__full {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .pf-modal__nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
  }
  
  .pf-modal__nav-btn {
    background: rgba(28, 28, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .pf-modal__nav-btn:hover {
    border-color: #00ffcc;
    color: #00ffcc;
    background: rgba(0, 255, 204, 0.03);
  }
  
  .pf-modal__nav-btn--prev:hover { transform: translateX(-4px) translateY(-2px); }
  .pf-modal__nav-btn--next:hover { transform: translateX(4px) translateY(-2px); }

  
/* ==========================================================================
   THE METHOD STEPS (PORTFOLIO-STYLE 1:1 CAROUSEL CARDS)
   ========================================================================== */

/* Cards del Método (Proporción 1:1 y caja contenida) */
.step-card {
  aspect-ratio: 1 / 1;
  width: 300px;
  flex: 0 0 300px;
  background: #ffffff;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden; /* Evita que el texto o párrafos se salgan */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-top: 20px;
  box-sizing: border-box;
}
  
  .step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }
  
  .step-card__inner {
    width: 100%;
    height: 100%;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden; /* Garantiza que los párrafos no se desborden como máscara */
  }
  
  .step-card__num {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #00b894; /* Color acento para la etiqueta del paso */
    margin-bottom: 12px;
    text-transform: uppercase;
  }
  
  .step-card__title {
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 16px;
    margin-bottom: 16px;
    line-height: 1.2;
  }
  
  .step-card__desc {
    font-size: 0.92rem;
    color: #333345;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
  }

  .carrusel-elementos--ordered {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px; 
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .carrusel-elementos--ordered::-webkit-scrollbar {
    display: none;
  }

  /* ==========================================================================
   SOLUTIONS SECTION (EDITORIAL WHITE CARDS V3)
   ========================================================================== */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.solution-card {
  background: #ffffff; /* Fondo blanco puro para máximo contraste */
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Alinea todo el contenido desde arriba */
  height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.solution-card:hover {
  transform: translateY(-6px);
}

/* Imagen con Aspect Ratio 1:1 */
.solution-card__image-wrap {
  width: 100%;
  aspect-ratio: 5 / 3;
  background: #e4e4e4;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.solution-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.solution-card:hover .solution-card__image {
  transform: scale(1.03);
}

/* Contenido interno sobre fondo blanco */
.solution-card__content {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  color: #1b1b28; /* Texto oscuro legible sobre blanco */
}

.solution-card__title {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-2); /* Tono verde/menta oscuro para destacar sobre blanco */
  margin-bottom: 6px;
}

.solution-card__perfect {
  font-size: 0.9rem;
  color: #13136e;
  margin-bottom: 24px;
  font-weight: 500;
}

.solution-card__includes {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  justify-content: flex-start;
}

.solution-card__includes li {
  font-size: 0.9rem;
  color: #333345;
  padding-left: 20px;
  position: relative;
  font-weight: 400;
  line-height: 1.4;
}

.solution-card__includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00b894;
  font-weight: 700;
}

/* Botón adaptable para tarjeta blanca */
.solution-card__btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ==========================================================================
   SECTION 10: REVIEWS (1:1 PORTFOLIO STYLE CAROUSEL)
   ========================================================================== */

   .review-card {
    /* Forzamos proporción 1:1 e igualamos border-radius */
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }
  
  .review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }
  
  .review-card__inner {
    width: 100%;
    height: 100%;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
  }
  
  .review-card__stars {
    color: rgba(255, 184, 3, 1);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }
  
  .review-card__quote {
    font-size: 0.92rem;
    color: rgb(88, 88, 88);
    line-height: 1.6;
    font-style: italic;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center; /* Centra verticalmente el testimonio en la card 1:1 */
  }
  
  .review-card__author {
    font-size: 0.8rem;
    color: var(--navy);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
  }




/* ==========================================================================
   CONTACT SECTION (HYBRID MODE: DARK HEADER + LIGHT FORM CARD)
   ========================================================================== */

   .contact-section {
    padding: 120px 24px;
    background: transparent; /* Mantiene el fondo oscuro global del sitio */
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
  }
  
  .contact-container {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }
  
  /* Encabezado en modo oscuro */
  .contact-section .eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent); /* Retorna al verde menta fluorescente */
    margin-bottom: 16px;
  }
  
  .contact-section h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff; /* Texto blanco */
    margin-bottom: 20px;
  }
  
  .contact-section h1 em {
    font-style: italic;
    color: var(--accent); /* Retorna al verde menta fluorescente */
  }
  
  .contact-section .description {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-2); /* Texto secundario para el fondo oscuro */
    margin-bottom: 44px;
    font-weight: 300;
    line-height: 1.6;
  }
  
  /* TARJETA CONTENEDORA DEL FORMULARIO EN MODO CLARO */
  .contact-card {
    background: #f6f6f6;
    border-radius: var(--radius-lg, 20px);
    padding: 40px 32px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .contact-form label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--navy); /* Azul principal */
  }
  
  /* INPUTS, TEXTAREAS & SELECTS DENTRO DE LA TARJETA CLARA */
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 5, 143, 0.5);
    border-radius: var(--radius);
    padding: 14px 18px;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: #1a1a2e;
    outline: none;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
  }
  
  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    color: #9090a7;
  }

  /* GRID DE SERVICIOS SIMPLIFICADO */

   .contact-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 10px;
    margin-bottom: 24px;
  }
  
  .contact-service-card {
    position: relative;
    cursor: pointer;
    display: flex;
  }
  
  .contact-service-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* Caja base con estilo Mint Grids */
  .contact-service-card__inner {
    width: 100%;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 5, 143, 0.35);
    border-radius: var(--radius-lg, 16px);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  }
  
  .contact-service-card:hover .contact-service-card__inner {
    border-color: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(2, 213, 171, 0.15);
  }
  
  /* Estado Seleccionado: Iluminación Neón / Accent Glow */
  .contact-service-card input[type="radio"]:checked + .contact-service-card__inner {
    border-color: var(--accent-2);
    background: rgba(2, 213, 171, 0.08);
    box-shadow: 0 0 0 3px rgba(2, 213, 171, 0.18), 0 4px 16px rgba(2, 213, 171, 0.12);
  }
  
  .contact-service-card .service-name {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy, #171a7d);
  }
  
  /* Tarjetas Notificadoras de Servicio */
  .service-notice-card {
    background: rgba(2, 213, 171, 0.08);
    border: 1px solid var(--accent-2);
    border-radius: var(--radius-lg, 16px);
    padding: 18px 22px;
    margin-bottom: 20px;
    text-align: left;
  }
  
  .service-notice-text {
    font-family: var(--sans);
    font-size: 0.92rem;
    color: #4a4a68;
    line-height: 1.5;
    margin: 0 !important;
  }
  
  .service-notice-text strong {
    color: var(--navy, #171a7d);
  }
  
  /* ==========================================================================
   FIX: SPACING & GAPS EN INDEX CONTACT FORM
   ========================================================================== */

/* 1. Garantiza el espaciado entre las filas de proyectos y los grupos de campos */
.contact-form .project-selector-table {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Devuelve el gap entre filas de radio buttons */
  margin-top: 8px;
}

/* 2. Asegura separación entre las filas de proyectos y el campo 'Project Details' */
.contact-form .project-selector-table #detailsGroup {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 3. Asegura el espacio vertical entre el Textarea y el Botón de Envío */
.contact-form .project-selector-table #contactSubmitGroup {
  margin-top: 16px;
}

/* 4. Ajuste estructural para que el contenedor general respete la separación */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px; /* Espaciado uniforme entre Name, Email, Project Selector, etc. */
}

/* ==========================================================================
   BRIEF NOTICE (CLEAN & CENTERED BELOW BRANDING)
   ========================================================================== */

/* Eliminamos el fondo de caja, bordes y paddings de contenedor */
.contact-section .brief-notice-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 12px 16px 8px;
  margin: 4px 0 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;      /* Centra texto y botón uno debajo del otro */
  justify-content: center;
  text-align: center;
  gap: 16px;                 /* Espaciado perfecto entre el párrafo y el botón */
  width: 100%;
  box-sizing: border-box;
}

/* Estilo de texto limpio y legible */
.contact-section .brief-notice-text {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: #4a4a68;
  line-height: 1.5;
  margin: 0;
  max-width: 520px;          /* Evita que el texto se estire demasiado a los lados */
}

.contact-section .brief-notice-text strong {
  color: var(--navy);
  font-weight: 600;
}

/* Botón CTA centrado */
.contact-section .brief-notice-card .btn {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

  /* HOVER EN CAMPOS */
  .contact-form input:hover,
  .contact-form textarea:hover,
  .contact-form select:hover {
    border-color: rgba(23, 26, 125, 0.35);
    background: #ffffff;
  }
  
  /* FOCUS EN CAMPOS */
  .contact-form input:focus,
  .contact-form textarea:focus,
  .contact-form select:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(2, 213, 171, 0.18);
    background: #ffffff;
  }
  
  .contact-form textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  /* TARJETAS SELECTORAS (IDENTITY ROWS) */
  .contact-section .identity-row {
    background: #ffffff;
    border: 1px solid rgba(0, 5, 143, 0.5);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  }
  
  .contact-section .identity-row:hover {
    border-color: var(--accent-2);
    background: #ffffff;
  }
  
  .contact-section .identity-row:has(input[type="radio"]:checked) {
    border-color: var(--accent-2);
    background: rgba(2, 213, 171, 0.06);
  }
  
  .contact-section .identity-name {
    color: var(--navy);
  }
  
  .contact-section .identity-desc {
    color: #555570;
  }
  
  /* AVISO DEL BRIEF DENTRO DE LA TARJETA CLARA */
  .contact-section .brief-notice-card {
    background: #ffffff;
    border: 1px solid var(--accent-2);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
  }
  
  .contact-section .brief-notice-text {
    font-size: 0.95rem;
    color: #4a4a68;
    margin-bottom: 16px;
  }
  
  .contact-section .brief-notice-text strong {
    color: var(--navy);
  }
  
  /* ACCIONES Y MENSAJE DE ESTADO */
  .form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin-top: 32px;
    text-align: center;
  }
  
  .form-status {
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--navy);
    margin: 0;
    padding: 0 16px;
    min-height: 1.5em;
    transition: color 0.3s ease;
  }
  
  /* AJUSTES RESPONSIVE PARA MÓVILES */
  @media (max-width: 640px) {
    .contact-card {
      padding: 28px 18px;
    }
  }

  /* ==========================================================================
   STEPPER & SERVICE CARDS (3 COLUMNS)
   ========================================================================== */

.stepper-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  gap: 12px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.step-item.active {
  opacity: 1;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.step-item.active .step-num {
  background: var(--accent);
  color: #000;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
}

/* Service Grid 3 Columns */
.service-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.service-card {
  position: relative;
  cursor: pointer;
}

.service-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.service-card__inner {
  padding: 20px;
  background: rgba(24, 24, 31, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
  transition: all 0.2s ease;
}

.service-card:hover .service-card__inner {
  border-color: var(--accent);
}

.service-card input[type="radio"]:checked + .service-card__inner {
  border-color: var(--accent);
  background: rgba(0, 255, 204, 0.06);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.15);
}

.service-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}

.service-card__desc {
  font-size: 0.8rem;
  margin-top: 8px;
  color: var(--text-2);
  line-height: 1.4;
}

/* Steps Display Control */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}



/* ==========================================================================
   BRIEF GENERATOR SECTION (HYBRID MODE: DARK HEADER + LIGHT BRIEF CARD)
   ========================================================================== */

   .brief-section {
    padding: 120px 24px;
    background: transparent;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
  }
  
  .brief-container {
    max-width: 760px;
    margin: 0 auto;
  }
  
  /* Encabezado en modo oscuro */
  .brief-header {
    max-width: 680px;
    margin: 0 auto 44px;
    text-align: center;
  }
  
  .brief__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
  }
  
  .brief__title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 20px;
  }
  
  .brief__title em {
    font-style: italic;
    color: var(--accent);
  }
  
  .brief__sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-2);
    font-weight: 300;
    line-height: 1.6;
  }
  
  /* TARJETA CONTENEDORA EN MODO CLARO */
  .brief-card {
    background: #f6f6f6;
    border-radius: var(--radius-lg, 20px);
    padding: 44px 36px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
  }
  
  .brief-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .brief-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  /* Labels oscuras en azul corporativo */
  .brief-form label,
  .brief-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--navy);
  }
  
  /* Description textos sobre fondo claro */
  .brief-field-desc,
  .brief-desc {
    font-size: 0.88rem;
    color: #555570;
    margin-bottom: 12px;
    font-weight: 400;
  }
  
  /* Inputs, Textareas, Selects */
  .brief-form input[type="text"],
  .brief-form input[type="email"],
  .brief-form textarea,
  .brief-form select {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 5, 143, 0.5);
    border-radius: var(--radius);
    padding: 14px 18px;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: #1a1a2e;
    outline: none;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
  }
  
  .brief-form input[type="text"]::placeholder,
  .brief-form input[type="email"]::placeholder,
  .brief-form textarea::placeholder {
    color: #9090a7;
  }
  
  .brief-form input[type="text"]:focus,
  .brief-form input[type="email"]:focus,
  .brief-form textarea:focus,
  .brief-form select:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(2, 213, 171, 0.18);
    background: #ffffff;
  }
  
  .form-row-dual {
    display: flex;
    gap: 16px;
  }
  
  .form-row-dual .form-group {
    flex: 1;
  }
  
  /* ==========================================================================
   BRIEF - IDENTITY ROW SLOTS & SVG EXAMPLES
   ========================================================================== */

.identity-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(0, 5, 143, 0.2);
  border-radius: var(--radius-lg, 16px);
  background: #ffffff;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.identity-row:hover {
  border-color: var(--accent-2, #00ffd4);
  box-shadow: 0 4px 14px rgba(0, 255, 212, 0.12);
}

.identity-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.identity-name {
  font-weight: 600;
  color: var(--navy, #171a7d);
  font-size: 0.95rem;
}

.identity-desc {
  font-size: 0.85rem;
  color: #666680;
  line-height: 1.3;
}

.identity-examples {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.example-slot {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md, 10px);
  background: #f4f6fa;
  border: 1px dashed rgba(23, 26, 125, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.example-slot svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  fill: currentColor;
  color: var(--navy, #171a7d);
}

.identity-row input[type="radio"]:checked ~ .identity-examples .example-slot {
  background: rgba(0, 255, 212, 0.12);
  border-style: solid;
  border-color: var(--accent-2, #00ffd4);
}

@media (max-width: 640px) {
  .identity-row {
    flex-wrap: wrap;
  }
  
  .identity-examples {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }
}

/* ==========================================================================
   BRIEF FORM - FORZAR SEPARACIÓN DE CAMPOS Y TÍTULOS
   ========================================================================== */

/* 1. Margen superior obligatorio para cada grupo de campos */
.brief-form .form-group,
.brief-form .form-row-dual {
  margin-top: 24px !important;
  margin-bottom: 8px !important;
}

/* 2. El primer campo del formulario no debe tener margen superior */
.brief-form .form-group:first-child,
.brief-form .form-step > .form-group:first-of-type {
  margin-top: 0 !important;
}

/* 3. Separación vertical entre el título (label) y su propio input */
.brief-form label {
  display: block !important;
  margin-bottom: 8px !important;
  font-weight: 600;
}

/* 4. Separación si hay párrafos descriptivos bajo un label */
.brief-form .brief-field-desc {
  margin-top: -4px !important;
  margin-bottom: 12px !important;
}

/* ==========================================================================
   BRIEF FORM FIXES: DUAL ROWS, COLOR SWATCH & IDENTITY CARDS
   ========================================================================== */

/* 1. ALINEACIÓN HORIZONTAL DE FILAS DUALES (Target Age / Target Gender / Domain) */
.brief-form .form-row-dual {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  align-items: flex-end !important;
  width: 100%;
}

.brief-form .form-row-dual .form-group {
  flex: 1 !important;
  margin-top: 0 !important;
  display: flex;
  flex-direction: column;
}

.brief-form select {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
}

/* 2. REPARACIÓN DEL COLOR PICKER (Mantiene la cajita cuadrada de color) */
.color-picker-pair {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-swatch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f4f6fa;
  border: 1px solid rgba(23, 26, 125, 0.2);
  border-radius: var(--radius-md, 10px);
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.swatch-preview {
  display: inline-block !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.swatch-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy, #171a7d);
}

/* 3. REPARACIÓN DE TARJETAS DE IDENTIDAD (Espaciado horizontal y distribución) */
.identity-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.identity-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 16px 20px !important;
  border: 1px solid rgba(0, 5, 143, 0.2);
  border-radius: var(--radius-lg, 16px);
  background: #ffffff;
  margin-bottom: 0 !important;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.identity-select {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.identity-info {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.identity-name {
  display: block !important;
  font-weight: 600 !important;
  color: var(--navy, #171a7d) !important;
  font-size: 0.95rem !important;
}

.identity-desc {
  display: block !important;
  font-size: 0.85rem !important;
  color: #666680 !important;
  line-height: 1.3 !important;
}

.identity-examples {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: auto !important;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .brief-form .form-row-dual {
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  .identity-row {
    flex-wrap: wrap !important;
  }
}

  /* ==========================================================================
     IDENTITY TYPE SELECTION TABLE (MODO CLARO)
     ========================================================================== */
  
  .identity-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .identity-row {
    display: grid;
    grid-template-columns: 32px 1fr 180px;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 5, 143, 0.5);
    border-radius: var(--radius);
    padding: 16px 20px;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  }
  
  .identity-row:hover {
    border-color: var(--accent-2);
    background: #ffffff;
  }
  
  .identity-select input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .radio-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #9090a7;
    position: relative;
    transition: border-color 0.2s var(--ease);
  }
  
  .identity-row input[type="radio"]:checked + .radio-custom {
    border-color: var(--accent-2);
  }
  
  .identity-row input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-2);
  }
  
  .identity-row:has(input[type="radio"]:checked) {
    border-color: var(--accent-2);
    background: rgba(2, 213, 171, 0.08);
  }
  
  .identity-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .identity-info--full {
    grid-column: span 2;
  }
  
  .identity-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
  }
  
  .identity-desc {
    font-size: 0.88rem;
    color: #555570;
    font-weight: 400;
  }
  
  .identity-examples {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  
  .example-slot {
    width: 76px;
    height: 50px;
    background: #ffffff;
    border: 1px solid rgba(0, 5, 143, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }
  
  .example-slot svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  /* ==========================================================================
     SLIDERS INTERACTIVOS (MODO CLARO)
     ========================================================================== */
  
  .brief-sliders-block {
    background: #ffffff;
    border: 1px solid rgba(0, 5, 143, 0.3);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    margin: 12px 0;
  }
  
  .brief-sliders-title,
  .brief-section-subtitle {
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    text-align: center;
  }
  
  .brief-sliders-sub {
    font-size: 0.88rem;
    color: #555570;
    margin-bottom: 32px;
    text-align: center;
    font-weight: 400;
  }
  
  .slider-group {
    margin-bottom: 28px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
  }
  
  .slider-group:last-child {
    margin-bottom: 0;
  }
  
  .slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
  }
  
  .slider-track-container {
    position: relative;
    width: 100%;
    height: 24px;
    display: flex;
    align-items: center;
  }
  
  .brief-slider {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 6px;
    background: rgba(23, 26, 125, 0.12);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    border: none;
    margin: 0;
    transition: background 0.25s var(--ease);
  }
  
  .brief-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-2);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(2, 213, 171, 0.4);
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  }
  
  .brief-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(2, 213, 171, 0.6);
  }
  
  .slider-ticks .tick {
    width: 2px;
    height: 8px;
    background: rgba(23, 26, 125, 0.2);
    border-radius: 2px;
  }
  
  .slider-marks {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 20px);
    margin: 6px auto 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-3);
  }
  
  .slider-ticks,
  .slider-marks {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  }
  
  .slider-group:has(.brief-slider:active) .slider-ticks,
  .slider-group:has(.brief-slider:active) .slider-marks,
  .slider-group:has(.brief-slider:focus) .slider-ticks,
  .slider-group:has(.brief-slider:focus) .slider-marks {
    opacity: 1;
    visibility: visible;
  }
  
  /* ==========================================================================
     SCOPE CARDS GRID (MODO CLARO)
     ========================================================================== */
  
  .scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 12px;
  }
  
  .scope-card {
    position: relative;
    display: flex;
    cursor: pointer;
  }
  
  .scope-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .scope-card__inner {
    width: 100%;
    padding: 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 5, 143, 0.5);
    border-radius: var(--radius-lg, 12px);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
  }
  
  .scope-card:hover .scope-card__inner {
    border-color: var(--accent-2);
    transform: translateY(-2px);
  }
  
  .scope-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
  }
  
  .scope-card__title {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
  }
  
  .scope-card__desc {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: #555570;
    line-height: 1.5;
    margin: 0;
    padding-left: 32px;
  }
  
  .scope-card input[type="radio"]:checked + .scope-card__inner {
    border-color: var(--accent-2);
    background: rgba(2, 213, 171, 0.08);
  }
  
  .scope-card input[type="radio"]:checked + .scope-card__inner .radio-custom {
    border-color: var(--accent-2);
    background: var(--accent-2);
    box-shadow: inset 0 0 0 3px #ffffff;
  }
  
  .scope-card input[type="radio"]:checked + .scope-card__inner .scope-card__title {
    color: var(--navy);
  }
  
  /* ==========================================================================
     COLOR PICKER DUAL INTUITIVO (MODO CLARO)
     ========================================================================== */
  
  .color-picker-pair {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
    align-items: center;
  }
  
  .color-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .hex-prefix {
    position: absolute;
    left: 16px;
    color: #9090a7;
    font-weight: 600;
    font-size: 0.95rem;
    pointer-events: none;
  }
  
  .color-hex-input {
    padding-left: 32px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
  }
  
  .color-swatch-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 5, 143, 0.5);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
    user-select: none;
  }
  
  .color-swatch-btn:hover {
    border-color: var(--accent-2);
    background: rgba(2, 213, 171, 0.06);
  }
  
  .swatch-preview {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
  }
  
  .swatch-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
  }
  
  .color-swatch-btn svg {
    color: var(--accent-2);
  }
  
  .color-picker-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
  }
  
  /* RESPONSIVE */
  @media (max-width: 640px) {
    .brief-card {
      padding: 28px 18px;
    }
    .identity-row {
      grid-template-columns: 28px 1fr;
      gap: 12px;
    }
    .identity-examples {
      grid-column: 2 / -1;
      margin-top: 4px;
    }
    .form-row-dual {
      flex-direction: column;
      gap: 20px;
    }
    .color-picker-pair {
      grid-template-columns: 1fr;
    }
  }

/* ==========================================================================
   FOOTER
   ========================================================================== */

   .footer {
    background: transparent;
    border-top: 1px solid var(--border);
    padding: 24px 0;
    position: relative;
    z-index: 3; 
  }
  
  .footer__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-2);
    line-height: 1.5;
  }
  
  /* Enlace/Botón integrado en la misma línea */
  .footer__link {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--sans);
    font-size: inherit;
    color: var(--text-2);
    cursor: pointer;
    transition: color 0.2s var(--ease);
    display: inline;
    vertical-align: baseline;
  }
  
  .footer__link:hover {
    color: var(--accent);
  }

.reveal,
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.visible,
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 120ms; }
.reveal--delay-2 { transition-delay: 240ms; }
.reveal--delay-3 { transition-delay: 360ms; }

@supports (animation-timeline: scroll()) {
  .nav::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 1px;
    background: var(--accent);
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    animation: progress linear;
    animation-timeline: scroll();
    animation-range: 0 100%;
  }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ==========================================================================
   MINT GRIDS - NEW SECTIONS STYLES
   ========================================================================== */

/* --- GENERAL SECTION UTILITIES --- */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 24px;
}

.section__title em {
  font-style: italic;
  color: var(--accent);
}

.section__lead {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.section__text {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.65;
  margin: 0 auto 24px;
}

.max-680 { max-width: 680px; }
.max-780 { max-width: 780px; }
.mt-40 { margin-top: 40px; }

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

/* ==========================================================================
   SECTION 02: WHY BRANDS STRUGGLE
   ========================================================================== */

.struggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.struggle-card {
  background: rgba(24, 24, 31, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.struggle-card:hover {
  border-color: rgba(255, 77, 77, 0.4);
  background: rgba(255, 77, 77, 0.03);
}

.struggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 77, 77, 0.1);
  color: #ff4d4d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  flex-shrink: 0;
}

.struggle-card p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
  font-weight: 400;
}



/* ==========================================================================
   SECTION 05: PORTFOLIO INTRO
   ========================================================================== */

   .pf-intro-section {
    padding: 100px 0 40px; /* Padding inferior reducido para conectar de forma fluida con los filtros/carrusel existentes */
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
  }
  
  .pf-intro-section .section__title {
    margin-bottom: 20px;
  }
  
  .pf-intro-section .section__lead {
    margin-bottom: 12px;
  }

/* ==========================================================================
   SECTION 07: CREATIVE TOOLS
   ========================================================================== */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.tool-card {
  background: rgba(24, 24, 31, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.tool-card:hover {
  border-color: var(--accent);
  background: rgba(0, 255, 204, 0.02);
}

.tool-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 12px;
}

.tool-card__title {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.tool-card__text {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

/* ==========================================================================
   SECTION 08: REASON WHY
   ========================================================================== */

.reason-content {
  margin: 0 auto;
}

.reason__lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 300;
}

.reason__lead strong {
  font-weight: 500;
}

.reason__highlight {
  font-size: 1.05rem;
  color: var(--accent);
  margin-top: 24px;
}

/* ==========================================================================
   SECTION 09: PRINCIPLES
   ========================================================================== */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.principle-card {
  background: rgba(24, 24, 31, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s var(--ease);
}

.principle-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.principle-card--full {
  grid-column: 1 / -1;
  border-color: rgba(0, 255, 204, 0.2);
}

.principle-card__num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.principle-card__title {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.principle-card__text {
  font-size: 0.88rem;
  color: var(--text-2);
  margin: 0;
  font-weight: 300;
}

/* ==========================================================================
   MODAL LEGAL (MINT GRIDS SYSTEM)
   ========================================================================== */

/* Modal Overlay (Fondo oscuro con desenfoque) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 24, 31, 0.2); /* Tono coherente con el background radial */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Contenedor principal de la Modal (Efecto Cristal Traslúcido) */
.modal-container {
  background: rgba(18, 18, 52, 0.8);;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s var(--ease);
  overflow: hidden;
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

/* Cabecera de la Modal */
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(24, 24, 31, 0.2);
  flex-shrink: 0;
}

.modal-title { 
  margin: 0; 
  font-family: var(--sans);
  font-size: 1.15rem; 
  font-weight: 600;
  color: #ffffff; 
  letter-spacing: 0.01em;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-2);
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.modal-close:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

/* Pestañas (Tabs Interactivas) */
.modal-tabs {
  display: flex;
  gap: 8px;
  background: rgba(24, 24, 31, 0.2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  z-index: 2;
  scrollbar-width: none; /* Oculta scrollbar en Firefox */
}

.modal-tabs::-webkit-scrollbar {
  display: none; /* Oculta scrollbar en Chrome/Safari */
}

.tab-btn {
  padding: 14px 22px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0; /* EVITA QUE LA PESTAÑA SE ENCOJA EN PANTALLAS PEQUEÑAS */
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(24, 24, 31, 0.2);;
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(24, 24, 31, 0.2);;
  font-weight: 600;
}

/* Cuerpo de la modal con scrollbar personalizado */
.modal-body {
  padding: 28px 24px;
  overflow-y: auto;
  flex-grow: 1;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
}

/* Scrollbar interno personalizado */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(24, 24, 31, 0.2);;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(24, 24, 31, 0.2);;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.tab-content { 
  display: none; 
}

.tab-content.active { 
  display: block; 
}

.tab-content h3 { 
  margin-top: 0; 
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff; 
}

.tab-content h4 { 
  margin: 20px 0 8px 0; 
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--accent); 
}

.tab-content p, 
.tab-content ul { 
  margin-bottom: 8px; 
}

.tab-content ul {
  padding-left: 20px;
}

.tab-content li {
  margin-bottom: 6px;
}

.legal-date { 
  display: block;
  font-size: 0.9rem; 
  color: var(--text-3); 
  font-style: italic; 
  margin-bottom: 16px;
}

/* Pie de la modal */
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  text-align: right;
  background: rgba(24, 24, 31, 0.2);
  flex-shrink: 0;
}

/* Botón de aceptación reusando las reglas primarias del sitio */
.btn-accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #0c0c0f;
  border: 1px solid transparent;
  padding: 10px 24px;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.15);
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}

.btn-accept:hover {
  background: #1fffd4;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.3);
}

.btn-accept:active {
  transform: translateY(0) scale(0.98);
}

body.modal-open { 
  overflow: hidden; 
}

/* Especificidad alta para sobreescribir los estilos globales de <p> */
.modal-container .modal-body p,
.modal-container .tab-content p {
  font-size: 0.82rem; /* <--- Ajusta aquí el tamaño exacto que prefieras */
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 12px;
}

/* Opcional: reducir también los ítems de lista si tienes dentro del modal */
.modal-container .modal-body li {
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ==========================================================================
   STEPPER WIZARD STYLES (BRIEF GENERATOR)
   ========================================================================== */

/* STEPPER NAVIGATION BAR (FORA DE LA TARJETA CLARA) */
.stepper-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 760px;
  margin: 0 auto 32px auto;
  position: relative;
  gap: 12px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
  transition: opacity 0.3s var(--ease);
}

.step-item.active {
  opacity: 1;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.step-item.active .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #07131f;
}

.step-label {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

/* OCULTAR PASOS INACTIVOS */
.form-step {
  display: none;
  flex-direction: column;
  gap: 24px;
}

.form-step.active {
  display: flex;
}

.form-step-title {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.form-step-desc {
  font-size: 0.88rem;
  color: #555570;
  margin-bottom: 12px;
  font-weight: 400;
}

/* SERVICE SELECTOR GRID (STEP 1) */
.service-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.service-card {
  position: relative;
  cursor: pointer;
  display: flex;
}

.service-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-card__inner {
  width: 100%;
  padding: 20px 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 5, 143, 0.5);
  border-radius: var(--radius-lg, 12px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.service-card:hover .service-card__inner {
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.service-card input[type="radio"]:checked + .service-card__inner {
  border-color: var(--accent-2);
  background: rgba(2, 213, 171, 0.08);
}

.service-title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.service-desc {
  font-size: 0.82rem;
  color: #555570;
  line-height: 1.4;
}

/* NAVEGACIÓN Y BOTONES ENTRE PASOS */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 5, 143, 0.12);
}

.btn--secondary {
  background: transparent;
  border: 1px solid rgba(23, 26, 125, 0.3);
  color: var(--navy);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--secondary:hover {
  background: rgba(23, 26, 125, 0.06);
  border-color: var(--navy);
}

/* CARD DE RESUMEN (STEP 4) */
.summary-card {
  background: #ffffff;
  border: 1px solid rgba(0, 5, 143, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-item {
  font-size: 0.95rem;
  color: #1a1a2e;
}

.summary-item strong {
  color: var(--navy);
}

.summary-details-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 5, 143, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}



/* ==========================================================================
   BRIEF GENERATOR WIZARD (LIGHT MODE & FIXES)
   ========================================================================== */

/* 1. CORRECCIÓN UNIVERSAL DE INPUTS Y TEXTAREAS */
.brief-form input[type="text"],
.brief-form input[type="email"],
.brief-form input[type="tel"],
.brief-form textarea,
.brief-form select {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 5, 143, 0.5);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: #1a1a2e;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

/* 2. RESTRICCIÓN VERTICAL ÚNICA EN TEXTAREAS */
.brief-form textarea {
  resize: vertical;
  min-height: 90px;
}

/* 3. ESPACIADO ADECUADO PARA LA FLECHA DESPLEGABLE EN SELECTS */
.brief-form select {
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23171A7D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.brief-form input::placeholder,
.brief-form textarea::placeholder {
  color: #9090a7;
}

.brief-form input:focus,
.brief-form textarea:focus,
.brief-form select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(2, 213, 171, 0.18);
  background: #ffffff;
}

/* Refuerzo de separación entre bloques del Brief */
.brief-form .form-group + .form-group {
  margin-top: 16px;
}

.brief-form label {
  font-weight: 500;
  margin-bottom: 4px;
}

/* GRID DE TIPOGRAFÍAS (3 COLUMNAS x 2 FILAS) */
.typography-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.typography-card {
  position: relative;
  cursor: pointer;
  display: flex;
}

.typography-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.typography-card__inner {
  width: 100%;
  padding: 16px 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 5, 143, 0.4);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.typography-card:hover .typography-card__inner {
  border-color: var(--accent-2);
}

.typography-card input[type="radio"]:checked + .typography-card__inner {
  border-color: var(--accent-2);
  background: rgba(2, 213, 171, 0.08);
}

.typo-sample {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--navy);
}

.font-sans { font-family: var(--sans); font-weight: 500; }
.font-serif { font-family: var(--serif); font-style: italic; }
.font-script { font-family: 'Brush Script MT', cursive, sans-serif; }
.font-tech { font-family: 'Syncopate', sans-serif; font-weight: 700; font-size: 1.4rem; }
.font-slab { font-family: 'Rockwell', 'Courier New', serif; font-weight: 700; }
.font-minimal { font-family: 'Didot', 'Bodoni MT', serif; letter-spacing: -0.05em; }

.typo-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.typo-desc {
  font-size: 0.75rem;
  color: #555570;
  line-height: 1.3;
}

/* SCOPE GRID (SOLO 2 OPCIONES: LANDING Y MULTI-PAGE) */
.scope-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

/* NAVEGACIÓN Y BOTONES */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 5, 143, 0.12);
}

.btn--secondary {
  background: transparent;
  border: 1px solid rgba(23, 26, 125, 0.3);
  color: var(--navy);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--secondary:hover {
  background: rgba(23, 26, 125, 0.06);
  border-color: var(--navy);
}


/* ==========================================================================
   FIX BUG 1: RADIO CUSTOM ACCENT DISPLAY ON CHECKED
   ========================================================================== */

/* Estilo Base del Radio Custom */
.radio-custom {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0, 5, 143, 0.4);
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  box-sizing: border-box;
}

/* Estado Checked Universal en Tarjetas (Service, Identity, Typography, Scope) */
.service-card input[type="radio"]:checked ~ .service-card__inner .radio-custom,
.identity-row input[type="radio"]:checked ~ .radio-custom,
.identity-row input[type="radio"]:checked + .radio-custom,
.identity-row:has(input[type="radio"]:checked) .radio-custom,
.typography-card input[type="radio"]:checked ~ .typography-card__inner .radio-custom,
.scope-card input[type="radio"]:checked ~ .scope-card__inner .radio-custom,
.scope-card input[type="radio"]:checked + .scope-card__inner .radio-custom {
  border-color: var(--accent-2);
}

/* Punto Accent interno cuando está seleccionado */
.service-card input[type="radio"]:checked ~ .service-card__inner .radio-custom::after,
.identity-row input[type="radio"]:checked ~ .radio-custom::after,
.identity-row input[type="radio"]:checked + .radio-custom::after,
.identity-row:has(input[type="radio"]:checked) .radio-custom::after,
.typography-card input[type="radio"]:checked ~ .typography-card__inner .radio-custom::after,
.scope-card input[type="radio"]:checked ~ .scope-card__inner .radio-custom::after,
.scope-card input[type="radio"]:checked + .scope-card__inner .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* PANTALLA DE CONFIRMACIÓN (PASO 4) */
.confirmation-box {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.confirmation-icon {
  font-size: 3.5rem;
  line-height: 1;
}

.confirmation-title {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.confirmation-desc {
  font-size: 1.05rem;
  color: #1a1a2e;
  line-height: 1.6;
  max-width: 540px;
  margin: 0;
}

.confirmation-desc strong {
  color: var(--navy);
}

.confirmation-sub {
  font-size: 0.92rem;
  color: #555570;
  line-height: 1.5;
  max-width: 480px;
  margin: 0;
}

.confirmation-actions {
  margin-top: 24px;
}

/* ==========================================================================
   CORRECCIÓN GLOBAL DE CARDS (MINT GRIDS)
   ========================================================================== */
   .solution-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  /* Solo el botón se empuja hacia abajo, NADA MÁS gana espacio vertical */
  .solution-card .btn,
  .solution-card a.btn,
  .solution-card__action {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }

/* ==========================================================================
   BRIEF STEPPER - FADE IN & TEXT SLIDE ANIMATION
   ========================================================================== */

/* Animación de entrada con opacidad y desplazamiento vertical */
@keyframes stepTextEntrance {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplicar la animación a todo el contenedor del paso activo */
.form-step.step-fade-active {
  animation: stepTextEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animación escalonada para encabezados y párrafos dentro del paso */
.form-step.step-fade-active h2,
.form-step.step-fade-active h3,
.form-step.step-fade-active p,
.form-step.step-fade-active .form-group {
  animation: stepTextEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   BUTTON DOTS LOADER ANIMATION
   ========================================================================== */
   .dots-loader::after {
    content: '.';
    display: inline-block;
    width: 14px;
    text-align: left;
    animation: dotsAnimation 1.2s steps(4, jump-none) infinite;
  }
  
  @keyframes dotsAnimation {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
  }

  /* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLETS & MOBILE - 768px)
   ========================================================================== */

   @media (max-width: 768px) {

      /* HERO MOBILE (COLUMNA ÚNICA CENTRADA EN PANTALLA) */

  .hero {
    position: relative;
    height: auto;
    min-height: calc(100vh - var(--nav-h));
    padding: calc(var(--nav-h) + 20px) 24px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* El layout pasa a ser 1 sola columna centrada en pantalla */
  .hero__layout {
    display: flex;
    flex-direction: column;
    align-items: center;      /* Centra horizontalmente el logo y el bloque de texto */
    justify-content: center;
    width: 100%;
    max-width: 360px;          /* Opcional: limita el ancho para una lectura óptima */
    margin: 0 auto;            /* Mismo margen automático a izquierda y derecha */
    gap: 24px;
    padding: 50;
  }

  /* 1. LOGO ANIMADO (ARRIBA Y CENTRADO EN PANTALLA) */
  .hero__center {
    width: 160px;   /* Escalado adecuado para móvil */
    height: 160px;
    margin: 0 auto; /* Centrado automático */
    order: 1;                  /* Posición superior */
    position: relative;
  }

  #mg-stage,
  #mg-wrap {
    width: 100%;
    height: 100%;
  }

  /* 2. COLUMNA DE TEXTO (DEBAJO Y CENTRADA EN PANTALLA, TEXTO DERECHA) */
  .hero__left {
    width: 100%;
    order: 2;                  /* Posición inferior */
    text-align: right; /* Mantiene el texto alineado internamente a la derecha */
  }

  .hero__eyebrow {
    text-align: right;
    margin-bottom: 8px;
  }

  .hero__title {
    font-size: clamp(1.8rem, 7.5vw, 2.4rem);
    text-align: right;
    line-height: 1.15;
  }

  /* Ocultamos la tercera columna (vacía por ahora) */
  .hero__right { 
    display: none; 
  }

  .carrusel-elementos {
    gap: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .carrusel-item {
    flex: 0 0 240px;
    width: 240px;
  }

  .footer__inner { 
    flex-direction: column; 
    gap: 8px; 
    text-align: center; 
  }

    /* --- GENERAL & SECTIONS --- */
    .section {
      padding: 70px 0;
    }
  
    .principles-grid {
      grid-template-columns: 1fr;
    }
  
    .accordion__header {
      padding: 18px 20px;
    }
  
    .accordion__body {
      padding: 0 20px 20px;
    }
  
    .cta-group {
      flex-direction: column;
      width: 100%;
    }
  
    .cta-group .btn {
      width: 100%;
      justify-content: center;
    }
  
    /* --- NAVBAR & DROPDOWN --- */
    .nav__burger {
      display: flex;
    }
  
    .nav__links {
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      height: 100dvh;
      background: rgba(11, 11, 40, 0.75);
      -webkit-backdrop-filter: blur(20px);
      backdrop-filter: blur(20px);
      padding: 32px 24px;
      gap: 28px;
      z-index: 98;
    }
  
    .nav__links.open {
      display: flex;
    }
  
    .nav__links a {
      font-size: 1rem;
      font-weight: 400;
      letter-spacing: 0.05em;
      text-align: center;
    }
  
    .nav__links .nav__cta {
      font-size: 1.1rem;
      padding: 12px 32px;
      margin-top: 8px;
    }
  
    .nav__dropdown {
      width: 100%;
    }
  
    .nav__dropdown-menu {
      position: static;
      transform: none;
      width: 100%;
      opacity: 1;
      visibility: visible;
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 8px 0 0 12px;
    }
  
    /* --- STEP CARDS (THE METHOD) --- */
    .step-card__inner {
      padding: 24px 20px;
    }
  
    .step-card__title {
      font-size: 1.3rem;
      margin-bottom: 12px;
    }
  
    .step-card__desc {
      font-size: 0.85rem;
      line-height: 1.5;
    }
  
    /* --- REVIEWS --- */
    .review-card__inner {
      padding: 22px 18px;
    }
  
    .review-card__quote {
      font-size: 0.85rem;
      line-height: 1.5;
    }
  
    /* --- BRIEF GENERATOR & STEPPER --- */
    .stepper-bar {
      flex-direction: row;
      overflow-x: auto;
      padding-bottom: 8px;
      justify-content: flex-start;
      gap: 20px;
    }
  
    .step-label {
      display: none; /* Mantiene solo los círculos con números en móvil */
    }
  
    .service-selector-grid {
      grid-template-columns: 1fr;
    }
  
    .typography-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .scope-grid--two {
      grid-template-columns: 1fr;
    }
  }

@media (max-width: 480px) {
  .typography-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 600px) {
  .pf-modal__inner {
    height: auto;
    max-height: calc(100dvh - 40px);
  }
  .pf-modal__meta { flex-direction: row; }
  .pf-modal__meta > div:first-child { flex: 1; }
  .pf-modal__meta > div:last-child  { flex: 2; }
  .pf-modal__pair { 
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .contact-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .contact-service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .pf-modal__inner {
    width: 100%;
    border-radius: 0;
    padding: 20px 16px;
  }
  .pf-modal__nav-footer {
    flex-direction: column;
    gap: 12px;
  }
  .pf-modal__nav-btn {
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 300px) {
  .brand__text {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  } 
  
  .hero__left,
  .hero__right {
    text-align: center;
  }

  .hero__center {
    width: 320px;
    height: 320px;
    order: -1; 
  }
}