/* =========================================
   RESPONSIVE STYLES - KTSA Website
   Breakpoints:
   - Mobile: hasta 640px
   - Tablet: 641px - 1024px
   - Desktop: 1025px+
   ========================================= */

/* ===== NAVEGACIÓN MÓVIL ===== */

/* Overlay oscuro cuando el menú está abierto */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

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

/* Side Navigation Bar */
.sideNavigationBar {
  flex-direction: column;
}

.side-nav-header {
  position: relative;
  display: block;
  width: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
  min-height: 60px;
  border-bottom: 2px solid var(--gray-200);
  background: transparent;
  top: 0;
  z-index: 10;
}

.closeButton {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  margin: 0;
  left: auto;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  color: var(--brand-blue);
  background: transparent;
  border: none;
  padding: 8px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
  font-weight: 300;
}

.closeButton:hover {
  transform: translateY(-50%) rotate(90deg);
  opacity: 0.7;
}

/* Enlaces del menú móvil */
.sideNavigationBar a:not(.closeButton) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  min-height: 48px;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.2s ease, padding-left 0.2s ease, color 0.2s ease;
}

.sideNavigationBar a:not(.closeButton) .nav-arrow {
  font-size: 24px;
  color: var(--brand-blue);
  transition: transform 0.2s ease;
  font-weight: 300;
}

.sideNavigationBar a:not(.closeButton):hover {
  background: var(--gray-100);
  padding-left: 32px;
  color: var(--brand-blue);
}

.sideNavigationBar a:not(.closeButton):hover .nav-arrow {
  transform: translateX(4px);
}

.sideNavigationBar a:not(.closeButton):active {
  background: var(--brand-blue);
  color: var(--white);
}

.sideNavigationBar a:not(.closeButton):active .nav-arrow {
  color: var(--white);
}

/* ===== NAVEGACIÓN DESKTOP/MOBILE ===== */
@media (max-width: 1024px) and (min-width: 641px){
  nav .navbar{
    display: none !important; /* Ocultar navegación desktop en tablet/móvil */
  }
  nav .sideMenuButton{
    display: flex !important; /* Mostrar menú hamburguesa */
    font-size: 32px !important;
    margin-left: auto !important;
    align-items: center;
    justify-content: center;
  }
  .sideNavigationBar{
    display: flex !important; /* Asegurar que el menú lateral esté disponible */
    transform: translateX(100%) !important; /* Oculto inicialmente a la derecha */
    visibility: hidden !important; /* No tabbable cuando está cerrado */
  }
  .sideNavigationBar.open{
    transform: translateX(0) !important; /* Visible cuando está abierto */
    visibility: visible !important; /* Tabbable cuando está abierto */
  }
  nav{
    display: flex;
    padding: 10px 16px;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
  }
  nav img{
    height: 56px;
    display: block;
  }
}

@media (min-width: 1025px){
  .sideNavigationBar{
    display: none !important; /* Ocultar menú lateral en desktop */
  }
  nav .sideMenuButton{
    display: none !important;
  }
}

/* ===== FIX PARA TELÉFONOS (asegurar alineación derecha) ===== */
@media (max-width: 640px){
  nav{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 8px 16px;
    gap: 0;
    width: 100%;
  }
  
  nav > a {
    display: flex !important;
    flex-shrink: 0;
    margin-right: auto;
  }
  
  nav img{
    height: 52px !important;
    width: auto !important;
    display: block !important;
  }
  
  nav .sideMenuButton{
    display: flex !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    flex-shrink: 0;
  }
  
  nav .navbar {
    display: none !important;
  }
  
  .sideNavigationBar {
    display: flex !important;
    visibility: hidden !important;
  }
  .sideNavigationBar.open {
    visibility: visible !important;
  }
  
  .closeButton {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    left: auto !important;
  }
}

/* ===== HERO SECTION ===== */
/* Pantallas grandes de escritorio */
@media (min-width: 1920px) {
  .hero p {
    max-width: 800px;
  }
}

