@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@keyframes pulse {
  0%, 100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.7;
  }
}
@keyframes subtlePulse {
  0% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
  }
  100% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
@keyframes slideFromBottom {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideFromTop {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

ul,
ol {
  list-style: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

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

body {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #e8f4fd 0%, #f8fafc 100%);
}

html[dir=rtl] {
  direction: rtl;
}

body {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333333;
}

/* =========================================
   MENU TOGGLE (NO SE TOCA)
========================================= */
/* Botón Menu (esquina superior izquierda) */
.c-menu-toggle {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  padding: 0.4rem 0.6rem;
  font-family: inherit;
  color: #072540;
  cursor: pointer;
  transition: color 0.25s ease;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
}

.c-menu-toggle__icon {
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.c-menu-toggle__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.c-menu-toggle:hover,
.c-menu-toggle:focus-visible {
  color: #0a3d62;
}

.c-menu-toggle:hover .c-menu-toggle__icon,
.c-menu-toggle:focus-visible .c-menu-toggle__icon {
  transform: translateX(2px);
}

/* =========================================
   RTL SUPPORT – MENU TOGGLE (NO TOCAR)
========================================= */
html[dir=rtl] .c-menu-toggle {
  left: auto;
  right: 1.5rem;
}
html[dir=rtl] .c-menu-toggle:hover .c-menu-toggle__icon,
html[dir=rtl] .c-menu-toggle:focus-visible .c-menu-toggle__icon {
  transform: translateX(-2px);
}

/* =========================================
   MENU TOGGLE – RESPONSIVE (NO TOCAR)
========================================= */
@media (max-width: 1024px) {
  .c-menu-toggle {
    padding: 0.5rem 0.7rem;
  }
  .c-menu-toggle__icon {
    font-size: 1.5rem;
  }
  .c-menu-toggle__label {
    font-size: 1rem;
  }
}
@media (max-width: 640px) {
  .c-menu-toggle__icon {
    font-size: 1.5rem;
  }
  .c-menu-toggle__label {
    font-size: 1rem;
  }
}
@media (hover: none) and (pointer: coarse) {
  .c-menu-toggle {
    padding: 0.55rem 0.75rem;
  }
  .c-menu-toggle__icon {
    font-size: 1.6rem;
  }
  .c-menu-toggle__label {
    font-size: 1rem;
  }
}
/* =========================================
   MENU OVERLAY (ARREGLADO)
========================================= */
/* Overlay raíz */
.c-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.c-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Fondo clicable */
.c-menu-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Panel del menú (SOLO CONTENIDO) */
.c-menu-overlay__panel {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 90%;
  display: flex;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

/* Lista principal */
.c-menu-overlay__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.c-menu-overlay__list a {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}
.c-menu-overlay__list a:hover {
  opacity: 0.7;
}

/* Botón cerrar (ESQUINA SUPERIOR DERECHA DEL VIEWPORT) */
.c-menu-overlay__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Idiomas (ABAJO CENTRADOS) */
.c-menu-overlay__lang {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 1rem;
}
.c-menu-overlay__lang a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.c-menu-overlay__lang a:hover, .c-menu-overlay__lang a.active {
  color: #ffffff;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .c-menu-overlay {
    transition: none;
  }
}
.l-sections-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.c-progress-dots {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  pointer-events: auto;
}
@media (max-width: 768px) {
  .c-progress-dots {
    display: none;
  }
}

.c-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(26, 58, 95, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
}
.c-progress-dot.active, .c-progress-dot--active {
  background: #1a3a5f;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(26, 58, 95, 0.3);
}
.c-progress-dot:hover {
  background: #ff6b6b;
  transform: scale(1.2);
}
.c-progress-dot:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.c-progress-dot::after {
  content: attr(data-section);
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  background: #1a3a5f;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  pointer-events: none;
  text-transform: capitalize;
}
.c-progress-dot.debug {
  border: 1px solid red;
  background: yellow;
}

html[dir=rtl] .c-progress-dots {
  right: auto;
  left: 30px;
}

@media (max-width: 768px) {
  .c-progress-dots {
    display: none;
  }
}
/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background: #0a3d62;
  color: #ffffff;
}
.btn--primary:hover {
  background: rgb(7.1666666667, 43.7166666667, 70.2333333333);
  transform: translateY(-2px);
}

.s-section, .s-section-map, .s-section-partenaires, .s-section-filiales, .s-section-produits, .s-section-metieres, .s-section-projets, .s-section-chiffres, .s-section-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  padding-top: 0;
  padding-bottom: 0;
  padding-inline: 6vw;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .s-section, .s-section-map, .s-section-partenaires, .s-section-filiales, .s-section-produits, .s-section-metieres, .s-section-projets, .s-section-chiffres, .s-section-video {
    padding: 0 5%;
  }
}
@media (max-width: 768px) {
  .s-section, .s-section-map, .s-section-partenaires, .s-section-filiales, .s-section-produits, .s-section-metieres, .s-section-projets, .s-section-chiffres, .s-section-video {
    padding: 0 2rem;
  }
}

.s-section.active, .active.s-section-map, .active.s-section-partenaires, .active.s-section-filiales, .active.s-section-produits, .active.s-section-metieres, .active.s-section-projets, .active.s-section-chiffres, .active.s-section-video {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

.s-section__content {
  max-width: 100%;
  z-index: 2;
}

.s-section__title,
.s-section__subtitle,
.s-section__description {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.s-section.active .s-section__title, .active.s-section-map .s-section__title, .active.s-section-partenaires .s-section__title, .active.s-section-filiales .s-section__title, .active.s-section-produits .s-section__title, .active.s-section-metieres .s-section__title, .active.s-section-projets .s-section__title, .active.s-section-chiffres .s-section__title, .active.s-section-video .s-section__title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
.s-section.active .s-section__subtitle, .active.s-section-map .s-section__subtitle, .active.s-section-partenaires .s-section__subtitle, .active.s-section-filiales .s-section__subtitle, .active.s-section-produits .s-section__subtitle, .active.s-section-metieres .s-section__subtitle, .active.s-section-projets .s-section__subtitle, .active.s-section-chiffres .s-section__subtitle, .active.s-section-video .s-section__subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}
.s-section.active .s-section__description, .active.s-section-map .s-section__description, .active.s-section-partenaires .s-section__description, .active.s-section-filiales .s-section__description, .active.s-section-produits .s-section__description, .active.s-section-metieres .s-section__description, .active.s-section-projets .s-section__description, .active.s-section-chiffres .s-section__description, .active.s-section-video .s-section__description {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.s-section--dark {
  background: #1a1a2e;
  color: #ffffff;
}
.s-section--dark .s-section__title,
.s-section--dark .s-section__subtitle,
.s-section--dark .s-section__description {
  color: #ffffff;
}

.s-section--light {
  background: #ffffff;
}

.s-section--gradient-primary, .s-section-video {
  background: linear-gradient(135deg, #0a3d62 0%, #072540 100%);
  color: #ffffff;
}
.s-section--gradient-primary .s-section__title, .s-section-video .s-section__title,
.s-section--gradient-primary .s-section__subtitle,
.s-section-video .s-section__subtitle,
.s-section--gradient-primary .s-section__description,
.s-section-video .s-section__description {
  color: #ffffff;
}

html[dir=rtl] .s-section, html[dir=rtl] .s-section-map, html[dir=rtl] .s-section-partenaires, html[dir=rtl] .s-section-filiales, html[dir=rtl] .s-section-produits, html[dir=rtl] .s-section-metieres, html[dir=rtl] .s-section-projets, html[dir=rtl] .s-section-chiffres, html[dir=rtl] .s-section-video {
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .s-section__title,
  .s-section__subtitle,
  .s-section__description {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
@media (max-width: 768px) {
  html,
  body {
    height: auto;
    overflow-y: auto;
  }
  .l-sections-container {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .s-section, .s-section-map, .s-section-partenaires, .s-section-filiales, .s-section-produits, .s-section-metieres, .s-section-projets, .s-section-chiffres, .s-section-video {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    opacity: 1 !important;
    pointer-events: auto;
  }
  .s-section:not(.active), .s-section-map:not(.active), .s-section-partenaires:not(.active), .s-section-filiales:not(.active), .s-section-produits:not(.active), .s-section-metieres:not(.active), .s-section-projets:not(.active), .s-section-chiffres:not(.active), .s-section-video:not(.active) {
    opacity: 1;
  }
  .s-section__title,
  .s-section__subtitle,
  .s-section__description {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
@media (max-width: 768px) {
  .s-section-filiales__card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
.s-section-video__video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}
.s-section-video__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.s-section-video__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
}
.s-section-video__click-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  cursor: pointer;
  display: block;
  background: transparent;
  text-decoration: none;
}
.s-section-video__play-button {
  position: relative;
  z-index: 4;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.s-section-video__play-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
.s-section-video--auto-play .s-section-video__video {
  animation: fadeIn 1s ease-in;
}

.s-section-video::after {
  content: "↓ Découvrir";
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.15em;
  font-size: 12px;
  z-index: 4;
  animation: fadeMoveDown 2s infinite;
}

/* RTL */
html[dir=rtl] .s-section-video::after {
  content: "↑ Découvrir";
  animation: fadeMoveUp 2s infinite;
}

/* Animaciones separadas */
@keyframes fadeMoveDown {
  0% {
    opacity: 0;
    transform: translate(-50%, -5px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}
@keyframes fadeMoveUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 5px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}
.s-section-president__layout {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4vw;
}
.s-section-president__media {
  flex: 0 0 40%;
}
.s-section-president__image {
  width: 100%;
  height: auto;
  display: block;
  padding: 2rem;
}
.s-section-president__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}
.s-section-president__title {
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.s-section-president {
  /* 🔑 ÚNICO SCROLL */
}
.s-section-president__scroll {
  flex: 1;
  overflow-y: auto;
}
.s-section-president {
  /* ======================
     TABLET & TOUCH
     ====================== */
}
@media (hover: none) and (pointer: coarse) {
  .s-section-president__layout {
    padding-block: 6vh;
  }
  .s-section-president__scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}
.s-section-president {
  /* ======================
     MOBILE
     ====================== */
}
@media (max-width: 768px) {
  .s-section-president__layout {
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
  }
  .s-section-president__media {
    width: 65%;
  }
  .s-section-president__scroll {
    max-height: 45vh;
  }
}

@media (max-width: 768px) {
  .s-section-president__layout {
    height: auto;
  }
}
.s-section-chiffres {
  background: linear-gradient(135deg, #072540, #0a3d62);
  display: flex;
  align-items: center;
  padding: 3rem 1.5rem;
  color: #ffffff;
  /* ================= CONTENT ================= */
}
.s-section-chiffres .s-section__content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.s-section-chiffres .s-section__title {
  color: #e8f4fd;
  text-align: center;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.s-section-chiffres .s-section__subtitle {
  color: rgba(232, 244, 253, 0.75);
  text-align: center;
  font-weight: 300;
  margin-bottom: 3rem;
}
.s-section-chiffres {
  /* ================= GRID ================= */
}
.s-section-chiffres__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.s-section-chiffres {
  /* ================= ITEM ================= */
}
.s-section-chiffres__item {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  /* 🔑 LAYOUT VERTICAL JERÁRQUICO */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 8px rgba(10, 61, 98, 0.1);
  transform: translateZ(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}
.s-section-chiffres__item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(10, 61, 98, 0.1);
}
.s-section-chiffres__item {
  /* ----- VALUE (PRIORIDAD 1) ----- */
}
.s-section-chiffres__item .value {
  order: 1;
  display: inline-flex;
  gap: 0.35em;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}
.s-section-chiffres__item .unit {
  font-size: 0.85em;
  opacity: 0.85;
  white-space: nowrap;
}
.s-section-chiffres__item {
  /* ----- ICON (PRIORIDAD 2) ----- */
}
.s-section-chiffres__item i {
  order: 2;
  font-size: 1.5rem;
  color: #6ab2f2;
  margin: 0.25rem 0;
  opacity: 0.9;
}
.s-section-chiffres__item {
  /* ----- LABEL (PRIORIDAD 3) ----- */
}
.s-section-chiffres__item .label {
  order: 3;
  display: block;
  font-size: 0.95rem;
  color: rgba(232, 244, 253, 0.85);
  margin-top: 0.25rem;
}
.s-section-chiffres__item {
  /* ----- TOOLTIP ----- */
}
.s-section-chiffres__item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1a1a2e;
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(10, 61, 98, 0.1);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  z-index: 2;
}
.s-section-chiffres__item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.s-section-chiffres {
  /* ================= ACTIVE ================= */
}
.s-section-chiffres.active .s-section-chiffres__item {
  animation: popIn 0.5s ease-out both;
}
.s-section-chiffres {
  /* ================= RTL / NUMBERS ================= */
}
.s-section-chiffres .value,
.s-section-chiffres .label, .s-section-chiffres__item::after {
  direction: ltr;
  unicode-bidi: isolate;
}

/* =========================================================
   RESPONSIVE
========================================================= */
/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .s-section-chiffres__items {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ---------- Mobile ---------- */
@media (max-width: 576px) {
  .s-section-chiffres {
    padding: 2rem 1rem;
  }
  .s-section-chiffres .s-section__title {
    font-size: 2rem;
  }
  .s-section-chiffres .s-section__subtitle {
    margin-bottom: 1.5rem;
  }
  .s-section-chiffres__items {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .s-section-chiffres__item {
    padding: 1rem 0.5rem;
  }
  .s-section-chiffres__item .value {
    font-size: 1.2rem;
    gap: 0.25em;
  }
  .s-section-chiffres__item i {
    font-size: 1.2rem;
    margin: 0.25rem 0;
  }
  .s-section-chiffres__item .label {
    font-size: 0.75rem;
  }
}
.s-section-projets {
  background: linear-gradient(135deg, #e8f4fd 0%, #ffffff 100%);
  overflow: hidden;
}
.s-section-projets .s-section__content {
  text-align: center;
  /* 🔑 RESPIRACIÓN SUPERIOR */
  padding-top: 6vh;
  padding-bottom: 2vh;
}
.s-section-projets__title {
  color: #072540;
  font-size: 2.5rem;
}
.s-section-projets__subtitle {
  color: #6c757d;
  font-size: 1.2rem;
  padding-bottom: 2vh;
}
.s-section-projets__carousel {
  direction: ltr;
  width: 100%;
  max-width: 1400px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  padding: 0 2rem;
}
.s-section-projets__projects-container {
  direction: ltr;
  display: flex;
  gap: 2rem;
  animation: scrollProjects 40s linear infinite;
  padding: 1.5rem 0;
  width: max-content;
  unicode-bidi: isolate;
}
.s-section-projets__project-card-link {
  flex: 0 0 320px;
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
}
.s-section-projets__project-card-link:hover .s-section-projets__project-card, .s-section-projets__project-card-link:focus .s-section-projets__project-card {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 24px rgba(10, 61, 98, 0.1);
}
.s-section-projets__project-card-link:hover .s-section-projets__project-card .s-section-projets__image, .s-section-projets__project-card-link:focus .s-section-projets__project-card .s-section-projets__image {
  transform: scale(1.1);
}
.s-section-projets__project-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(10, 61, 98, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  /* 🔑 ALTURA ADAPTATIVA */
  height: clamp(500px, 55vh, 520px);
}
.s-section-projets__image-container {
  position: relative;
  width: 100%;
  /* 🔑 PROPORCIÓN ESTABLE */
  height: 42%;
  overflow: hidden;
  border-bottom: 3px solid #3a8ecf;
  flex-shrink: 0;
}
.s-section-projets__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s ease;
}
.s-section-projets__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(7, 37, 64, 0.3) 100%);
}
.s-section-projets__project-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.s-section-projets__project-title {
  font-size: 1.3rem;
  color: #072540;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.s-section-projets__project-description {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.s-section-projets__project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-top: auto;
}
.s-section-projets__project-category {
  background: rgba(58, 142, 207, 0.1);
  color: #3a8ecf;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.s-section-projets__project-card-link:hover .s-section-projets__project-category {
  background: rgba(58, 142, 207, 0.2);
}
.s-section-projets__project-year {
  color: #6c757d;
}
.s-section-projets__controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
  pointer-events: none;
  z-index: 2;
}
.s-section-projets__control-btn {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a3d62;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 8px rgba(10, 61, 98, 0.1);
}
.s-section-projets__control-btn:hover {
  background: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(10, 61, 98, 0.1);
}
.s-section-projets__control-btn--prev {
  transform: translateX(-20px);
}
.s-section-projets__control-btn--prev:hover {
  transform: translateX(-20px) scale(1.1);
}
.s-section-projets__control-btn--next {
  transform: translateX(20px);
}
.s-section-projets__control-btn--next:hover {
  transform: translateX(20px) scale(1.1);
}
@keyframes scrollProjects {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1920px - 12rem));
  }
}
@media (max-width: 1024px) {
  .s-section-projets__project-card {
    height: clamp(360px, 60vh, 480px);
  }
  .s-section-projets__project-card-link {
    flex: 0 0 280px;
  }
  .s-section-projets__image-container {
    height: 180px;
  }
  @keyframes scrollProjects {
    100% {
      transform: translateX(calc(-1680px - 12rem));
    }
  }
}
@media (max-width: 768px) {
  .s-section-projets__title {
    padding-top: 10vh;
    font-size: 3rem;
  }
  .s-section-projets__subtitle {
    padding-bottom: 5vh;
  }
  .s-section-projets__project-card {
    height: clamp(400px, 60vh, 480px);
  }
  .s-section-projets__carousel {
    padding: 0 1.5rem;
  }
  .s-section-projets__project-card-link {
    flex: 0 0 320px;
  }
  .s-section-projets__projects-container {
    gap: 1.5rem;
  }
  .s-section-projets__image-container {
    height: 160px;
  }
  .s-section-projets__project-title {
    font-size: 1.1rem;
  }
  .s-section-projets__control-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .s-section-projets__control-btn--prev {
    transform: translateX(-10px);
  }
  .s-section-projets__control-btn--prev:hover {
    transform: translateX(-10px) scale(1.1);
  }
  .s-section-projets__control-btn--next {
    transform: translateX(10px);
  }
  .s-section-projets__control-btn--next:hover {
    transform: translateX(10px) scale(1.1);
  }
  @keyframes scrollProjects {
    100% {
      transform: translateX(calc(-1500px - 9rem));
    }
  }
}
@media (max-width: 576px) {
  .s-section-projets__title {
    padding-top: 5vh;
    font-size: 2rem;
  }
  .s-section-projets__subtitle {
    padding-bottom: 0vh;
  }
  .s-section-projets__project-card {
    height: clamp(360px, 60vh, 480px);
  }
  .s-section-projets__project-card-link {
    flex: 0 0 220px;
  }
  .s-section-projets__image-container {
    height: 140px;
  }
  .s-section-projets__project-info {
    padding: 1rem;
  }
  .s-section-projets__controls {
    display: none;
  }
  @keyframes scrollProjects {
    100% {
      transform: translateX(calc(-1320px - 9rem));
    }
  }
}

.s-section-metieres {
  background: radial-gradient(ellipse at 20% 20%, rgba(23, 85, 150, 0.3) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(0, 180, 216, 0.2) 0%, transparent 50%), linear-gradient(135deg, #0a1929 0%, #112240 50%, #0a1e35 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.s-section-metieres .s-section__content {
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.s-section-metieres .s-section__title {
  color: #ffffff;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
  .s-section-metieres .s-section__title {
    font-size: 2.2rem;
  }
}
.s-section-metieres .s-section__subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  margin-bottom: 4rem;
  font-weight: 300;
}
@media (max-width: 768px) {
  .s-section-metieres .s-section__subtitle {
    font-size: 1rem;
    margin-bottom: 3rem;
  }
}
.s-section-metieres__container {
  position: relative;
  width: 100%;
  height: 500px;
  margin: 0 auto;
}
.s-section-metieres__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
  z-index: 5;
  animation: floatCenter 4s ease-in-out infinite;
}
.s-section-metieres__center-text {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.s-section-metieres__center-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 300;
}
.s-section-metieres__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 140px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  text-decoration: none;
  color: white;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  z-index: 3;
}
.s-section-metieres__card:hover {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.1);
  z-index: 10;
}
.s-section-metieres__card .material-symbols-rounded {
  font-size: 2.5rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}
.s-section-metieres__card-text {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.s-section-metieres__card.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.s-section-metieres__card {
  animation: floatCard 3s ease-in-out infinite;
}
@media (max-width: 768px) {
  .s-section-metieres__card {
    width: 120px;
    height: 120px;
    padding: 12px;
  }
  .s-section-metieres__card .material-symbols-rounded {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  .s-section-metieres__card-text {
    font-size: 0.85rem;
  }
}
@keyframes floatCenter {
  0%, 100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 10px));
  }
}
@keyframes floatCard {
  0%, 100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 8px));
  }
}

@media (max-width: 768px) {
  .s-section-metieres {
    align-items: flex-start;
  }
  .s-section-metieres .s-section-metieres__card {
    position: relative;
    top: auto;
    left: auto;
    transform: none !important;
    opacity: 1;
    animation: none;
  }
  .s-section-metieres .s-section-metieres__container {
    padding-top: 250px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
  }
  .s-section-metieres__center {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 180px;
    height: 180px;
    animation: none;
  }
}
.s-section-produits {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  /* 🔑 CLAVE: NO centrar verticalmente */
  display: block;
  /* 🔑 permitir scroll interno */
  overflow-y: auto;
  /* seguridad */
  min-height: 100%;
}
.s-section-produits .s-section__content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 2rem;
  position: relative;
  z-index: 2;
}
.s-section-produits .s-section__title {
  color: #1a3a5f;
  font-size: 2.8rem;
  font-weight: 700;
}
.s-section-produits .s-section__subtitle {
  color: #6c757d;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  font-weight: 300;
}
.s-section-produits {
  /* ---------- GRID ---------- */
}
.s-section-produits__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}
.s-section-produits {
  /* ---------- CARD ---------- */
}
.s-section-produits__card {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  /* 🔑 visible por defecto */
  opacity: 1;
  transform: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.s-section-produits__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.s-section-produits__card:hover .s-section-produits__desc {
  opacity: 1;
  transform: translateY(0);
}
.s-section-produits {
  /* ---------- IMAGE ---------- */
}
.s-section-produits__image-container {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.s-section-produits__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s-section-produits {
  /* ---------- OVERLAY ---------- */
}
.s-section-produits__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(26, 58, 95, 0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.s-section-produits .s-section-produits__card:hover .s-section-produits__overlay,
.s-section-produits .s-section-produits__card:active .s-section-produits__overlay,
.s-section-produits .s-section-produits__card:focus-within .s-section-produits__overlay {
  background: linear-gradient(to bottom, transparent 20%, rgba(26, 58, 95, 0.9) 100%);
}
.s-section-produits__title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.s-section-produits__desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.s-section-produits {
  /* ---------- LOADER ---------- */
}
.s-section-produits__loader {
  display: none;
  margin-top: 3rem;
  text-align: center;
  color: #6c757d;
}

/* Laptop / Tablet horizontal */
@media (max-width: 1280px) {
  .s-section-produits .s-section__content {
    margin-top: 40px;
  }
  .s-section-produits__container {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Móvil */
@media (max-width: 768px) {
  .s-section-produits .s-section__title {
    font-size: 1.8rem;
    font-weight: 700;
  }
  .s-section-produits .s-section__content {
    margin-top: 50px;
    padding: 1rem 1rem;
  }
  .s-section-produits__container {
    grid-template-columns: repeat(1, 1fr);
    gap: 1.2rem;
  }
  .s-section-produits__image-container {
    height: 180px;
  }
  .s-section-produits__title {
    font-size: 1rem;
  }
  .s-section-produits__desc {
    font-size: 0.8rem;
  }
  .s-section-produits__card:active .s-section-produits__desc,
  .s-section-produits__card:focus-within .s-section-produits__desc {
    opacity: 1;
    transform: translateY(0);
  }
}
.s-section-filiales {
  /* 🔑 CLAVE */
  display: block;
  overflow-y: auto;
  background: linear-gradient(135deg, #0a192f 0%, #1a365d 50%, #2d3748 100%);
  padding: 80px 20px;
}
.s-section-filiales::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15), transparent 50%), radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1), transparent 50%);
  z-index: 0;
}
.s-section-filiales .s-section__content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}
.s-section-filiales {
  /* ================= HEADER ================= */
}
.s-section-filiales .s-section__header {
  text-align: center;
  margin-bottom: 60px;
}
.s-section-filiales .s-section__title {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}
.s-section-filiales .s-section__divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  margin: 15px auto 20px;
  border-radius: 2px;
}
.s-section-filiales .s-section__subtitle {
  font-size: 1.3rem;
  color: #cbd5e1;
}
.s-section-filiales .s-section__description {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 10px auto 0;
}
.s-section-filiales {
  /* ================= GRID ================= */
}
.s-section-filiales__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.s-section-filiales {
  /* ================= CARD ================= */
}
.s-section-filiales__card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
  height: 300px;
}
.s-section-filiales {
  /* 🔑 ACTIVACIÓN POR ESTADO */
}
.s-section-filiales.active .s-section-filiales__card {
  opacity: 1;
  transform: translateY(0);
}
.s-section-filiales__card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.s-section-filiales__card-content {
  height: 100%;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.s-section-filiales__card-link:hover .s-section-filiales__card-content {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.s-section-filiales {
  /* ================= LOGO ================= */
}
.s-section-filiales__card-logo {
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
}
.s-section-filiales__card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.s-section-filiales {
  /* ================= TEXT ================= */
}
.s-section-filiales__card-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.s-section-filiales__card-subtitle {
  color: #cbd5e1;
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 768px) {
  .s-section-filiales .s-section__header {
    margin-bottom: 10px;
  }
  .s-section-filiales .s-section__title {
    font-size: 1.5rem;
  }
  .s-section-filiales .s-section__subtitle {
    font-size: 1rem;
  }
  .s-section-filiales .s-section__description {
    display: none;
  }
  .s-section-filiales .s-section__divider {
    display: none;
  }
  .s-section-filiales__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .s-section-filiales__card {
    height: auto;
  }
  .s-section-filiales__card-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 5px;
  }
  .s-section-filiales__card-title {
    font-size: 1.1rem;
  }
  .s-section-filiales__card-subtitle {
    font-size: 0.8rem;
  }
  .s-section-filiales__card-content {
    padding: 5px 5px;
  }
}
.s-section-partenaires {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  /* 🔑 CLAVE 1: NO centrar verticalmente */
  display: block;
  /* 🔑 CLAVE 2: permitir scroll interno */
  overflow-y: auto;
  /* 🔑 CLAVE 3: seguridad para secciones absolutas */
  min-height: 100%;
  /* ==========================
     CONTENT
  ========================== */
}
.s-section-partenaires .s-section__content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem; /* 🔑 padding VA AQUÍ */
  position: relative;
  z-index: 2;
  text-align: center;
}
.s-section-partenaires .s-section__title {
  color: #1a3a5f;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.s-section-partenaires .s-section__subtitle {
  color: #6c757d;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  font-weight: 300;
}
.s-section-partenaires {
  /* ==========================
     COUNTER
  ========================== */
}
.s-section-partenaires__counter {
  display: inline-block;
  margin-bottom: 2.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  background: rgba(26, 58, 95, 0.08);
  font-size: 0.95rem;
}
.s-section-partenaires__counter .count {
  font-weight: 700;
  margin-right: 4px;
}
.s-section-partenaires {
  /* ==========================
     SEARCH
  ========================== */
}
.s-section-partenaires__search {
  max-width: 420px;
  margin: 0 auto 3.5rem;
  position: relative;
}
.s-section-partenaires__search input {
  width: 100%;
  padding: 0.7rem 1.2rem 0.7rem 3rem;
  border-radius: 30px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}
