/* =========================================================
   COSMOPOLIS — GLOBAL PRESENCE
   Cards + Carousel (FINAL SYSTEM)
   ========================================================= */

/* =========================
   SECTION BASE
========================= */

.global-presence {
  padding: 160px 20px;
  background: radial-gradient(
    circle at top,
    rgba(255,255,255,0.04),
    rgba(0,0,0,0.95)
  );
  position: relative;
  overflow: hidden;
}

/* =========================
   TITLE
========================= */

.global-presence h2 {
  text-align: center;
  font-family: 'Playfair Display SC', serif;
  font-size: 3.2rem;
  letter-spacing: 4px;
  color: var(--royal-gold);
  margin-bottom: 70px;
}

/* =========================================================
   CAROUSEL STRUCTURE
   ========================================================= */

.global-presence-track {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 520px;
}

/* =========================================================
   SLIDES — STACKING FIX
   ========================================================= */

.global-presence-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 1;
  pointer-events: none;
}

.global-presence-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;

  z-index: 5;
  pointer-events: auto;
}

/* =========================================================
   NAVIGATION — ARROWS
   ========================================================= */

.global-presence-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.45);
  padding: 16px 22px;
  border-radius: 50px;
  color: var(--royal-gold);
  font-size: 1.7rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: 0.3s ease;
  z-index: 10;
}

.global-presence-arrow:hover {
  background: rgba(212,175,55,0.12);
  border-color: var(--light-gold);
  color: var(--light-gold);
  box-shadow:
    0 0 12px rgba(212,175,55,0.45),
    0 0 22px rgba(0,0,0,0.35);
}

.global-presence-arrow.prev { left: 8%; }
.global-presence-arrow.next { right: 8%; }

/* =========================================================
   DOTS
   ========================================================= */

.global-presence-dots {
  display: flex;
  justify-content: center;
  margin-top: 70px;
  gap: 14px;
}

.global-presence-dots span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(212,175,55,0.35);
  transition: 0.35s ease;
  cursor: pointer;
}

.global-presence-dots span.active {
  background: var(--royal-gold);
  border-color: var(--light-gold);
  box-shadow:
    0 0 8px rgba(212,175,55,0.65),
    0 0 14px rgba(212,175,55,0.4);
}

/* =========================================================
   PRESENCE CARD — SIN CAMBIOS
   ========================================================= */

.presence-card {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: 820px;
  padding: 60px 56px;
  border-radius: 22px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  border: 2px solid rgba(212,175,55,0.55);
  box-shadow:
    0 0 25px rgba(212,175,55,0.35),
    0 18px 55px rgba(0,0,0,0.85);

  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* IMAGE LAYER */
.presence-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: brightness(1.02) contrast(1.04) saturate(1.05);
  transform: scale(1.05);
  transition: transform 0.6s ease;
  z-index: 1;
}

/* FILTER */
.presence-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0.35) 50%,
      rgba(0,0,0,0.55) 100%
    ),
    radial-gradient(
      circle at top,
      rgba(212,175,55,0.08),
      rgba(0,0,0,0) 65%
    );
  z-index: 2;
}


/* CONTENT */
.presence-card * {
  position: relative;
  z-index: 3;
}

/* =========================================================
   TEXT — SOLO CENTRADO (ÚNICO AJUSTE)
   ========================================================= */

.presence-type {
  position: absolute;
  top: 28px;
  left: 0;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  color: var(--light-gold);
  text-shadow: 0 2px 6px rgba(0,0,0,0.55);
}

.presence-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  margin-bottom: 10px;
  color: var(--gold-premium);
  text-align: center; /* ← SOLO ESTO */
  text-shadow:
    0 2px 8px rgba(0,0,0,0.65),
    0 0 10px var(--gold-soft);
}

.presence-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--white-soft);
  opacity: 0.95;
  text-align: center; /* ← SOLO ESTO */
  text-shadow: 0 2px 6px rgba(0,0,0,0.65);
}

/* =========================================================
   HOVER — SIN CAMBIOS
   ========================================================= */

.presence-card:hover {
  transform: scale(1.01);
  box-shadow:
    0 0 40px rgba(212,175,55,0.65),
    0 22px 70px rgba(0,0,0,0.95);
}

.presence-card:hover::before {
  transform: scale(1.12);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {
  .presence-card {
    aspect-ratio: 4 / 5;
    padding: 42px 32px;
  }

  .presence-type {
    font-size: 0.72rem;
    top: 22px;
  }

  .presence-card h3 {
    font-size: 2.1rem;
  }

  .presence-card p {
    font-size: 1.05rem;
  }
}

/* =========================================================
   GLOBAL PRESENCE — MOBILE CLEANUP
   ========================================================= */

@media (max-width: 600px) {

  /* Ocultar dots en móvil */
  .global-presence-dots {
    display: none;
  }

  /* Reducir espacio inferior de la sección */
  .global-presence {
    padding-bottom: 5px; /* antes 160px */
  }
}

/* =========================================================
   GLOBAL PRESENCE — ARROW POSITION CONTROL (MOBILE)
   ========================================================= */

/* Flechas usan variables */
.global-presence-arrow {
  top: var(--arrow-vertical-position, 50%);
  transform: translateY(-50%);
}

/* Posición horizontal usando variables */
.global-presence-arrow.prev {
  left: var(--arrow-horizontal-position, 8%);
}

.global-presence-arrow.next {
  right: var(--arrow-horizontal-position, 8%);
}

/* Ajustes SOLO para móvil */
@media (max-width: 600px) {
  .global-presence {
    --arrow-vertical-position: 68%;   /* ↑ ↓ */
    --arrow-horizontal-position: 3%;  /* ← → */
  }
}
.presence-type.proverb {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: rgba(232, 228, 217, 0.9);
    opacity: 0.9;
    display: block;
    margin-bottom: 6px;
}