/* Pantallas medianas de escritorio */
@media (max-width: 1440px) and (min-width: 1025px) {
  .hero-content {
    max-width: 1400px;
  }
}

@media (max-width: 1024px){
  .hero{
    min-height: 340px;
    padding: 48px 24px;
  }
  .hero h1{
    font-size: clamp(30px, 5vw, 40px);
    font-family: 'KPMG Sans Bold', Arial, Helvetica, sans-serif;
    line-height: 1.2;
  }
  .hero p {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.6;
    max-width: min(850px, 80%);
  }
  .hero-cta-btn {
    padding: 12px 36px;
  }
}

@media (max-width: 640px){
  .hero{
    min-height: 280px;
    padding: 36px 16px;
  }
  .hero h1{
    font-size: clamp(26px, 6vw, 32px);
    font-family: 'KPMG Sans Bold', Arial, Helvetica, sans-serif !important;
    line-height: 1.25;
    margin-bottom: 16px;
  }
  .hero p{
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  .hero p br {
    display: none;
  }
  
  /* Ocultar contenido original en móvil */
  .hero-content {
    display: none;
  }
  
  /* Mostrar cuadro azul en móvil - ahora fuera del hero */
  .hero-mobile-box {
    display: block;
    background-color: #0047AB;
    padding: 32px 24px;
    text-align: center;
  }
  
  .hero-mobile-box h2 {
    font-family: 'KPMG Sans Bold', Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 16px;
  }
  
  .hero-mobile-box p {
    font-size: 15px;
    line-height: 1.6;
    color: #E6ECF5;
    margin: 0 0 24px;
  }
  
  .hero-mobile-btn {
    display: inline-block;
    background: #ffffff;
    color: #0047AB;
    font-weight: 700;
    font-size: 13px;
    padding: 14px 48px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-mobile-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
  }
}

/* ===== FEATURE BAND (bloque gris) ===== */
@media (max-width: 1024px){
  .rectangulo-gris{
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 20px;
  }
  .feature-band__bar{
    height: 48px;
  }
  .contenedor-flex {
    padding: 0 20px;
  }
}

@media (max-width: 640px){
  .rectangulo-gris{
    padding: 20px 16px;
  }
  .feature-band__bar{
    height: 40px;
  }
  .contenedor-flex{
    padding: 0 16px;
  }
  .botones{
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    width: 100%;
  }
  .botones button,
  .botones button a{
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Hacer botones del mismo tamaño solo en móvil */
  .btn-outline {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14px 20px;
    min-height: 48px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 50px;
  }
  
  .hero-cta-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 13px;
    min-height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
  
  .rectangulo-azul {
    padding: 12px 16px;
  }
  
  .rectangulo-azul p {
    font-size: 16px;
    line-height: 1.4;
  }
}

/* ===== WHY KTSA ===== */
@media (max-width: 1024px){
  .why-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .why-video{
    min-height: 260px;
    max-height: 320px;
    width: 100%;
  }
  .why-video iframe {
    width: 100%;
    height: 100%;
    max-width: 100%;
  }
  .why-logo img{
    max-height: 220px;
    width: 400px;
    max-width: 100%;
  }
  .why-card{
    min-height: auto;
    padding: 20px;
  }
  .why-wrap{
    padding: 0 24px;
  }
}

@media (max-width: 768px){
  .why-video{
    min-height: 220px;
    max-height: 280px;
  }
  .why-logo img{
    max-height: 200px;
    width: 380px;
    max-width: 100%;
  }
  .why-card{
    padding: 18px;
  }
  .why-wrap{
    padding: 0 20px;
  }
}

@media (max-width: 640px){
  .why-video{
    min-height: 200px;
    max-height: 240px;
    width: 100%;
  }
  .why-video iframe {
    width: 100%;
    height: 100%;
  }
  .why-logo{
    padding: 12px;
  }
  .why-logo img{
    max-height: 120px;
    width: auto;
    margin: 0 auto;
  }
  .why-card{
    padding: 16px;
  }
  .why-cta-btn{
    width: 100%;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 14px 24px;
  }
  .why-wrap {
    padding: 0 16px;
  }
  
  /* Mostrar/ocultar contenido específico en móvil */
  .why-title-desktop,
  .why-card-desktop,
  .why-logo {
    display: none;
  }
  
  .why-title-mobile,
  .why-card-mobile {
    display: block;
  }
  
  /* Reorganizar layout móvil */
  .why-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .why-video {
    order: 2;
    margin-bottom: 24px;
  }
  
  /* Ocultar indicadores del carrusel en móvil */
  .video-indicators {
    display: none !important;
  }
  
  .why-right-column {
    order: 3;
  }
  
  .why-title-mobile {
    order: 1;
    text-align: left;
    margin-bottom: 24px;
    font-family: 'KPMG Sans Bold', Arial, Helvetica, sans-serif !important;
    font-weight: 700;
    font-size: clamp(36px, 8vw, 48px) !important;
    line-height: 1.25;
  }
  
  /* Contenido móvil */
  .why-card-mobile {
    padding: 24px 16px;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  
  .why-card-mobile p {
    font-size: 15px;
    line-height: 1.6;
    color: #4b4b4b;
    margin-bottom: 16px;
    text-align: justify;
  }
  
  .why-card-mobile p:first-child {
    font-weight: 600;
    color: #111827;
  }
  
  /* Botón móvil */
  .why-cta-btn-mobile {
    display: block;
    width: 100%;
    background: #0047AB;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    line-height: 1.4;
    min-height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
  
  .why-cta-btn-mobile:hover {
    background: #003d8f;
    transform: translateY(-1px);
  }
}

/* ===== WHAT WE DO ===== */

/* DESKTOP: Grid 1 fila con 4 columnas - SIEMPRE (táctil o no) */
@media (min-width: 1025px){
  .wwd-grid{
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
  }
}

/* DESKTOP >1367px: Grid 1 fila con 4 columnas sin flip */
@media (min-width: 1367px){
  .wwd-grid{
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
  }
  
  /* Flip desactivado para desktop - cards estáticas con contenido visible
  .wwd-card{
    perspective: 1000px !important;
    height: 320px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  
  .wwd-card-inner{
    transform-style: preserve-3d !important;
    height: 100% !important;
  }
  
  .wwd-card-front,
  .wwd-card-back{
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    backface-visibility: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .wwd-card-front{
    padding: 32px 24px !important;
    background: var(--white) !important;
    border: 3px solid var(--brand-blue) !important;
    box-shadow: var(--shadow-md) !important;
  }
  
  .wwd-card-front::before{
    display: block !important;
    content: '' !important;
    position: absolute !important;
    top: 80px !important;
    left: -3px !important;
    width: 6px !important;
    height: 50px !important;
    background: var(--brand-blue) !important;
  }
  
  .wwd-card-back{
    transform: rotateY(180deg) !important;
    background: var(--brand-blue) !important;
    color: var(--white) !important;
    padding: 20px 18px !important;
  }
  
  .wwd-card-icon{
    width: 64px !important;
    height: 64px !important;
    border: 3px solid var(--brand-blue) !important;
    border-radius: 50% !important;
    display: grid !important;
    margin-bottom: 16px !important;
  }
  
  .flip-hint{
    display: none !important;
  }
  
  .wwd-card:hover .wwd-card-inner{
    transform: rotateY(180deg) !important;
  }
  */
}

@media (max-width: 1024px){
  .wwd-banner{
    grid-template-columns: 1fr;
  }
  .wwd-wrap{
    padding: 0 20px;
  }
}

/* Acordeón en pila para móviles y tablets SOLO (NO DESKTOP) */
@media (max-width: 1024px){
  /* Solo aplicar si el viewport es realmente pequeño o es touch */
  .wwd-grid{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    pointer-events: auto !important;
  }
  
  /* Diseño de acordeón colapsable */
  .wwd-card{
    height: auto !important;
    perspective: none !important;
    background: var(--white) !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }
  
  .wwd-card:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 2px 8px rgba(0, 71, 171, 0.1);
  }
  
  .wwd-card.expanded {
    border-color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.15);
    overflow: visible;
  }
  
  .wwd-card-inner{
    position: relative;
    transform: none !important;
    height: auto;
    pointer-events: auto !important;
    overflow: visible !important;
  }
  
  /* Header del acordeón - siempre visible */
  .wwd-card-front{
    position: relative !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    box-shadow: none;
    background: transparent;
    transform: none !important;
    backface-visibility: visible !important;
    min-height: 60px;
    pointer-events: auto !important;
    z-index: 1;
    cursor: pointer;
    width: 100%;
    height: auto !important;
    top: auto !important;
    left: auto !important;
  }
  
  .wwd-card-front::before {
    display: none;
  }
  
  .wwd-card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin: 0;
    border: none;
    pointer-events: none !important;
    background: transparent;
  }
  
  .wwd-card-icon img {
    width: 60%;
    height: 60%;
    pointer-events: none !important;
  }
  
  .wwd-card-icon svg {
    width: 60%;
    height: 60%;
    pointer-events: none !important;
  }
  
  .wwd-card-front .wwd-card-title {
    flex: 1;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
    color: var(--brand-blue);
    font-weight: 700;
    pointer-events: none !important;
  }
  
  /* Ícono de flecha */
  .flip-hint{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin: 0;
    font-size: 0;
    background: transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    pointer-events: none !important;
  }
  
  .flip-hint::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid var(--brand-blue);
    transition: all 0.3s ease;
    display: block;
    pointer-events: none !important;
  }
  
  .wwd-card.expanded .flip-hint::before {
    transform: rotate(180deg);
  }
  
  .flip-hint::after {
    display: none;
  }
  
  /* Contenido colapsable */
  .wwd-card-back{
    position: relative !important;
    transform: none !important;
    backface-visibility: visible !important;
    display: none;
    background: #f9fafb;
    padding: 20px 16px;
    text-align: center;
    width: 100%;
    height: auto !important;
    top: auto !important;
    left: auto !important;
  }
  
  .wwd-card.expanded .wwd-card-back {
    display: block;
    border-top: 1px solid #e5e7eb;
  }
  
  .wwd-card-back .wwd-card-title {
    display: none;
  }
  
  .wwd-card-back .wwd-card-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px;
    text-align: center;
  }
  
  .wwd-card-back .wwd-card-link {
    background: var(--brand-blue) !important;
    color: white !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    padding: 10px 24px;
    border-radius: 24px;
    border: 2px solid var(--brand-blue) !important;
    transition: all 0.2s ease;
  }
  
  .wwd-card-back .wwd-card-link:hover {
    background: #003d8f !important;
    border-color: #003d8f !important;
    color: white !important;
  }
  
  .wwd-card-back .wwd-card-link:active {
    background: #002a66 !important;
    border-color: #002a66 !important;
    color: white !important;
    transform: scale(0.98);
  }
}

