/* ==========================================================================
   CIRCO THEME SYSTEM STYLES
   Custom Typography: General Sans
   Design Match: Clean White Header (Robust Auto-Hide on Scroll Down / Reveal on Scroll Up)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS & TYPOGRAPHY (@font-face)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/GeneralSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('../fonts/GeneralSans-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('../fonts/GeneralSans-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('../fonts/GeneralSans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'General Sans';
  src: url('../fonts/GeneralSans-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. ROOT VARIABLES & THEME TOKENS
   -------------------------------------------------------------------------- */
:root {
  --bg-header: #F2F2F2;
  --bg-hero: #4D80E7;
  --bg-card: #f8fafc;
  --bg-dark: #0f172a;
  
  --color-primary: #4D80E7;
  --color-primary-dark: #305ec7;
  --color-text-dark: #1e293b;
  --color-text-muted: #64748b;
  --color-text-white: #ffffff;
  --color-text-hero-sub: rgba(255, 255, 255, 0.85);

  --font-sans: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-full: 9999px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   3. GLOBAL RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: var(--color-text-dark);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-normal);
}

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

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* --------------------------------------------------------------------------
   4. HEADER & NAVBAR (Auto-Hide al bajar / Aparece al subir)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* 25% más delgado (antes 107px) */
  z-index: 1000;
  background: #F2F2F2;
  box-shadow: 0px 4px 19.3px rgba(0, 0, 0, 0.09);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 4.167vw, 80px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

@media screen and (max-width: 1200px) {
  .site-header {
    height: 72px;
  }
}

@media screen and (max-width: 768px) {
  .site-header {
    height: 62px;
  }
}

/* El menú permanece fijo arriba matching prototipo Figma */
.site-header.header-hidden {
  transform: none;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}

body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
    transition: top 0.2s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  }

  /* Cuando se hace scroll en móvil, la barra admin de WP se desplaza y el header se fija arriba */
  body.admin-bar .site-header.scrolled,
  body.admin-bar .site-header.header-hidden {
    top: 0;
  }
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.04vw, 20px);
  flex-shrink: 0;
  text-decoration: none;
}

.custom-logo-img,
a.custom-logo-link img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-brand-wrap {
  display: flex;
  align-items: center;
}

.circo-brand-vector {
  width: clamp(90px, 6.2vw, 119px);
  height: auto;
  display: block;
}