.s-section-partenaires__search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}
.s-section-partenaires {
  /* ==========================
     GRID (MISMO PATRÓN QUE PRODUITS)
  ========================== */
}
.s-section-partenaires__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.2rem;
  width: 100%;
}
.s-section-partenaires {
  /* ==========================
     ITEM
  ========================== */
}
.s-section-partenaires__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #ffffff;
  border-radius: 14px;
  /* 🔑 visible por defecto */
  opacity: 1;
  transform: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.s-section-partenaires__item:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 2;
}
.s-section-partenaires {
  /* ==========================
     LOGO
  ========================== */
}
.s-section-partenaires__item-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.s-section-partenaires {
  /* ==========================
     TOOLTIP
  ========================== */
}
.s-section-partenaires__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #1a3a5f;
  color: white;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.s-section-partenaires__item:hover .s-section-partenaires__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .s-section-partenaires__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .s-section-partenaires__item {
    height: 100px;
  }
}
@media (max-width: 480px) {
  .s-section-partenaires__container {
    grid-template-columns: repeat(4, 1fr);
  }
  .s-section-partenaires__item {
    height: 60px;
  }
  .s-section-partenaires .s-section__title {
    font-size: 1.8rem;
  }
  .s-section-partenaires .s-section__subtitle {
    font-size: 0.9rem;
  }
}
.s-section-contact {
  /* ================= CONTENT ================= */
}
.s-section-contact .s-section__content {
  max-width: 1300px;
  margin: 0 auto;
  padding: clamp(48px, 6vh, 80px) 1.5rem;
  display: flex;
  flex-direction: column;
}
.s-section-contact .s-section__title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 6px;
}
@media (max-width: 480px) {
  .s-section-contact .s-section__title {
    margin-top: 40px;
  }
}
.s-section-contact .s-section__subtitle {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  opacity: 0.8;
}
.s-section-contact {
  /* ================= GRID ================= */
}
.s-section-contact__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}
@media (max-width: 992px) {
  .s-section-contact__container {
    grid-template-columns: 1fr;
  }
}
.s-section-contact {
  /* ================= LEFT – SITES ================= */
}
.s-section-contact__info {
  display: grid;
  gap: 20px;
}
.s-section-contact__card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.s-section-contact__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.s-section-contact__card-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.s-section-contact__card-header i {
  font-size: 1.1rem;
  color: #0a3d62;
  background: rgba(10, 61, 98, 0.12);
  padding: 10px;
  border-radius: 12px;
}
.s-section-contact__card-header h3 {
  font-size: 1rem;
  margin: 0;
}
.s-section-contact__card-header span {
  font-size: 0.75rem;
  opacity: 0.7;
}
.s-section-contact__card-content {
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 10px;
}
.s-section-contact__card-details {
  display: grid;
  gap: 6px;
}
.s-section-contact__card-details .detail {
  font-size: 0.8rem;
  opacity: 0.9;
}
.s-section-contact__card-details .detail a {
  color: inherit;
  text-decoration: underline;
}
.s-section-contact {
  /* ================= RIGHT – CTA ================= */
}
.s-section-contact__cta {
  background: linear-gradient(135deg, #072540, #0a3d62);
  border-radius: 20px;
  padding: clamp(28px, 4vh, 40px);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
@media (max-width: 992px) {
  .s-section-contact__cta {
    display: none;
    order: -1;
  }
}
.s-section-contact__cta-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-section-contact__cta-icon i {
  font-size: 1.4rem;
}
.s-section-contact__cta-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.s-section-contact__cta-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  opacity: 0.95;
}
.s-section-contact__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #ffffff;
  color: #0a3d62;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.s-section-contact__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.s-section-contact__cta-btn i {
  font-size: 0.9rem;
}
.s-section-contact__cta-note {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 14px;
}