/* Tablets grandes táctiles - COMENTADO: Ahora desktop siempre muestra 2 columnas
@media (min-width: 1025px) and (max-width: 1366px){
  .touch-device .wwd-grid{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    pointer-events: auto !important;
  }
  
  .touch-device .wwd-card{
    height: auto !important;
    perspective: none !important;
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto !important;
  }
  
  .touch-device .wwd-card:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 2px 8px rgba(0, 71, 171, 0.1);
  }
  
  .touch-device .wwd-card.expanded {
    border-color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.15);
    overflow: visible !important;
  }
  
  .touch-device .wwd-card-inner{
    position: relative !important;
    transform: none !important;
    height: auto !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }
  
  .touch-device .wwd-card-front{
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transform: none !important;
    backface-visibility: visible !important;
    min-height: 60px !important;
    pointer-events: auto !important;
    z-index: 1 !important;
    cursor: pointer;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
  }
  
  .touch-device .wwd-card-front::before {
    display: none !important;
  }
  
  .touch-device .wwd-card-icon {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
    margin: 0;
    border: none !important;
    pointer-events: none !important;
    background: transparent;
  }
  
  .touch-device .wwd-card-icon img {
    width: 60% !important;
    height: 60% !important;
    pointer-events: none !important;
  }
  
  .touch-device .wwd-card-icon svg {
    width: 60% !important;
    height: 60% !important;
    pointer-events: none !important;
  }
  
  .touch-device .wwd-card-front .wwd-card-title {
    flex: 1 !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    color: var(--brand-blue) !important;
    font-weight: 700 !important;
    pointer-events: none !important;
  }
  
  .touch-device .flip-hint{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0;
    margin: 0;
    font-size: 0;
    background: transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    pointer-events: none !important;
  }
  
  .touch-device .flip-hint::before {
    content: '' !important;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid var(--brand-blue);
    transition: all 0.3s ease;
    display: block !important;
    pointer-events: none !important;
  }
  
  .touch-device .wwd-card.expanded .flip-hint::before {
    transform: rotate(180deg) !important;
  }
  
  .touch-device .flip-hint::after {
    display: none !important;
  }
  
  .touch-device .wwd-card-back{
    position: relative !important;
    transform: none !important;
    backface-visibility: visible !important;
    display: none;
    background: #f9fafb;
    padding: 20px 16px;
    text-align: center;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
  }
  
  .touch-device .wwd-card.expanded .wwd-card-back {
    display: block !important;
    border-top: 1px solid #e5e7eb;
  }
  
  .touch-device .wwd-card-back .wwd-card-title {
    display: none !important;
  }
  
  .touch-device .wwd-card-back .wwd-card-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px;
    text-align: center;
  }
  
  .touch-device .wwd-card-back .wwd-card-link {
    background: var(--brand-blue) !important;
    color: white !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    padding: 10px 24px;
    border-radius: 24px;
    border: 2px solid var(--brand-blue) !important;
    transition: all 0.2s ease;
  }
  
  .touch-device .wwd-card-back .wwd-card-link:hover {
    background: #003d8f !important;
    border-color: #003d8f !important;
    color: white !important;
  }
  
  .touch-device .wwd-card-back .wwd-card-link:active {
    background: #002a66 !important;
    border-color: #002a66 !important;
    color: white !important;
    transform: scale(0.98);
  }
}
*/

