:root {
  --bg: #1c1c1c;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.65);
  /* Verde Sabia */
  --accent: #14b8a6;
  --accent2: #0f766e;
  --radius: 26px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --glow-accent-1: color-mix(in srgb, var(--accent) 22%, transparent);
  --glow-accent-2: color-mix(in srgb, var(--accent) 14%, transparent);
}

* {
  box-sizing: border-box;
}

.page {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    "Helvetica Neue",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      1200px 600px at 70% 30%,
      color-mix(in srgb, var(--accent) 18%, transparent),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 20% 70%,
      rgba(255, 255, 255, 0.06),
      transparent 50%
    ),
    linear-gradient(180deg, #141414, #101010);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.main {
  width: min(1200px, 100%);
}

/* SECTION */
.about {
  position: relative;
  border-radius: calc(var(--radius) + 10px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.about::before {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.08),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 30%,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent 40%
    ),
    radial-gradient(
      circle at 40% 85%,
      rgba(255, 255, 255, 0.06),
      transparent 45%
    );
  filter: blur(8px);
  opacity: 0.9;
  pointer-events: none;
}

.about__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1.7fr 1.15fr;
  grid-template-rows: auto auto auto;
  gap: 18px;
  align-items: stretch;
}

/* CARDS*/
.card {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--stroke);
  padding: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  transition:
    transform 320ms ease,
    box-shadow 320ms ease,
    border-color 320ms ease,
    background 320ms ease;
  will-change: transform;
}

.card:hover {
  transform: translateY(-0.5px);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.32),
    0 0 0 1px var(--glow-accent-1),
    0 10px 26px var(--glow-accent-2);
}

.card--tall {
  min-height: 150px;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px 0;
}

.title {
  margin: 0 0 10px 0;
  letter-spacing: 0.4px;
  font-weight: 700;
}

.title__accent {
  color: color-mix(in srgb, var(--accent) 95%, white 5%);
}

.subtitle {
  margin: 0 0 10px 0;
  letter-spacing: 0.4px;
  font-weight: 700;
}

.text {
  margin: 0;
  line-height: 1.55;
}

.text--muted {
  color: var(--muted);
}
.text--spaced {
  margin-top: 10px;
}

.quote {
  margin: 0;
  font-style: italic;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

/* LISTAS */
.list {
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.list__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}
.tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.list--stack .stack-item {
  position: relative;
  cursor: default;
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease;
}
.list--stack .stack-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  background: rgba(0, 0, 0, 0.14);
  box-shadow:
    0 0 0 1px var(--glow-accent-1),
    0 10px 22px var(--glow-accent-2);
}
.list--stack .stack-item::after {
  content: attr(data-tools);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 10px);
  z-index: 30;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.list--stack .stack-item::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(8px);
  width: 10px;
  height: 10px;
  rotate: 45deg;

  background: rgba(0, 0, 0, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.list--stack .stack-item:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.list--stack .stack-item:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* CARD CENTRAL GRANDE (ahora en verde sabia) */
.card--center {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      800px 320px at 30% 40%,
      color-mix(in srgb, var(--accent) 22%, transparent),
      transparent 60%
    ),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 22%, transparent),
      rgba(255, 255, 255, 0.05)
    );

  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  padding-top: 18px;
  padding-bottom: 24px;
  min-height: 520px;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}
.nav__link {
  color: inherit;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.1);
  transition:
    border-color 240ms ease,
    color 240ms ease,
    transform 240ms ease,
    box-shadow 240ms ease;
}
.nav__link:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px var(--glow-accent-1),
    0 10px 22px var(--glow-accent-2);
}
.nav__dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav__submenu {
  position: absolute;
  top: calc(100% + 0.1px);
  left: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;

  padding: 10px;
  min-width: 180px;

  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
}
.nav__dropdown:hover .nav__submenu {
  display: flex;
}
.nav__sublink {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.1);
  transition:
    border-color 240ms ease,
    color 240ms ease,
    transform 240ms ease,
    box-shadow 240ms ease;
}