html[dir=rtl] .s-section-contact__card-header {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir=rtl] .s-section-contact__card-details .detail {
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
}

html[dir=rtl] .s-section-contact__cta {
  text-align: right;
}

.s-section-map {
  background: linear-gradient(135deg, #0a1929 0%, #0e223a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-section-map .s-section__content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-section-map {
  /* ================= WINDOW ================= */
}
.s-section-map__window {
  width: min(65vw, 1400px);
  height: min(80vh, 800px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-section-map {
  /* ================= PLACEHOLDER ================= */
}
.s-section-map__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #f1f3f5, #f1f3f5 10px, #e9ecef 10px, #e9ecef 20px);
  color: #6c757d;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.s-section-map {
  /* ================= RESPONSIVE ================= */
}
@media (max-width: 768px) {
  .s-section-map__window {
    width: 92vw;
    height: 72vh;
    border-radius: 14px;
  }
}

#cesiumContainer {
  width: 100%;
  height: 100%;
  background: #000;
}

.cesium-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 30;
  display: flex;
  gap: 8px;
}
.cesium-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.cesium-controls button:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* ===============================
   OVERLAY
=============================== */
#projectPanel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  /* Glass overlay */
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.35) 0%, rgba(8, 15, 25, 0.55) 70%, rgba(8, 15, 25, 0.75) 100%);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