@media (max-width: 640px){
  .wwd-banner-left{
    padding: 16px;
  }
  
  /* Mostrar/ocultar contenido específico en móvil */
  .wwd-title-desktop,
  .wwd-subtitle-desktop {
    display: none;
  }
  
  .wwd-title-mobile,
  .wwd-subtitle-mobile {
    display: block;
  }
  
  /* Estilos para el título móvil */
  .wwd-title-mobile {
    font-family: 'KPMG Sans Bold', Arial, Helvetica, sans-serif !important;
    font-weight: 700;
  }
  
  .wwd-banner-left h3{
    font-size: 20px;
  }
  
  /* Ajustes del acordeón en móviles pequeños */
  .wwd-grid {
    gap: 10px;
  }
  
  .wwd-card {
    border-width: 2px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  }
  
  .wwd-card:hover,
  .wwd-card.expanded {
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  }
  
  .wwd-card-front {
    padding: 16px 14px;
    gap: 12px;
    min-height: 64px;
  }
  
  .wwd-card-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
  }
  
  .wwd-card-front .wwd-card-title {
    font-size: 15px;
    font-weight: 600;
  }
  
  .flip-hint {
    width: 36px;
    height: 36px;
  }
  
  .flip-hint::before {
    font-size: 14px;
  }
  
  .wwd-card-back .wwd-card-text {
    font-size: 13.5px;
    line-height: 1.65;
    min-height: 130px;
    display: flex;
    align-items: center;
    padding-bottom: 18px;
    flex: 1;
  }
  
  .wwd-card.expanded .wwd-card-back {
    padding: 18px 14px 22px !important;
  }
  
  .wwd-card-back .wwd-card-link {
    font-size: 13px;
    padding: 9px 20px !important;
  }
}