.nav__sublink:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px var(--glow-accent-1),
    0 10px 22px var(--glow-accent-2);
}
.nav__link--cta:hover {
  border-color: color-mix(in srgb, var(--accent) 80%, transparent);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent),
    0 14px 28px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* FIN NAV */
.headline {
  display: grid;
  gap: 8px;
  max-width: 70%;
}

.headline__big {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0;
}

.headline__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  max-width: 45ch;
}

/* MAINPART */
.me {
  position: absolute;
  left: 54%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: min(360px, 75%);
  aspect-ratio: 3 / 4;

  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;

  display: grid;
  place-items: center;
  isolation: isolate;
}

.me__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;

  border-radius: 0;
  filter: drop-shadow(0 22px 45px rgba(0, 0, 0, 0.55));

  transition:
    transform 260ms ease,
    filter 260ms ease;
  transform-origin: 50% 60%;
}

.me__caption {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translate(-50%, 10px);
  z-index: 2;

  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 220ms ease,
    transform 220ms ease;
  backdrop-filter: blur(10px);
}

.me:hover .me__img {
  transform: scale(1.03) translateY(-2px);
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.65));
}

.me:hover .me__caption {
  opacity: 1;
  transform: translate(-50%, 0);
}

.me:focus-within .me__caption {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* PARTE INFERIOR DEL CENTRO */
.center-bottom {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini {
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;

  transition:
    transform 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease;
}

.mini:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.19),
    0 0 0 1px var(--glow-accent-1),
    0 12px 26px var(--glow-accent-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bar {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-left: 12px;
}

.bar__fill {
  display: block;
  height: 100%;
  width: 68%;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 90%, white 10%),
    color-mix(in srgb, var(--accent2) 85%, black 15%)
  );
}

.favoritesong {
  text-decoration: none;
  color: inherit;
}

/* CARD ACENTO (derecha arriba) */
.card--accent {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 32%, transparent),
    color-mix(in srgb, var(--accent2) 12%, transparent)
  );
  border-color: color-mix(in srgb, var(--accent) 26%, transparent);
}

/* POSICIONAMIENTO (MISMA COMPOSICION) */
.card--left-top {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.card--left-mid {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.card--left-bot {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.card--right-top {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.card--right-mid {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}
.card--right-bot {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}
/* RESPONSIVE: TABLET */
@media (max-width: 980px) and (min-width: 661px) {
  .about__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .card--left-top,
  .card--left-mid,
  .card--left-bot,
  .card--right-top,
  .card--right-mid,
  .card--right-bot {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .card--center {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 520px;

    position: relative;
    overflow: hidden;
    padding: 18px;
  }
  .headline {
    max-width: 100%;
    padding-right: min(320px, 46vw);
    position: relative;
    z-index: 2;
  }
  .me {
    position: absolute;
    left: auto;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);

    width: min(320px, 45%);
    z-index: 1;
  }

  .center-bottom {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    z-index: 2;
    top: auto;
  }
}

/* RESPONSIVE: MOBILE */
@media (max-width: 660px) {
  .about__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .card--left-top,
  .card--left-mid,
  .card--left-bot,
  .card--right-top,
  .card--right-mid,
  .card--right-bot {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .card--center {
    grid-column: 1 / -1;
    grid-row: auto;

    position: relative;
    min-height: auto;
    padding: 18px;

    display: grid;
    grid-template-rows: auto auto auto;
    gap: 14px;

    overflow: visible;
  }
  .headline {
    max-width: 100%;
    padding-right: 0;
    order: 1;
    position: relative;
    z-index: 2;
  }
  .me {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;

    width: min(360px, 100%);
    margin: 0 auto;

    order: 2;
    z-index: 1;
  }
  .center-bottom {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;

    order: 3;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;

    margin-top: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card,
  .nav__link,
  .me__img,
  .me__caption,
  .mini,
  .list--stack .stack-item,
  .list--stack .stack-item::before,
  .list--stack .stack-item::after {
    transition: none !important;
  }
}