#projectPanel.is-open {
  display: flex;
}

/* ===============================
   MODAL
=============================== */
.project-modal {
  position: relative;
  width: min(92vw, 1200px);
  height: min(60vh, 500px);
  background: #0b1220;
  color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 62% 38%;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

/* ===============================
   IMAGE
=============================== */
.project-modal__media {
  width: 100%;
  height: 100%;
  background: #000;
}

.project-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===============================
   CONTENT
=============================== */
.project-modal__content {
  padding: 20px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Meta */
.project-modal__meta {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.project-modal__meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

#panelTitle,
#panelBody {
  grid-column: 2;
}

#panelTitle {
  padding: 5px 5px 0;
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
}

#panelBody {
  padding: 0 40px 36px;
  overflow-y: auto;
}

/* ===============================
   ACTIONS
=============================== */
.project-modal__actions {
  margin-top: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

/* ===============================
   CLOSE
=============================== */
#panelClose {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 768px) {
  .project-modal {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 92vh;
  }
  .project-modal__media {
    height: 38vh;
  }
  .project-modal__content {
    padding: 22px;
  }
  #panelTitle {
    font-size: 1.6rem;
  }
}
.cesium-tooltip {
  display: none !important;
}

.project-usine {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.project-usine__meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.project-usine__meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.project-usine__description {
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.project-irrigation {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.project-irrigation__meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.project-irrigation__meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.project-irrigation__description {
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e1;
}
.project-irrigation__key {
  margin-top: 6px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
  font-weight: 600;
  color: #bbf7d0;
}

.project-aep {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.project-aep__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.project-aep__meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.project-aep__meta .status {
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  font-weight: 600;
}
.project-aep__description {
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e1;
}
.project-aep__key {
  margin-top: 6px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.12));
  font-weight: 600;
  color: #dbeafe;
}

.map-legend-floating {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 25;
  min-width: 200px;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-size: 0.9rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.map-legend-floating h4 {
  margin: 0 0 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
}
.map-legend-floating ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.map-legend-floating li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot--step {
  background: cyan;
}

.dot--usine {
  background: #22c55e;
}

.dot--aep {
  background: #f97316;
}

.dot--amenagement {
  background: #eab308;
}

.dot--irrigation {
  background: #22c55e; /* mismo verde que usas en Cesium */
}

.map-legend-floating li {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.map-legend-floating li.is-active,
.map-legend-floating li:hover {
  opacity: 1;
}

/*# sourceMappingURL=main.css.map */