/* ===== LIFE AT KTSA ===== */
@media (max-width: 1024px){
  .life-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .life-media{
    min-height: 280px;
  }
  .life-media::after{
    width: 0;
  }
  .life-wrap{
    padding: 0 20px;
  }
}

@media (max-width: 640px){
  .life-panel{
    padding: 16px;
  }
  .life-media{
    min-height: 220px;
  }
}

/* ===== EVP CAROUSEL ===== */
@media (max-width: 1024px){
  .evp-track{
    grid-auto-columns: minmax(260px, 55%);
  }
  .evp-wrap{
    padding: 0 20px;
  }
}

@media (max-width: 768px){
  .evp-track{
    grid-auto-columns: minmax(240px, 75%);
  }
  .evp-media img{
    height: 160px;
  }
}

@media (max-width: 640px){
  /* Toggle desktop/mobile content */
  .evp-title-desktop,
  .evp-text-desktop {
    display: none;
  }
  
  .evp-title-mobile,
  .evp-text-mobile {
    display: block;
  }
  
  .evp-title-mobile {
    font-family: 'KPMG Sans Bold', Arial, Helvetica, sans-serif !important;
    font-weight: 700;
    text-align: left;
  }
  
  .evp-track{
    grid-auto-columns: 90%;
  }
  .evp-media img{
    height: 150px;
  }
  .evp-controls{
    justify-content: center;
  }
}

