/* ============================================
   RIU REPÚBLICA 2026 — CARIBBEAN THEME
   ============================================ */

/* ── Variables ── */
:root {
  --ocean:    #006994;
  --ocean-lt: #00B4D8;
  --teal:     #0077B6;
  --coral:    #FF6B35;
  --sand:     #F5E6C8;
  --sun:      #FFD166;
  --lime:     #06D6A0;
  --palm:     #2D6A4F;
  --white:    #ffffff;
  --glass:    rgba(255,255,255,0.12);
  --glass-b:  rgba(0,105,148,0.25);
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== PARTICLES BG ===== */
.bg-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ── Beach background ── */
.beach-bg {
  position: fixed;
  inset: -12px;
  z-index: -2;
  background-image: url('beachDesktop.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(10px);
}

@media (max-width: 768px) {
  .beach-bg {
    background-image: url('beachmobile.jpg');
  }
}

.beach-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0,40,80,0.55) 0%,
    rgba(0,80,120,0.45) 40%,
    rgba(0,60,90,0.60) 100%
  );
}

/* ── Decorative GIFs ── */
.deco-gif {
  position: fixed;
  bottom: 0;
  width: 120px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 0 8px rgba(0,180,216,0.3));
}

.deco-gif--l, .deco-gif--left  { left: -20px; }
.deco-gif--r, .deco-gif--right { right: -20px; transform: scaleX(-1); }

@media (max-width: 480px) {
  .deco-gif { width: 70px; }
}

/* ── Bubbles ── */
.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.35), rgba(0,180,216,0.1));
  border: 1px solid rgba(255,255,255,0.25);
  animation: rise linear infinite;
}

@keyframes rise {
  0%   { transform: translateY(0) scale(1);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) scale(1.2); opacity: 0; }
}

/* ═══════════════════════════════════
   MAIN
═══════════════════════════════════ */
main {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
  text-align: center;
  padding: 52px 0 0;
}

.hero-chip {
  display: inline-block;
  background: rgba(0,180,216,0.25);
  border: 1px solid rgba(0,180,216,0.4);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.title {
  font-family: 'Pacifico', cursive;
  font-size: 3rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #FFD700, #FF914D, #FF5FA0);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  text-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(255,145,77,0.5));
  margin-bottom: 0;
}

.title-sub {
  font-family: 'Pacifico', cursive;
  font-size: 1.6rem;
  background: linear-gradient(135deg, #06D6A0, #00B4D8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(6,214,160,0.4));
  margin-bottom: 10px;
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
}

/* ── Countdown — aesthetic glass pill ── */
.countdown {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 28px auto 20px;
  background: rgba(4, 12, 32, 0.52);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 36px;
  padding: 24px 26px;
  box-shadow:
    0 28px 70px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 0 1px rgba(0,180,216,0.06);
  position: relative;
  overflow: hidden;
  min-width: min(340px, 92vw);
}

.countdown::before {
  content: '';
  position: absolute;
  top: -60%; left: -20%;
  width: 140%; height: 220%;
  background: conic-gradient(
    from 0deg at 50% 30%,
    rgba(0,180,216,0.07) 0deg,
    rgba(255,145,77,0.06) 120deg,
    rgba(6,214,160,0.07) 240deg,
    rgba(0,180,216,0.07) 360deg
  );
  animation: conicSpin 14s linear infinite;
  pointer-events: none;
}

@keyframes conicSpin {
  to { transform: rotate(360deg); }
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

@keyframes secPulse {
  0%   { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.time-value {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(170deg, #ffffff 0%, #ffe98a 55%, var(--sun) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  filter: drop-shadow(0 3px 12px rgba(255,209,102,0.4));
  transition: filter 0.2s;
}

.time-label {
  display: block;
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.32);
  margin-top: 9px;
  font-weight: 600;
}

.time-sep {
  font-size: 2.2rem;
  font-weight: 200;
  color: rgba(0,180,216,0.4);
  animation: blink 1s step-end infinite;
  line-height: 1;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  letter-spacing: -2px;
}

@keyframes blink { 50% { opacity: 0; } }

.date-ref {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  margin-bottom: 30px;
}

/* ── Wave separator ── */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: 10px;
}

.wave-divider svg { display: block; width: 100%; height: 60px; }

.gif-waves {
  text-align: center;
  margin: 10px 0;
}
.gif-waves img {
  width: min(280px, 90%);
  border-radius: 12px;
  opacity: 0.75;
}

/* ═══════════════════════════════════
   SECTION HELPERS
═══════════════════════════════════ */
.section-chip {
  display: inline-block;
  background: rgba(6,214,160,0.2);
  border: 1px solid rgba(6,214,160,0.4);
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 30px;
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.section-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

/* ═══════════════════════════════════
   CAROUSEL
═══════════════════════════════════ */
.section-fights {
  text-align: center;
  padding: 30px 0 10px;
}

.carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-top: 16px;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.car-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 30px;
  box-sizing: border-box;
}

.car-slide img {
  width: auto;
  max-width: 100%;
  max-height: 70vh;
  border-radius: 16px;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.55),
    0 0 0 2px rgba(255,255,255,0.08);
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* Buttons */
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,180,216,0.3);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.car-btn:hover {
  background: rgba(0,180,216,0.6);
  transform: translateY(-50%) scale(1.1);
}

.car-btn--prev { left: 6px; }
.car-btn--next { right: 6px; }

/* Dots */
.car-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  padding-bottom: 4px;
}

.car-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.car-dot--active {
  background: var(--lime);
  transform: scale(1.35);
}

/* ═══════════════════════════════════
   CHECKLIST
═══════════════════════════════════ */
.checklist-section {
  padding-top: 30px;
}

/* ── Accordion ── */
.accordion {
  margin-bottom: 12px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,119,182,0.2), rgba(0,105,148,0.15));
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: rgba(255,255,255,0.06);
}

