/* ============================================================
   estudio PAMBA — Rediseño headlessui aesthetic
   Paleta: negro + teal + bordes sutiles, Nova Mono
   ============================================================ */

:root {
  --bg:           #0a0a0a;
  --bg-1:         #111111;
  --bg-2:         #161616;
  --bg-3:         #1c1c1c;
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(93, 169, 182, 0.35);
  --teal:         #5da9b6;
  --teal-bright:  #7ecfdd;
  --teal-dim:     rgba(93, 169, 182, 0.15);
  --text:         #e2e2e2;
  --text-muted:   #6b7280;
  --text-dim:     #9ca3af;
  --font:         'Nova Mono', monospace;
  --radius:       8px;
  --radius-lg:    12px;
  --nav-h:        60px;
  --max-w:        1100px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--teal-bright); }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 400; letter-spacing: 0.04em; }

/* ── Nav ── */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  transition: border-color 0.3s;
}
.navbar.scrolled { border-bottom-color: rgba(93, 169, 182, 0.15); }

.logo img {
  width: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.logo img:hover { border-color: var(--teal); transform: scale(1.05); }

.tituloWeb {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--text-muted);
}

.navbar-menu-lista {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.navbar-menu-lista a {
  display: block;
  padding: 0.4rem 0.9rem;
  font-size: 14x;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--text-muted);
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}
.navbar-menu-lista a:hover,
.navbar-menu-lista a.active {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg-2);
}

/* ── Page padding ── */
.page-top { padding-top: var(--nav-h); }

/* ── Hero video ── */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 70vh;
  overflow: hidden;
  background: var(--bg-1);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.2) 0%,
    rgba(10,10,10,0.0) 30%,
    rgba(10,10,10,0.6) 75%,
    var(--bg) 100%
  );
  pointer-events: none;
}
.hero iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  pointer-events: none;
}

/* ── Content wrapper ── */
.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Section ── */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--teal);
  opacity: 0.6;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-body {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 580px;
  line-height: 1.8;
}

/* ── Hero intro block ── */
.hero-intro {
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--border);
}
.hero-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--teal);
}
.hero-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero-heading span { color: var(--teal); }
.hero-desc {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 2rem;
}

/* ── Discipline cards ── */
.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}
.discipline-card {
  background: var(--bg-1);
  padding: 1.75rem;
  transition: background 0.2s var(--ease);
  position: relative;
}
.discipline-card:hover { background: var(--bg-2); }
.discipline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 100%;
  background: var(--teal);
  opacity: 0;
  transition: opacity 0.2s;
}
.discipline-card:hover::before { opacity: 1; }
.discipline-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  opacity: 0.7;
  filter: saturate(0) brightness(1.5);
  transition: filter 0.2s, opacity 0.2s;
}
.discipline-card:hover .discipline-icon {
  filter: saturate(1) brightness(1);
  opacity: 1;
}
.discipline-title {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.discipline-sub {
  font-size: 14px;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.discipline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.discipline-list li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.discipline-list li a:hover { color: var(--teal-bright); }

/* ── Contact select ── */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 320px;
}
.contact-block p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
}
.styled-select {
  appearance: none;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 12px;
  padding: 0.6rem 2rem 0.6rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}
.styled-select:hover, .styled-select:focus {
  border-color: var(--teal);
  outline: none;
  color: var(--text);
}
#url-container {
  display: none;
}
#url-link {
  font-size: 12px;
  color: var(--teal);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s;
}
#url-link:hover {
  background: var(--teal-dim);
  border-color: var(--teal);
  color: var(--teal-bright);
}

/* ── Logo showcase ── */
.logo-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
}
.logo-showcase img {
  width: min(320px, 60%);
  opacity: 0.6;
  filter: brightness(1.2);
  transition: opacity 0.3s;
}
.logo-showcase img:hover { opacity: 1; }

/* ── Team grid ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}
.team-card {
  background: var(--bg-1);
  padding: 1.5rem;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.team-card:hover { background: var(--bg-2); }
.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: saturate(0.6);
  transition: filter 0.3s, border-color 0.3s;
}
.team-card:hover .team-avatar {
  filter: saturate(1);
  border-color: var(--teal);
}
.team-name {
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text);
}
.team-role {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.team-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.team-links {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.team-links li a {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.15s;
}
.team-links li a:hover {
  color: var(--teal);
  border-color: var(--border-hover);
  background: var(--teal-dim);
}

/* ── Project cards ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.project-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.project-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-2);
  transform: translateY(-2px);
}
.project-logo {
  width: 100%;
  height: 128px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-3);
  padding: 6px;
}
.project-name {
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.05em;
}
.project-sub {
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.project-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  flex: 1;
}
.project-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-size: 12px;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.04em;
}
.btn-primary {
  background: var(--teal-dim);
  border-color: var(--teal);
  color: var(--teal-bright);
}
.btn-primary:hover {
  background: rgba(93, 169, 182, 0.25);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: var(--bg-3);
  border-color: var(--border-hover);
  color: var(--text);
}

/* ── Audio player overlay ── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.overlay.active { display: flex; }
.reproductor-contenedor {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: min(520px, 90vw);
}
.reproductor-video {
  width: 100%;
  border-radius: var(--radius);
}
.reproductor-cerrar {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  transition: all 0.2s;
  line-height: 1;
}
.reproductor-cerrar:hover {
  border-color: var(--teal);
  color: var(--text);
}

/* ── Agradecimientos / Logos ── */
.ack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.ack-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.ack-card img { height: 40px; width: auto; opacity: 0.8; filter: brightness(1.1); }
.ack-card p { font-size: 12px; color: var(--text-muted); line-height: 1.8; }
.ack-card a { color: var(--teal); }

/* ── Footer ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icons a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 15px;
  transition: all 0.2s var(--ease);
}
.social-icons a:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
}
footer p {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Fade-in animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.6s var(--ease) both; }
.fade-in-2 { animation: fadeUp 0.6s 0.1s var(--ease) both; }
.fade-in-3 { animation: fadeUp 0.6s 0.2s var(--ease) both; }
.fade-in-4 { animation: fadeUp 0.6s 0.3s var(--ease) both; }

/* ── Responsive ── */
@media (max-width: 800px) {
  .tituloWeb { display: none; }
  .hero-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .disciplines-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .ack-grid { grid-template-columns: 1fr; }
  .content-wrap { padding: 0 1rem; }
  .navbar { padding: 0 1rem; }
}
@media (max-width: 500px) {
  .team-grid { grid-template-columns: 1fr; }
  .navbar-menu-lista a { padding: 0.35rem 0.6rem; font-size: 16px; }
}