/* ===== KTSA MÁS ===== */
@media (max-width: 992px){
  .mas-wrap{
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px 18px;
  }
  .mas-media::before{
    width: 0;
  }
  .ktsa-mas .hero-wrap{
    grid-template-columns: 1fr;
    padding: 44px 20px;
    min-height: 400px;
  }
}

@media (max-width: 640px){
  .mas-title{
    font-size: clamp(22px, 6vw, 36px) !important;
    font-family: 'KPMG Sans Bold', Arial, Helvetica, sans-serif !important;
    font-weight: 700;
  }
  .mas-title span {
    font-size: inherit !important;
    white-space: normal !important;
  }
  .mas-wrap{
    padding: 0 16px 16px;
  }
  .ktsa-mas .hero-wrap{
    padding: 32px 16px;
    min-height: 360px;
  }
  .mas-band{
    padding: 12px 16px;
  }
}

/* ===== VOICES AT KTSA ===== */
@media (max-width: 1024px){
  .ktsa-voices .voices-grid,
  .voices-blogs-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Asegurar orden correcto en mobile: video primero, testimonios después */
  .voices-video-column {
    order: 1;
  }
  
  .testimonials-column {
    order: 2;
  }
  
  .ktsa-voices .voices-wrap,
  .voices-blogs-wrap{
    padding: 0 24px;
  }
  .voices-video iframe{
    height: 320px;
    width: 100%;
  }
  .voices-video-column,
  .voices-blogs-column {
    width: 100%;
  }
}

@media (max-width: 768px){
  .ktsa-voices .voices-grid,
  .voices-blogs-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ktsa-voices .voices-feature .nav-arrow.left{
    left: 10px;
  }
  .ktsa-voices .voices-card .nav-arrow.right{
    right: 10px;
  }
  .voices-video iframe{
    height: 280px;
  }
  .voices-blogs-wrap {
    padding: 0 20px;
  }
}