.logo-separator-dot {
  display: inline-block;
  width: clamp(4px, 0.26vw, 5px);
  height: clamp(4px, 0.26vw, 5px);
  background-color: #4D80E7;
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-dora-wrap,
.logo-symbol-wrap {
  display: flex;
  align-items: center;
}

.logo-dora-img {
  width: clamp(60px, 4.16vw, 80px);
  height: auto;
  display: block;
}

.logo-symbol-img {
  width: clamp(22px, 1.72vw, 33px);
  height: auto;
  display: block;
}

.main-navigation {
  margin-left: auto;
  margin-right: clamp(1rem, 2.5vw, 3.5rem);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: clamp(1.2rem, 2.8vw, 54px);
  align-items: center;
}

.main-navigation li {
  display: flex;
  align-items: center;
}

.main-navigation a {
  position: relative;
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(13px, 0.833vw, 16px);
  line-height: 1.38;
  color: #4D80E7;
  white-space: nowrap;
  padding: 6px 0;
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Línea sutil al hacer hover */
.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: #4D80E7;
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.main-navigation .nav-item-social a::after {
  display: none;
}

.header-nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

.header-social-link:hover {
  opacity: 0.75;
  transform: scale(1.08);
}

.header-social-svg {
  fill: #4D80E7;
  width: clamp(13px, 0.833vw, 15px);
  height: clamp(13px, 0.833vw, 15px);
  display: block;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-size: clamp(14px, 1.04vw, 20px);
  line-height: 1.35;
  font-weight: 400;
  color: #4D80E7;
}

.lang-globe-icon {
  stroke: #4D80E7;
  width: 16px;
  height: 16px;
}

.lang-switcher span {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.lang-switcher span.active {
  font-weight: 600;
  text-decoration: underline;
}

/* ── Botón Hamburguesa Móvil (3 Líneas) ── */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
  z-index: 1010;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  transform-origin: center;
}

/* Animación de 3 líneas a "X" (Cerrar) */
.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body.no-scroll {
  overflow: hidden !important;
}

/* ── Responsive Header Navigation (Pantallas <= 992px) ── */
@media (max-width: 992px) {
  .site-logo {
    position: relative;
    z-index: 1010;
  }

  .header-nav-right {
    position: relative;
    z-index: 1010;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #F2F2F2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 80px 2rem 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1005;
  }

  .main-navigation.mobile-nav-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .main-navigation li {
    display: flex;
    justify-content: center;
  }

  .main-navigation a {
    font-family: 'General Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #4D80E7;
    text-decoration: none;
    padding: 8px 16px;
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-navigation a:active,
  .main-navigation a:hover {
    opacity: 0.75;
    transform: scale(1.04);
  }

  .main-navigation a::after {
    display: none;
  }

  .main-navigation .nav-item-social {
    margin-top: 1rem;
  }

  .main-navigation .header-social-svg {
    width: 26px;
    height: 26px;
  }
}

/* --------------------------------------------------------------------------
   5A. HERO SECTION (FULL WIDTH — FIGMA REDESIGN)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #091024;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: clamp(96px, 14.35vh, 155px);
  padding-bottom: clamp(36px, 5.92vh, 64px);
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .hero-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 90px;
    padding-bottom: 2.5rem;
  }
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
}

.hero-bg-fallback {
  background: #091024;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* QUITAR FILTRO AZUL: Overlay sutil del 12% de Figma, SIN gradientes ni tintes azules */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.12);
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.hero-main-heading,
.hero-eyebrow span,
.hero-body-text {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding-left: clamp(24px, 4.9vw, 94px);
  padding-right: clamp(24px, 4.9vw, 94px);
  box-sizing: border-box;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-content-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  flex: 1;
}

.hero-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(10px, 1.4vh, 15px);
}

.hero-eyebrow span {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(18px, 1.56vw, 30px);
  line-height: 1.33;
  color: #F2F2F2;
  letter-spacing: 0;
}

.hero-main-heading {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(28px, 3.125vw, 60px);
  line-height: 1.167;
  color: #F2F2F2;
  max-width: clamp(620px, 53.6vw, 1029px);
  margin-bottom: clamp(14px, 2.2vh, 25px);
  letter-spacing: -0.015em;
}

.hero-body-text {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(15px, 1.04vw, 20px);
  line-height: 1.5;
  color: #F2F2F2;
  max-width: clamp(520px, 42.3vw, 812px);
  margin-bottom: 0;
}

.hero-body-text p {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.hero-body-text p + p {
  margin-top: clamp(10px, 1.4vh, 18px);
}

.hero-sub-text {
  font-family: 'General Sans', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 0.94vw, 18px);
  line-height: 1.5;
  color: rgba(242, 242, 242, 0.85);
  max-width: 780px;
  margin-top: clamp(10px, 1.4vh, 18px);
  margin-bottom: 0;
}

.hero-cta-wrap {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: clamp(28px, 4vh, 60px);
}

.btn-hero-pill {
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: clamp(44px, 2.65vw, 51px);
  min-width: clamp(140px, 8.65vw, 166px);
  padding: 0 clamp(20px, 1.45vw, 28px);
  border: 1px solid #F2F2F2;
  border-radius: 39px;
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(16px, 1.04vw, 20px);
  line-height: 1.5;
  color: #F2F2F2;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-hero-pill:hover {
  background: #F2F2F2;
  color: #091024;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   5B. SECCIÓN DE CIFRAS / ESTADÍSTICAS (TEXTO 1 — FONDO #F2F2F2)
   -------------------------------------------------------------------------- */
.cifras-section {
  width: 100%;
  background: #F2F2F2;
  padding: clamp(60px, 5.6vw, 95px) 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .cifras-section {
    padding: clamp(40px, 4.8vw, 60px) 0;
  }
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(20px, 2.6vw, 42px);
  max-width: 1261px;
  margin: 0 auto;
  padding: 0 clamp(24px, 3.8vw, 64px);
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }
}

@media (max-width: 580px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.stat-number {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(52px, 5.0vw, 84px);
  line-height: 1;
  text-align: center;
  margin-bottom: 14px;
  background: linear-gradient(245.4deg, #4D80E7 -4.07%, #BBB8D7 68.2%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.35;
  text-align: center;
  color: #888888;
  max-width: 195px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   5C. MARQUESINA DE LOGOS (LLOGOS — DEGRADADO FIGMA)
   -------------------------------------------------------------------------- */
.logo-marquee-section {
  width: 100%;
  height: clamp(100px, 9vw, 157px);
  background: linear-gradient(90deg, #4D80E7 0%, #E0CAD2 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(60px, 7vw, 136px);
  width: max-content;
  animation: marqueeScrollFigma 42s linear infinite;
  will-change: transform;
}

.logo-marquee-section:hover .logo-marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.marquee-item img,
.marquee-item svg {
  height: clamp(34px, 3.4vw, 56px);
  width: auto;
  max-width: clamp(110px, 11vw, 180px);
  object-fit: contain;
  display: block;
  opacity: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.marquee-item:hover img,
.marquee-item:hover svg {
  transform: scale(1.08);
}

@keyframes marqueeScrollFigma {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333333%);
  }
}



/* --------------------------------------------------------------------------
   7. SERVICIOS SECTION (FIGMA REDESIGN)
   -------------------------------------------------------------------------- */
.servicios-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
  scroll-margin-top: 80px;
  background-color: #F2F2F2;
  overflow: hidden;
  padding: clamp(35px, 5vh, 65px) clamp(24px, 4.5vw, 84px) clamp(30px, 4.5vh, 50px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .servicios-section {
    min-height: calc(100vh - 72px);
    scroll-margin-top: 72px;
    padding: 35px 36px 30px;
  }
}

@media (max-width: 768px) {
  .servicios-section {
    min-height: auto;
    scroll-margin-top: 62px;
    padding: 35px 20px 30px;
  }
}

/* Ilustración geométrica de fondo (Figma: background full cover) */
.servicios-bg-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.servicios-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.servicios-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1750px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 100%;
  gap: clamp(1.5rem, 3.5vh, 4rem);
}

@media (max-width: 1200px) {
  .servicios-container {
    min-height: auto;
    gap: 2.5rem;
  }
}

/* Zona superior: Manifiesto 4 líneas */
.servicios-top-row {
  max-width: clamp(620px, 55vw, 885px);
  margin-top: clamp(8px, 1.5vh, 24px);
}

.servicios-manifesto {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(22px, 1.95vw, 38px);
  line-height: 1.22;
  color: #4D80E7;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Zona inferior: Párrafos explicativos alineados a la izquierda */
.servicios-bottom-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  margin-top: auto;
  padding-top: clamp(1rem, 2vh, 2.5rem);
}

/* Columna izquierda: Párrafos explicativos */
.servicios-desc-col {
  max-width: clamp(520px, 48vw, 760px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vh, 20px);
}

.servicios-desc-p {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.35;
  color: #4D80E7;
  margin: 0;
}

.servicios-desc-p strong {
  font-weight: 700;
}

.servicios-inline-link {
  font-family: 'General Sans', sans-serif;
  font-weight: 600;
  color: #4D80E7;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.servicios-inline-link:hover {
  color: #2b61cf;
  text-decoration-color: #2b61cf;
}

.servicios-inline-arrow {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.servicios-inline-link:hover .servicios-inline-arrow {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   8. FOOTER SECTION (FIGMA REDESIGN - TARJETA BLANCA FLOTANTE SOBRE #F2F2F2)
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: #F2F2F2;
  padding: clamp(60px, 5.57vw, 107px) clamp(20px, 4.06vw, 78px) clamp(40px, 4.06vw, 78px);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-top: none;
}

.footer-outer-wrap {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Tarjeta flotante blanca */
.footer-card {
  width: 100%;
  max-width: 1760px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 38px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.02);
}

/* Fila Superior: Logo, Manifiesto, Contacto */
.footer-card-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.footer-col-logo {
  flex: 0 0 auto;
  width: 320px;
  max-width: 100%;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.footer-brand-logo:hover {
  opacity: 0.85;
}

.footer-logo-svg,
.footer-logo-img {
  display: block;
  height: 25px;
  width: auto;
}

.footer-col-desc {
  flex: 1 1 420px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-category-text {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #4D80E7;
  opacity: 1;
  display: block;
}

.footer-desc-text {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 25px;
  color: #4D80E7;
  max-width: 416px;
  margin: 0;
}

.footer-col-contact {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0px;
  margin-left: auto;
}

.footer-contact-link {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 21px;
  color: #4D80E7;
  text-decoration: none;
  display: block;
  text-align: right;
  transition: opacity var(--transition-fast);
}

.footer-contact-link:hover {
  opacity: 0.75;
}

/* Fila Inferior dentro de la Tarjeta: Redes y Dirección */
.footer-card-bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 6px;
}

.footer-social-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  background: #4D80E7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social-btn:hover {
  background-color: #3b6ecd;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(77, 128, 231, 0.3);
}

.footer-social-btn svg,
.footer-social-btn img {
  display: block;
}

.footer-address-col {
  text-align: right;
}

.footer-address-text {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 21px;
  color: #4D80E7;
  text-align: right;
  margin: 0;
}

/* Barra Legal Inferior (Fuera de la tarjeta) */
.footer-legal-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1760px;
  padding: 0;
  box-sizing: border-box;
}

.footer-legal-copy {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  line-height: 14px;
  color: #4D80E7;
  margin: 0;
}

.footer-legal-privacy {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  line-height: 14px;
  text-align: right;
  color: #4D80E7;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.footer-legal-privacy:hover {
  opacity: 0.7;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .site-footer {
    padding: 50px 30px 36px;
  }
  .footer-card {
    padding: 28px 28px;
    gap: 30px;
  }
  .footer-card-top {
    flex-wrap: wrap;
    gap: 24px;
  }
  .footer-col-logo {
    width: 100%;
  }
  .footer-col-desc {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .footer-col-contact {
    margin-left: 0;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 40px 16px 28px;
  }
  .footer-card {
    padding: 24px 20px;
    gap: 24px;
    border-radius: 12px;
  }
  .footer-desc-text {
    font-size: 18px;
    line-height: 23px;
  }
  .footer-card-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-address-text {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .services-split-container {
    grid-template-columns: 1fr;
  }
  .service-split-card {
    padding: 3.5rem 2.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 1.5rem;
  }
}

/* ==========================================================================
   10. SECCIÓN CASOS (FIGMA REDESIGN - VIAJE DEL COLABORADOR)
   ========================================================================== */

.casos-section-figma {
  width: 100%;
  background: #FFFFFF;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

/* Espacio superior de transición (Rectangle 8968) */
.casos-top-spacer {
  width: 100%;
  height: 107px;
  background: #F2F2F2;
}

/* Franja degradada con texto 'Casos' */
.casos-gradient-bar {
  width: 100%;
  height: 63px;
  background: linear-gradient(90deg, #E0CAD2 0%, #4D80E7 100%);
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: 0 84px;
  box-sizing: border-box;
}

.casos-bar-text {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 25px;
  line-height: 35px;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

/* Contenedor principal de Casos */
.casos-main-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 40px 84px 90px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Fila Cabecera: Título + Estrella a la izquierda, Bajada a la derecha */
.casos-header-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  gap: 40px;
  padding: 20px 0 10px;
}

.casos-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
}

.casos-star-icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.casos-star-icon svg {
  display: block;
  width: 62px;
  height: 62px;
}

.casos-heading-title {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  color: #4D80E7;
  letter-spacing: -0.02em;
  margin: 0;
}

.casos-tagline-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
  max-width: 550px;
}

.casos-tagline-text {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 25px;
  color: #4D80E7;
  text-align: right;
  margin: 0;
}

/* =========================================================================
   SUBSECCIÓN VIAJE DEL CLIENTE (FIGMA NODE 691:428)
   ========================================================================= */
.casos-cliente-container {
  padding-top: 60px;
  border-top: 1px solid rgba(77, 128, 231, 0.15);
}

.casos-header-row-cliente {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  gap: 40px;
  padding: 20px 0 10px;
}

.casos-title-wrap-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 19px;
  text-align: right;
  order: 2;
}

.casos-tagline-wrap-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex-shrink: 0;
  max-width: 550px;
  order: 1;
}

.casos-tagline-text-left {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 25px;
  color: #4D80E7;
  text-align: left;
  margin: 0;
}

/* Grid de 3 Tarjetas para Viaje del Cliente */
.casos-cards-grid-cliente {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.casos-cards-grid-cliente .caso-card-item {
  flex: 1 1 0;
  height: 480px;
}

/* Grid de 6 Tarjetas (Desktop Flex con expansión interactiva) */
.casos-cards-grid {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cada tarjeta */
.caso-card-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 480px;
  background: #1A1A1A;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: flex 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, opacity 0.35s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  outline: none;
}

.caso-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(77, 128, 231, 0.22);
}

/* Estado Expandido (State=ABIERTO) */
.casos-cards-grid.has-expanded .caso-card-item {
  flex: 1 1 0;
  opacity: 0.9;
}

.casos-cards-grid.has-expanded .caso-card-item.is-active {
  flex: 2.05 1 0;
  opacity: 1;
  box-shadow: 0 18px 40px rgba(77, 128, 231, 0.35);
  transform: translateY(-4px);
  cursor: default;
}

.casos-cards-grid.has-expanded .caso-card-item:not(.is-active):hover {
  opacity: 1;
  transform: translateY(-4px);
}

.caso-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.caso-card-item:hover .caso-card-bg,
.caso-card-item.is-active .caso-card-bg {
  transform: scale(1.06);
}

/* Filtro monocromático azul acero Figma (Node 182:3694: Solid #6F83A9 con mix-blend-mode: color) */
.caso-card-filter {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #6F83A9;
  mix-blend-mode: color;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
}

/* En hover o cuando la tarjeta está activa/abierta, se desactiva el filtro y muestra la foto a color original */
.caso-card-item:hover .caso-card-filter,
.caso-card-item.is-active .caso-card-filter {
  opacity: 0;
}

/* Overlay para legibilidad del texto en la base + sombra interior Figma */
.caso-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.92) 100%);
  box-shadow: inset 0 -120px 140px rgba(0, 0, 0, 0.6);
  z-index: 3;
  pointer-events: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.caso-card-item:hover .caso-card-overlay,
.caso-card-item.is-active .caso-card-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.48) 55%, rgba(0, 0, 0, 0.95) 100%);
  box-shadow: inset 0 -140px 160px rgba(0, 0, 0, 0.65);
}

