/* ============================================================
   USE CASES — Shell Cards
   Liquid glass morphism · Shell-inspired interactive cards
   Mama Tava Travel · Transporte Privado
   ============================================================ */

/* ── Section ─────────────────────────────────────────────── */
.use-cases {
  padding: clamp(72px, 9vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

/* ── Background color blobs (glassmorphism substrate) ─────── */
.uc-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.uc-bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.uc-bg__blob--a {
  width: clamp(300px, 45vw, 600px);
  height: clamp(300px, 45vw, 600px);
  background: radial-gradient(circle, #83C1C6 0%, #4D7B7B 60%, transparent 100%);
  top: -15%;
  left: -8%;
  animation: uc-drift-a 18s ease-in-out infinite alternate;
}

.uc-bg__blob--b {
  width: clamp(220px, 35vw, 450px);
  height: clamp(220px, 35vw, 450px);
  background: radial-gradient(circle, #E8926A 0%, #F5C49A 50%, transparent 100%);
  top: 20%;
  right: -6%;
  opacity: 0.28;
  animation: uc-drift-b 22s ease-in-out infinite alternate;
}

.uc-bg__blob--c {
  width: clamp(250px, 40vw, 500px);
  height: clamp(250px, 40vw, 500px);
  background: radial-gradient(circle, #344262 0%, #203049 60%, transparent 100%);
  bottom: -10%;
  left: 30%;
  opacity: 0.35;
  animation: uc-drift-c 26s ease-in-out infinite alternate;
}

@keyframes uc-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes uc-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-30px, 20px) scale(1.06); }
}
@keyframes uc-drift-c {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -25px) scale(1.05); }
}

/* ── Container z-index ───────────────────────────────────── */
.use-cases .container {
  position: relative;
  z-index: 1;
}

/* ── Header ──────────────────────────────────────────────── */
.uc-header {
  text-align: center;
  margin-bottom: clamp(56px, 8vw, 96px);
}

.uc-title-top {
  font-family: 'Bebas Neue', 'BebasNeue-Regular', sans-serif;
  font-size: clamp(1.8rem, 4vw, 4rem);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #354363;
  line-height: 1;
  margin: 0 0 -0.04em;
  display: block;
}

.uc-title-bot {
  font-family: 'Bangond', Georgia, serif;
  font-size: clamp(3.8rem, 9vw, 9rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #354363;
  line-height: 0.82;
  margin: 0;
  display: block;
}

/* ── Cards grid ──────────────────────────────────────────── */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
}

/* ── Shell Card ──────────────────────────────────────────── */
.shell-card {
  position: relative;
  border-radius: 56% 56% 22px 22px / 46% 46% 22px 22px;
  overflow: hidden;
  cursor: pointer;
  outline: none;

  background: linear-gradient(
    170deg,
    rgba(8, 18, 40, 0.80) 0%,
    rgba(11, 52, 88, 0.62) 50%,
    rgba(200, 105, 60, 0.09) 100%
  );
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(131, 193, 198, 0.22);
  box-shadow:
    0 6px 28px rgba(8, 15, 26, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.52s cubic-bezier(0.34, 1.4, 0.64, 1),
    border-radius 0.52s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.42s ease,
    border-color 0.42s ease;
}

/* Top shimmer arc */
.shell-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(131, 193, 198, 0.14) 0%,
    rgba(232, 146, 106, 0.06) 60%,
    transparent 100%
  );
  pointer-events: none;
  transition: opacity 0.42s ease;
  opacity: 0.7;
}

/* Animated water-ring on hover */
.shell-card::after {
  content: '';
  position: absolute;
  bottom: 18px;
  right: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(131, 193, 198, 0.28);
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.shell-card:hover,
.shell-card:focus-visible {
  transform: translateY(-14px) scale(1.025);
  border-radius: 28px 28px 22px 22px;
  border-color: rgba(131, 193, 198, 0.50);
  box-shadow:
    0 22px 60px rgba(8, 15, 26, 0.28),
    0 0 0 1px rgba(131, 193, 198, 0.12),
    0 0 60px rgba(131, 193, 198, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.shell-card:hover::before,
.shell-card:focus-visible::before {
  opacity: 1;
}

.shell-card:hover::after,
.shell-card:focus-visible::after {
  transform: scale(1.3);
  opacity: 1;
}

/* Per-card accent tints (subtle variation) */
.shell-card:nth-child(1) { --accent-rgb: 131, 193, 198; }
.shell-card:nth-child(2) { --accent-rgb: 118, 178, 190; }
.shell-card:nth-child(3) { --accent-rgb: 140, 200, 200; }
.shell-card:nth-child(4) { --accent-rgb: 125, 185, 195; }
.shell-card:nth-child(5) { --accent-rgb: 115, 172, 188; }
.shell-card:nth-child(6) { --accent-rgb: 135, 195, 200; }

/* ── Card front ──────────────────────────────────────────── */
.shell-card__front {
  padding: clamp(38px, 5.5vw, 56px) clamp(22px, 3.5vw, 40px) clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

/* Icon circle */
.shell-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(var(--accent-rgb, 131, 193, 198), 0.18),
    rgba(232, 146, 106, 0.10)
  );
  border: 1px solid rgba(var(--accent-rgb, 131, 193, 198), 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--accent-rgb, 131, 193, 198), 1);
  flex-shrink: 0;
  transition: background 0.42s ease, transform 0.42s cubic-bezier(0.34,1.56,0.64,1), border-color 0.42s ease;
  position: relative;
}

.shell-card__icon svg {
  width: 22px;
  height: 22px;
}

/* Ripple ring on icon */
.shell-card__icon::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb, 131, 193, 198), 0.20);
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.shell-card:hover .shell-card__icon,
.shell-card:focus-visible .shell-card__icon {
  background: linear-gradient(
    135deg,
    rgba(var(--accent-rgb, 131, 193, 198), 0.30),
    rgba(232, 146, 106, 0.18)
  );
  border-color: rgba(var(--accent-rgb, 131, 193, 198), 0.55);
  transform: scale(1.12) rotate(6deg);
}