@media (max-width: 640px){
  .ktsa-voices .voices-card .card-media img{
    height: 180px;
    width: 100%;
    object-fit: cover;
  }
  .ktsa-voices .voices-card .card-overlay{
    min-height: 120px;
    padding: 10px 12px;
  }
  .voices-video iframe{
    height: 220px;
    width: 100%;
  }
  .voices-blogs-wrap {
    padding: 0 16px;
  }
  
  /* Mejorar títulos en móvil */
  .voices-title,
  .column-title {
    font-size: clamp(22px, 5vw, 28px) !important;
    line-height: 1.25;
    margin-bottom: 16px;
  }
  .voices-title span,
  .column-title span {
    font-size: inherit !important;
  }
  
  .voices-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* ===== KTSA BLOGS ===== */
@media (max-width: 1024px){
  .ktsa-blogs .cards-track{
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .ktsa-blogs .blogs-wrap{
    padding: 0 20px;
  }
}

@media (max-width: 768px){
  .ktsa-blogs .cards-track{
    grid-template-columns: 1fr 1fr;
  }
  .ktsa-blogs .blogs-carousel{
    padding: 12px 36px;
  }
}

@media (max-width: 640px){
  .ktsa-blogs .cards-track{
    grid-template-columns: 1fr;
  }
  .ktsa-blogs .blog-card .card-media img{
    height: 150px;
  }
}

/* ===== FOOTER ===== */
@media (max-width: 1024px){
  .footer-wrap{
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .footer-legal{
    padding: 14px 20px 22px;
  }
}

@media (max-width: 640px){
  .footer-wrap{
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 16px;
  }
  .footer-badges{
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 0 0;
  }
  .footer-badges img{
    height: 48px;
    max-width: 42%;
  }
  .footer-legal{
    padding: 12px 16px 18px;
  }
  .footer-legal p{
    font-size: 12px;
  }
  .footer-actions{
    gap: 10px;
  }
  .footer-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* ===== VENDORS & PRIVACY PAGES ===== */
@media (max-width: 980px){
  .ktsa-vendors .vendors-hero,
  .ktsa-privacy .privacy-hero{
    padding: 44px 20px;
    min-height: 400px;
  }
  .ktsa-vendors .band-wrap,
  .ktsa-privacy .band-wrap{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ktsa-vendors .cta,
  .ktsa-privacy .cta{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 640px){
  .ktsa-vendors .vendors-hero,
  .ktsa-privacy .privacy-hero{
    padding: 32px 16px;
    min-height: 360px;
  }
}

/* ===== UTILIDADES GENERALES ===== */
@media (max-width: 640px){
  /* Padding general para secciones */
  section{
    padding-left: 16px;
    padding-right: 16px;
  }
  
  /* Títulos móviles - tamaños profesionales */
  h1, h2, h3, h4, h5, h6,
  .title, .subtitle,
  [class*="-title"],
  [class*="-heading"] {
    font-family: 'KPMG Sans Bold', Arial, Helvetica, sans-serif !important;
  }
  
  h1{
    font-size: clamp(28px, 6vw, 36px);
    font-family: 'KPMG Sans Bold', Arial, Helvetica, sans-serif !important;
  }
  h2{
    font-size: clamp(24px, 5vw, 28px);
    font-family: 'KPMG Sans Bold', Arial, Helvetica, sans-serif !important;
  }
  h3{
    font-size: clamp(20px, 4vw, 24px);
    font-family: 'KPMG Sans Bold', Arial, Helvetica, sans-serif !important;
  }
  
  /* Botones CTA a ancho completo (excluir botones de UI como carousel, video controls, etc.) */
  button:not(.closeButton):not(.sideMenuButton):not(.carousel-btn):not(.video-carousel-btn):not(.video-indicator):not(.testimonial-indicator):not(.evp-tab):not(#heroPlayPause):not(#heroMuteToggle):not(#backToTop):not(.back-to-top){
    width: 100%;
  }
  
  .closeButton {
    width: auto !important;
  }
  
  /* Menos espacio vertical */
  .hero-content,
  .why-wrap,
  .wwd-wrap,
  .life-wrap,
  .evp-wrap{
    padding: 0 16px;
  }
}

/* ===== LANDSCAPE MÓVIL ===== */
@media (max-width: 896px) and (orientation: landscape){
  .hero{
    min-height: 240px;
    padding: 24px 16px;
  }
  .ktsa-mas .hero-wrap{
    min-height: 280px;
    padding: 28px 16px;
  }
  .closeButton {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    left: auto !important;
  }
}

/* ===== TABLETS ESPECÍFICAS ===== */
@media (min-width: 768px) and (max-width: 1024px){
  /* Ajustes específicos para tablets en modo portrait */
  .why-grid,
  .life-grid,
  .wwd-banner{
    gap: 18px;
  }
  
  .wwd-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Banner texto más grande que el párrafo en tablets */
  .wwd-banner-content h3 {
    font-size: 26px !important;
    line-height: 1.3;
  }
  
  .wwd-banner-content p {
    font-size: 16px;
    line-height: 1.5;
  }
  
  /* Testimonials - comillas más grandes */
  .testimonial-text::before {
    font-size: 54px;
    left: -6px;
    top: -10px;
    color: rgba(255, 255, 255, 0.6);
  }
  
  /* Footer en 2 columnas para tablets */
  .footer-wrap{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== ACCESIBILIDAD TÁCTIL ===== */
@media (hover: none) and (pointer: coarse){
  /* Aumentar tamaños de toque en dispositivos táctiles */
  .nav-arrow,
  .evp-nav{
    min-width: 44px;
    min-height: 44px;
  }
  
  .social-btn img{
    min-width: 44px;
    min-height: 44px;
  }
  
  .navbar a,
  .sideNavigationBar a{
    padding: 16px 12px;
  }
  
  button,
  .cta,
  .footer-btn{
    min-height: 44px;
  }
  
  /* Proteger botones circulares de navegación */
  .back-to-top,
  .video-carousel-btn,
  .carousel-btn,
  .ktsa-blogs .nav-arrow{
    width: auto !important;
    aspect-ratio: 1 !important;
  }
}

/* ===== BREAKPOINT INTERMEDIO: TABLET PORTRAIT (900px) ===== */
@media (max-width: 900px) and (min-width: 641px) {
  /* Hero section */
  .hero-content {
    padding: 48px 32px;
  }
  
  .hero h1 {
    font-size: 32px;
    font-family: 'KPMG Sans Bold', Arial, Helvetica, sans-serif;
  }
  
  /* Feature band */
  .rectangulo-gris {
    padding: 32px 24px;
  }
  
  .botones {
    gap: 16px;
  }
  
  /* Why KTSA */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .why-card {
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* What We Do */
  .wwd-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  .wwd-card {
    height: 300px;
  }
  
  /* Life at KTSA */
  .life-content {
    padding: 24px;
  }
  
  .life-text-box {
    max-width: 460px;
  }
  
  /* EVP Carousel */
  .evp-grid {
    gap: 24px;
  }
  
  .evp-card {
    max-width: 500px;
    margin: 0 auto;
  }
  
  /* Footer */
  .footer-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 32px;
  }
}

/* ===== ESPACIADO ADAPTATIVO ===== */
/* Desktop grande (>1280px) */
@media (min-width: 1280px) {
  section {
    padding: 64px 48px;
  }
  
  .hero-content,
  .why-wrap,
  .wwd-wrap,
  .life-wrap,
  .evp-wrap {
    padding: 0 48px;
  }
}

/* Desktop estándar (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  section {
    padding: 48px 32px;
  }
}

/* Tablet landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  section {
    padding: 40px 24px;
  }
  
  .hero-content,
  .why-wrap,
  .wwd-wrap,
  .life-wrap {
    padding: 0 24px;
  }
}

/* Móvil (< 768px) */
@media (max-width: 767px) {
  section {
    padding: 32px 16px;
  }
  
  .hero-content,
  .why-wrap,
  .wwd-wrap,
  .life-wrap {
    padding: 0 16px;
  }
  
  .closeButton {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    left: auto !important;
  }
  
  /* Reducir gaps en móvil */
  .why-grid,
  .wwd-grid,
  .evp-grid {
    gap: 20px;
  }
}

/* CRITICAL FIX: Override touch device rules for ultra-small viewports */
@media (max-width: 200px) {
  .testimonials-carousel-wrapper .carousel-btn.testimonials-prev,
  .testimonials-carousel-wrapper .carousel-btn.testimonials-next,
  .blogs-section-full .blogs-carousel-wrapper .carousel-btn {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    aspect-ratio: 1 / 1 !important;
  }
}