.caso-card-info {
  position: relative;
  z-index: 4;
  padding: 20px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.caso-card-client {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.01em;
}

.caso-card-service {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 19px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Botón Ver Más (State=CERRADO 2 - Hover en tarjeta inactiva) */
.btn-caso-card-more {
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 6px 18px;
  gap: 8px;
  width: auto;
  min-width: 120px;
  height: 38px;
  background: #4D80E7;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  color: #FFFFFF;
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  text-align: center;
  margin-top: 10px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 12px rgba(77, 128, 231, 0.3);
}

.caso-card-item:hover:not(.is-active) .btn-caso-card-more {
  display: inline-flex;
  animation: fadeInCardBtn 0.3s ease forwards;
}

.btn-caso-card-more:hover {
  background: #3567cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(77, 128, 231, 0.45);
}

.btn-caso-card-more .btn-more-icon {
  display: block;
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.caso-card-item:hover .btn-more-icon {
  transform: translateX(2px);
}

/* Botón Cerrar en tarjeta activa (State=ABIERTO) */
.btn-caso-card-close {
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 6px 16px;
  gap: 8px;
  width: auto;
  min-width: 126px;
  height: 40px;
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  color: #FFFFFF;
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  margin-top: 10px;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.btn-caso-card-close:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #1A1A1A;
  transform: translateY(-2px);
}

.btn-caso-card-close .btn-close-icon {
  display: block;
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.btn-caso-card-close:hover .btn-close-icon {
  transform: translateX(-2px);
}

.caso-card-item.is-active .btn-caso-card-close {
  display: inline-flex;
  animation: fadeInCardBtn 0.35s ease forwards;
}

.caso-card-item.is-active .btn-caso-card-more {
  display: none !important;
}

@keyframes fadeInCardBtn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   CONTENEDOR DE DETALLE DEL CASO (STATE=ABIERTO FIGMA)
   ========================================================================== */
.casos-detail-container {
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, margin 0.5s ease;
  margin-top: 0;
}

.casos-detail-container.is-open {
  max-height: 5500px;
  opacity: 1;
  margin-top: 60px;
  overflow: visible;
}

.caso-detail-pane {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: fadeInDetailPane 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  padding: 0;
  box-sizing: border-box;
}

.caso-detail-pane.is-active {
  display: flex;
}

@keyframes fadeInDetailPane {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cabecera: Título y Logos */
.caso-detail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1754px;
  margin: 0 auto 30px;
  padding: 0 40px;
  box-sizing: border-box;
}

.caso-detail-main-title {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 50px;
  line-height: 68px;
  text-align: center;
  color: #4D80E7;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.caso-detail-logos-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 10px auto 20px;
}

.caso-detail-logos-img {
  max-width: 833px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Foto Hero Principal Centrada (Reducida al 50%: 477px x 358px) */
.caso-detail-hero-wrap {
  width: 100%;
  max-width: 477px;
  margin: 20px auto 35px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.caso-detail-hero-img,
.caso-detail-hero-video,
.caso-detail-hero-wrap video {
  width: 100%;
  height: auto;
  max-height: 358px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* Barra Metadata 3 Columnas */
.caso-detail-meta-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1754px;
  margin: 25px auto 40px;
  padding: 0 84px;
  box-sizing: border-box;
  gap: 32px;
}

.caso-detail-meta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-family: 'General Sans', sans-serif;
  font-size: 25px;
  line-height: 34px;
}

.caso-detail-meta-col.meta-col-cliente {
  flex: 0 0 auto;
  min-width: 150px;
}

.caso-detail-meta-col.meta-col-servicio {
  flex: 1 1 auto;
  max-width: 850px;
}

.caso-detail-meta-col.meta-col-periodo {
  flex: 0 0 auto;
  align-items: flex-end;
  text-align: right;
}

.caso-detail-meta-col .meta-label {
  color: #888888;
  font-weight: 400;
  font-size: 25px;
  line-height: 34px;
}

.caso-detail-meta-col .meta-value {
  color: #4D80E7;
  font-weight: 600;
  font-size: 25px;
  line-height: 34px;
}

.caso-detail-meta-col.meta-col-periodo .meta-periodo-year,
.caso-detail-meta-col.meta-col-periodo .meta-periodo-status {
  color: #4D80E7;
  font-weight: 600;
  font-size: 25px;
  line-height: 34px;
  display: block;
}

/* ==========================================================================
   CARRUSEL INTERACTIVO PARA LA GALERÍA DE CASOS (FIGMA DESIGN)
   ========================================================================== */
.caso-detail-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1989px;
  margin: 35px auto 45px;
  box-sizing: border-box;
  padding: 0 40px;
}

.caso-detail-gallery-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  -webkit-overflow-scrolling: touch;
  padding: 15px 0 25px;
  box-sizing: border-box;
  cursor: grab;
}

.caso-detail-gallery-grid:active {
  cursor: grabbing;
}

.caso-detail-gallery-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.caso-detail-gal-card {
  flex: 0 0 clamp(320px, 28vw, 486px);
  width: clamp(320px, 28vw, 486px);
  aspect-ratio: 486 / 411;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #EAEAEA;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  scroll-snap-align: center;
  user-select: none;
}

.caso-detail-gal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.caso-detail-gal-card:hover .caso-detail-gal-img {
  transform: scale(1.04);
}

/* Placeholders en gris para casos pendientes de fotos */
.gal-card-placeholder {
  background: #ECECEC;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.3s ease;
}

.gal-card-placeholder:hover {
  background: #E4E4E4;
}

.gal-placeholder-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gal-card-placeholder:hover .gal-placeholder-box {
  opacity: 0.7;
  transform: scale(1.08);
}

/* Botones de navegación del carrusel */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(77, 128, 231, 0.25);
  color: #4D80E7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  opacity: 0.85;
}

.carousel-nav-btn:hover {
  opacity: 1;
  background: #4D80E7;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(77, 128, 231, 0.35);
}

.carousel-btn-prev {
  left: 6px;
}

.carousel-btn-next {
  right: 6px;
}

/* Párrafo Narrativo Centrado */
.caso-detail-narrative-wrap {
  max-width: 886px;
  width: 100%;
  margin: 30px auto 40px;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

.caso-detail-narrative {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 25px;
  line-height: 35px;
  color: #4D80E7;
  text-align: center;
  margin: 0;
}

/* Botón Inferior Cerrar (State=ABIERTO) */
.caso-detail-bottom-action {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px auto 60px;
}

.btn-caso-detail-close {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 24px;
  gap: 8px;
  border: 1px solid #4D80E7;
  border-radius: 9999px;
  background: transparent;
  color: #4D80E7;
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-caso-detail-close:hover {
  background: #4D80E7;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(77, 128, 231, 0.25);
}

.btn-detail-close-icon {
  display: block;
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.btn-caso-detail-close:hover .btn-detail-close-icon {
  transform: translateY(-2px);
}

/* Responsive para Casos */
@media (max-width: 1400px) {
  .caso-detail-main-title {
    font-size: 40px;
    line-height: 54px;
  }
  .caso-detail-narrative {
    font-size: 22px;
    line-height: 32px;
  }
  .caso-detail-gal-card {
    flex: 0 0 380px;
  }
  .caso-detail-meta-col,
  .caso-detail-meta-col .meta-label,
  .caso-detail-meta-col .meta-value,
  .caso-detail-meta-col.meta-col-periodo .meta-periodo-year,
  .caso-detail-meta-col.meta-col-periodo .meta-periodo-status {
    font-size: 21px;
    line-height: 29px;
  }
}

@media (max-width: 1100px) {
  .casos-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .caso-card-item {
    height: 420px;
    flex: none !important;
  }
  .casos-cards-grid.has-expanded .caso-card-item.is-active {
    grid-column: span 2;
  }
  .caso-detail-carousel-wrapper {
    padding: 0 24px;
  }
}

@media (max-width: 992px) {
  .casos-main-container {
    padding: 30px 40px 60px;
  }
  .casos-gradient-bar {
    padding: 0 40px;
  }
  .casos-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .casos-tagline-wrap {
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
  }
  .casos-tagline-text {
    text-align: left;
  }
  .casos-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .casos-header-row-cliente {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .casos-title-wrap-right {
    order: 1;
    align-items: flex-start;
    text-align: left;
  }
  .casos-tagline-wrap-left {
    order: 2;
    align-items: flex-start;
    text-align: left;
  }
  .casos-cards-grid-cliente {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .casos-cards-grid.has-expanded .caso-card-item.is-active {
    grid-column: span 2;
  }
  .caso-detail-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 30px;
  }
  .caso-detail-meta-col.meta-col-periodo {
    align-items: flex-start;
    text-align: left;
  }
  .caso-detail-main-title {
    font-size: 32px;
    line-height: 42px;
  }
  .caso-detail-narrative {
    font-size: 19px;
    line-height: 28px;
  }
  .caso-detail-pane {
    padding: 0 20px;
  }
  .caso-detail-gal-card {
    flex: 0 0 300px;
  }
  .carousel-nav-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 600px) {
  .casos-top-spacer {
    height: 50px;
  }
  .casos-gradient-bar {
    height: 48px;
    padding: 0 20px;
  }
  .casos-bar-text {
    font-size: 19px;
  }
  .casos-main-container {
    padding: 24px 20px 50px;
    gap: 32px;
  }
  .casos-heading-title {
    font-size: 30px;
  }
  .casos-tagline-text {
    font-size: 17px;
    line-height: 22px;
  }
  .casos-cards-grid,
  .casos-cards-grid-cliente {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .caso-detail-pane {
    padding: 0 10px;
  }
  .casos-cards-grid.has-expanded .caso-card-item.is-active {
    grid-column: span 1;
  }
  .caso-card-item {
    height: 380px;
  }
  .caso-detail-gal-card {
    flex: 0 0 85vw;
  }
  .caso-detail-main-title {
    font-size: 26px;
    line-height: 34px;
  }
  .caso-detail-narrative {
    font-size: 17px;
    line-height: 25px;
  }
}

/* ==========================================================================
   11. SECCIÓN SOMOS CIRCO (FIGMA REDESIGN)
   Fondo degradado: linear-gradient(180deg, #4D80E7 0%, #BBB8D7 84.62%, #E0CAD2 100%)
   ========================================================================== */

.somos-circo-section {
  width: 100%;
  position: relative;
  background: linear-gradient(180deg, #4D80E7 0%, #4D80E7 35%, #9FB9EC 53%, #F2F2F2 60%, #F2F2F2 100%);
  padding: 160px 84px 120px;
  overflow: hidden;
  box-sizing: border-box;
}

.somos-circo-container {
  width: 100%;
  max-width: 1750px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Manifiesto Principal (100px) */
.somos-heading-wrap {
  width: 100%;
  margin-bottom: 50px;
}

.somos-main-title {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 100px);
  line-height: 0.93;
  letter-spacing: -0.02em;
  color: #F2F2F2;
  margin: 0;
  max-width: 1740px;
}

/* Párrafo Introductorio (20px) */
.somos-intro-wrap {
  width: 100%;
  margin-bottom: 75px;
}

.somos-intro-text {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.28;
  color: #F2F2F2;
  max-width: 857px;
  margin: 0;
}

/* Líneas Divisorias Vector 1 y 2 */
.somos-divider-line {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.55);
  margin: 50px 0;
}

/* Filas Misión y Visión (40px título / 20px texto a la derecha) */
.somos-statement-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 10px 0;
}

.somos-statement-label {
  flex-shrink: 0;
}

.somos-statement-label h3 {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(28px, 2.2vw, 40px);
  line-height: 50px;
  color: #F2F2F2;
  margin: 0;
}

.somos-statement-content {
  flex: 1;
  max-width: 853px;
}

.somos-statement-content p {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.28;
  color: #F2F2F2;
  margin: 0;
}

/* Bloque Equipo (Figma Design) */
.somos-equipo-block {
  margin-top: clamp(60px, 6.5vh, 90px);
  position: relative;
  width: 100%;
}

.somos-equipo-title {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(28px, 2.2vw, 40px);
  line-height: 50px;
  color: #4D80E7;
  margin: 0 0 clamp(20px, 2.5vh, 32px) 0;
}

/* Líneas Divisorias Azul #4D80E7 (Vector 3 y 4 de Figma) */
.somos-equipo-divider-line {
  width: 100%;
  height: 1px;
  background-color: #4D80E7;
  margin: 0 0 clamp(32px, 3.8vh, 50px) 0;
}

.somos-equipo-divider-bottom {
  margin: clamp(40px, 4.5vh, 60px) 0 0 0;
}

.somos-equipo-layout {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(40px, 5vw, 100px);
  width: 100%;
}

/* Arte cianotipo / espiral (Izquierda en Figma) */
.somos-equipo-art {
  flex: 0 0 clamp(320px, 31vw, 560px);
  max-width: 560px;
  aspect-ratio: 560 / 321;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.somos-equipo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Grilla de Integrantes (Derecha en Figma - 2 columnas de 3 personas) */
.somos-team-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  column-gap: clamp(30px, 4.5vw, 80px);
  row-gap: clamp(28px, 3.2vh, 46px);
  width: 100%;
  position: relative;
  z-index: 2;
}

.somos-member-card {
  display: flex;
  flex-direction: column;
}

.somos-member-name {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(20px, 1.35vw, 25px);
  line-height: 1.2;
  color: #4D80E7;
  margin: 0 0 4px 0;
}

.somos-member-role {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.25;
  color: #4D80E7;
  margin: 0 0 8px 0;
}

.somos-member-contact {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.35;
  color: #A9A9A9;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}

.somos-member-contact:hover {
  color: #4D80E7;
  text-decoration: underline;
}

.somos-member-phone {
  margin-top: 2px;
}

/* Responsive para Somos Circo */
@media (max-width: 1100px) {
  .somos-circo-section {
    padding: 110px 40px 80px;
  }
  .somos-equipo-layout {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 40px;
  }
  .somos-equipo-art {
    width: 100%;
    max-width: 560px;
  }
}

@media (max-width: 768px) {
  .somos-circo-section {
    padding: 80px 24px 60px;
  }
  .somos-statement-row {
    flex-direction: column;
    gap: 15px;
  }
  .somos-team-grid {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }
  .somos-divider-line {
    margin: 35px 0;
  }
}


/* ==========================================================================
   12. SECCIÓN CONTACTO (FIGMA REDESIGN - HABLEMOS)
   ========================================================================== */
.contacto-section {
  width: 100%;
  position: relative;
  background-color: #F2F2F2;
  min-height: 522px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(50px, 4.3vh, 83px) 0;
  box-sizing: border-box;
}

.contacto-bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.contacto-bg-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.contacto-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding-left: clamp(24px, 6.2vw, 119px);
  padding-right: clamp(24px, 6.25vw, 120px);
  box-sizing: border-box;
}

.contacto-layout-figma {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  width: 100%;
}

/* Columna Izquierda: Título y Subtítulo */
.contacto-left-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  max-width: 300px;
  flex-shrink: 0;
}

.contacto-main-title {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(32px, 2.08vw, 40px);
  line-height: 1.25;
  color: #4D80E7;
  margin: 0;
}

.contacto-subtitle {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(16px, 1.04vw, 20px);
  line-height: 1.4;
  color: #4D80E7;
  margin: 6px 0 0;
}

/* Columna Derecha: Formulario Figma */
.contacto-form-wrap {
  width: 100%;
  max-width: 538px;
  flex-shrink: 0;
}

.contacto-form-figma {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.contacto-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.contacto-field {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contacto-field-label {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 18px;
  letter-spacing: -0.01em;
  color: #4D80E7;
  margin-bottom: 7px;
  display: block;
}

.contacto-input-figma {
  box-sizing: border-box;
  width: 100%;
  height: 37px;
  padding: 9px 16px;
  background: transparent;
  border: 0.5px solid #4D80E7;
  border-radius: 7px;
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: #4D80E7;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contacto-input-figma::placeholder {
  color: rgba(77, 128, 231, 0.7);
  font-family: 'General Sans', sans-serif;
  font-size: 16px;
}

.contacto-input-figma:focus {
  background: rgba(255, 255, 255, 0.6);
  border-color: #4D80E7;
  box-shadow: 0 0 0 2px rgba(77, 128, 231, 0.2);
}

.contacto-textarea-figma {
  height: 119px;
  min-height: 119px;
  resize: none;
  line-height: 1.4;
  padding: 12px 16px;
}

/* Botón Enviar */
.contacto-btn-wrap {
  margin-top: 9px;
}

.btn-contacto-figma {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 161px;
  height: 34px;
  padding: 0;
  background: #4D80E7;
  border-radius: 9999px;
  border: none;
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-contacto-figma:hover {
  background: #3567cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(77, 128, 231, 0.35);
}

.contacto-feedback-msg {
  font-family: 'General Sans', sans-serif;
  color: #4D80E7;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
}

/* Responsive */
@media (max-width: 1440px) {
  .contacto-container {
    padding-left: clamp(30px, 4vw, 60px);
    padding-right: clamp(30px, 4vw, 60px);
  }
  .contacto-form-wrap {
    max-width: 440px;
  }
  .contacto-field-label {
    font-size: 16px;
    margin-bottom: 5px;
  }
  .contacto-input-figma {
    height: 35px;
    font-size: 15px;
  }
  .contacto-textarea-figma {
    height: 105px;
    min-height: 105px;
  }
  .btn-contacto-figma {
    width: 145px;
    height: 32px;
    font-size: 16px;
  }
}

@media (max-width: 1200px) {
  .contacto-container {
    padding-left: 32px;
    padding-right: 32px;
  }
  .contacto-form-wrap {
    max-width: 390px;
  }
  .contacto-main-title {
    font-size: 32px;
    line-height: 40px;
  }
  .contacto-subtitle {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 992px) {
  .contacto-section {
    min-height: auto;
    padding: 60px 0;
  }
  .contacto-layout-figma {
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
  }
  .contacto-form-wrap {
    max-width: 100%;
  }
  .contacto-bg-art {
    opacity: 0.25;
  }
}

@media (max-width: 580px) {
  .contacto-row-half {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}