.shell-card:hover .shell-card__icon::after,
.shell-card:focus-visible .shell-card__icon::after {
  transform: scale(1);
  opacity: 1;
}

/* Title */
.shell-card__title {
  font-family: 'Bebas Neue', 'BebasNeue-Regular', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.1;
  margin: 0;
  font-weight: 400;
  transition: color 0.3s ease;
}

.shell-card:hover .shell-card__title,
.shell-card:focus-visible .shell-card__title {
  color: #ffffff;
}

/* Tag pill */
.shell-card__tag {
  font-family: 'Bebas Neue', 'BebasNeue-Regular', sans-serif;
  font-size: 0.60rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(var(--accent-rgb, 131, 193, 198), 0.72);
  background: rgba(var(--accent-rgb, 131, 193, 198), 0.07);
  border: 1px solid rgba(var(--accent-rgb, 131, 193, 198), 0.18);
  border-radius: 100px;
  padding: 3px 12px;
  display: inline-block;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.shell-card:hover .shell-card__tag,
.shell-card:focus-visible .shell-card__tag {
  background: rgba(var(--accent-rgb, 131, 193, 198), 0.14);
  border-color: rgba(var(--accent-rgb, 131, 193, 198), 0.38);
  color: rgba(var(--accent-rgb, 131, 193, 198), 1);
}

/* Down caret */
.shell-card__caret {
  color: rgba(var(--accent-rgb, 131, 193, 198), 0.40);
  transition: transform 0.4s ease, color 0.3s ease;
  line-height: 0;
  margin-top: -4px;
}

.shell-card:hover .shell-card__caret,
.shell-card:focus-visible .shell-card__caret {
  transform: rotate(180deg);
  color: rgba(var(--accent-rgb, 131, 193, 198), 0.80);
}

/* ── Card body (hidden → revealed on hover) ──────────────── */
.shell-card__body {
  max-height: 0;
  overflow: hidden;
  padding: 0 clamp(22px, 3.5vw, 40px);
  transition:
    max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    padding-bottom 0.55s ease;
}

.shell-card:hover .shell-card__body,
.shell-card:focus-visible .shell-card__body,
.shell-card.is-open .shell-card__body {
  max-height: 380px;
  padding-bottom: clamp(28px, 4vw, 40px);
}

/* Divider bar inside body */
.shell-card__divider {
  width: 28px;
  height: 1px;
  background: rgba(var(--accent-rgb, 131, 193, 198), 0.30);
  margin: 0 auto clamp(14px, 2vw, 20px);
}

/* Description */
.shell-card__desc {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(0.78rem, 1.05vw, 0.875rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
  margin: 0 0 clamp(18px, 2.5vw, 26px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.38s ease 0.12s, transform 0.38s ease 0.12s;
}

.shell-card:hover .shell-card__desc,
.shell-card:focus-visible .shell-card__desc,
.shell-card.is-open .shell-card__desc {
  opacity: 1;
  transform: translateY(0);
}

/* CTA button */
.shell-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Bebas Neue', 'BebasNeue-Regular', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FF8C42;
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid rgba(255, 140, 66, 0.50);
  border-radius: 100px;
  width: 100%;
  background: rgba(255, 140, 66, 0.10);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.38s ease 0.20s,
    transform 0.38s ease 0.20s,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.shell-card:hover .shell-card__cta,
.shell-card:focus-visible .shell-card__cta,
.shell-card.is-open .shell-card__cta {
  opacity: 1;
  transform: translateY(0);
}

.shell-card__cta:hover {
  background: rgba(255, 140, 66, 0.22);
  border-color: rgba(255, 140, 66, 0.80);
  color: #fff;
}

.shell-card__cta svg {
  transition: transform 0.22s ease;
}

.shell-card__cta:hover svg {
  transform: translateX(4px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .uc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .uc-grid {
    grid-template-columns: 1fr;
  }

  .shell-card {
    border-radius: 36px;
  }

  /* On touch: always show body content */
  .shell-card__body {
    max-height: 380px;
    padding-bottom: clamp(24px, 4vw, 36px);
  }

  .shell-card__desc,
  .shell-card__cta {
    opacity: 1;
    transform: translateY(0);
  }
}