.acc-icon { font-size: 1.2rem; }

.acc-title {
  flex: 1;
  text-align: left;
}

.acc-count {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.12);
  padding: 2px 10px;
  border-radius: 20px;
  transition: background 0.3s, color 0.3s;
}

.acc-arrow {
  font-size: 0.65rem;
  transition: transform 0.3s;
  color: rgba(255,255,255,0.4);
}

.accordion-header.open .acc-arrow { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
}

.accordion-body.open {
  max-height: 700px;
  padding: 4px 20px 16px;
}

/* ── Check items ── */
.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: opacity 0.3s;
  user-select: none;
  -webkit-user-select: none;
}

.check-item:last-child { border-bottom: none; }

.check-item input[type="checkbox"] { display: none; }

.checkmark {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s;
  position: relative;
}

.checkmark::after {
  content: '✓';
  font-size: 14px;
  color: #003d4d;
  font-weight: 800;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s;
}

.check-item input:checked ~ .checkmark {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 14px rgba(6,214,160,0.5);
}

.check-item input:checked ~ .checkmark::after {
  opacity: 1;
  transform: scale(1);
}

.check-item input:checked ~ .item-text {
  text-decoration: line-through;
  opacity: 0.45;
}

.item-text {
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.3s;
}

.item-text em {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ── Reset button ── */
.reset-btn {
  display: block;
  margin: 28px auto 0;
  background: rgba(255,60,60,0.12);
  border: 1px solid rgba(255,60,60,0.35);
  color: #ff8080;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 30px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.reset-btn:hover {
  background: rgba(255,60,60,0.28);
  transform: scale(1.04);
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px 0 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-gif {
  width: 100%;
  max-width: 340px;
  border-radius: 12px;
  opacity: 0.7;
  margin-bottom: 14px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.footer-text {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.footer-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}

/* ═══════════════════════════════════
   COUNTDOWN ENDED STATE
═══════════════════════════════════ */
.countdown-ended .title {
  animation: pulse 0.7s ease infinite alternate;
}

@keyframes pulse {
  from { filter: drop-shadow(0 2px 12px rgba(255,145,77,0.5)); }
  to   { filter: drop-shadow(0 4px 28px rgba(255,80,160,0.8)); }
}

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 420px) {
  .title        { font-size: 2.2rem; }
  .title-sub    { font-size: 1.2rem; }
  .time-value   { font-size: 2rem; letter-spacing: -1px; }
  .time-block   { padding: 0 6px; }
  .time-sep     { font-size: 1.5rem; }
  .countdown    { padding: 18px 14px; }
  main          { padding: 0 10px 50px; }
  .car-slide    { padding: 0 14px; }
}

/* ═══════════════════════════════════════
   MUSIC PLAYER
═══════════════════════════════════════ */
.music-player {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 100;
}

.music-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 14, 36, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,180,216,0.35);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 10px 18px 10px 14px;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,180,216,0.1);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
}

.music-btn:hover {
  background: rgba(0,180,216,0.22);
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,180,216,0.2);
}

.music-btn.playing {
  background: rgba(0,180,216,0.18);
  border-color: rgba(6,214,160,0.55);
  animation: musicPulse 2.4s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(0,180,216,0.2), 0 0 0 1px rgba(6,214,160,0.15); }
  50%       { box-shadow: 0 8px 36px rgba(0,180,216,0.4), 0 0 0 5px rgba(6,214,160,0.07); }
}

.music-icon {
  font-size: 1rem;
  display: inline-block;
  transition: transform 0.3s;
}

.music-btn.playing .music-icon {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

