/* ==========================================================================
   A Cousa da IA — Obradoiro
   Dark theme, Linear/Vercel-inspired. Pure CSS, no build step.
   ========================================================================== */

/* --- 1. Design tokens ----------------------------------------------------- */
:root {
  /* Colour */
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #0e0e0e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ededed;
  --text-muted: #888;
  --text-subtle: #5a5a5a;
  --accent: #ffffff;
  --accent-contrast: #0a0a0a;
  --success: #4ade80;

  /* Typography */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Sizing */
  --container-max: 1120px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 160ms;
}

/* --- 2. Reset & base ------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--accent);
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--text);
  color: var(--accent-contrast);
}

/* Subtle radial vignette behind the hero */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(255, 255, 255, 0.05),
      transparent 50%
    );
  z-index: -1;
}

/* --- 3. Utilities --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: var(--radius-sm);
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

.muted {
  color: var(--text-muted);
}

.emph {
  color: var(--accent);
}

/* --- 4. Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
}

.nav {
  display: none;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

@media (min-width: 768px) {
  .nav {
    display: inline-flex;
  }
}

/* --- 5. Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #f0f0f0;
  color: var(--accent-contrast);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-muted);
  color: var(--text);
}

/* --- 6. Sections (shared) ------------------------------------------------- */
.section {
  padding-block: clamp(64px, 8vw, 112px);
}

.section-bordered {
  border-top: 1px solid var(--border);
}

.section-eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  margin: 0 0 48px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

.section-title-sm {
  font-size: clamp(22px, 2.5vw, 28px);
  margin-bottom: 32px;
}

/* --- 7. Hero -------------------------------------------------------------- */
.hero {
  padding-block: clamp(72px, 10vw, 140px) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 880px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.hero-title {
  margin: 0 0 28px;
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  display: block;
  margin-top: 8px;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text-muted);
}

.lead {
  max-width: 60ch;
  margin: 0 0 40px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px 32px;
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}

.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.meta-value {
  font-size: 14px;
  color: var(--text);
}

/* --- 8. Grid primitives --------------------------------------------------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- 9. Cards (Para ti?) ------------------------------------------------- */
.card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
}

.card-muted {
  background: transparent;
  border-style: dashed;
}

.card-title {
  margin: 0 0 20px;
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.check-list,
.cross-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li,
.cross-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--success);
}

.cross-list li {
  color: var(--text-muted);
}

.cross-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-subtle);
}

.check-list strong,
.cross-list strong {
  color: var(--text);
  font-weight: 500;
}

/* --- 10. Symptom list ----------------------------------------------------- */
.symptom-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.symptom-list li {
  padding: 20px 0;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.symptom-list strong {
  color: var(--text);
  font-weight: 500;
}

/* --- 11. Outcomes (grid 3) ------------------------------------------------ */
.outcome {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.outcome:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.outcome-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  margin-bottom: 16px;
}

.outcome-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.outcome p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- 12. Agenda ----------------------------------------------------------- */
.agenda {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.agenda-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.agenda-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding-top: 2px;
}

.agenda-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.agenda-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.agenda-pause .agenda-title {
  color: var(--text-muted);
  font-weight: 400;
}

.agenda-end .agenda-title {
  color: var(--text-muted);
  font-weight: 400;
}

/* --- 13. Features (Metodoloxía) ------------------------------------------ */
.feature {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.feature-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* --- 14. Date cards ------------------------------------------------------- */
.date-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease);
}

.date-card:hover {
  border-color: var(--border-strong);
}

.date-card-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.date-tag {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.date-tag-live {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

.date-city {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}

.date-date {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.date-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0 0 28px;
}

.date-details dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 6px;
}

.date-details dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.price-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.price-label {
  font-size: 14px;
  color: var(--text-muted);
}

.price-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.price-discount .price-value {
  color: var(--success);
}

.badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* push CTA to the bottom of the card */
.date-card .btn {
  margin-top: auto;
}

/* --- 15. Instructors ------------------------------------------------------ */
.instructors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .instructors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  /* When 3+ instructors are added, wrap nicely in 3 cols */
  .instructors-grid:has(> :nth-child(3)) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.instructor-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease);
}

.instructor-card:hover {
  border-color: var(--border-strong);
}

.instructor-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
}

.instructor-name {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.instructor-role {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.instructor-bio {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 60ch;
}

.instructor-bio strong {
  color: var(--text);
  font-weight: 500;
}

.instructor-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.instructor-link:hover {
  color: var(--text);
}

.instructor-link span {
  transition: transform var(--dur) var(--ease);
}

.instructor-link:hover span {
  transform: translate(2px, -2px);
}

@media (max-width: 600px) {
  .instructor-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .instructor-photo {
    width: 80px;
    height: 80px;
  }
}

/* --- 16. Logos (organizador + colaboradores) ----------------------------- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.logo-row-single {
  justify-content: center;
  padding-block: 8px;
}

.logo-placeholder {
  flex: 1 1 180px;
  min-height: 80px;
  max-width: 240px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-subtle);
  text-align: center;
}

.logo-placeholder-lg {
  flex: 0 0 280px;
  min-height: 120px;
  max-width: 280px;
}

/* Organiser: prominent, full-colour, blends black background into page */
.organizer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur) var(--ease);
}

.organizer-logo:hover {
  transform: scale(1.03);
}

.organizer-logo img {
  height: auto;
  max-height: 160px;
  width: auto;
  /* Blends the JPEG's black background into our dark page; preserves bright
     brand colours because the page is darker than them. */
  mix-blend-mode: lighten;
}

/* Collaborators: unified, monochrome, smaller. Apply this class on the
   <a> wrapper of each collaborator logo. */
.collaborator-logo {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--dur) var(--ease);
}

.collaborator-logo img {
  max-height: 112px;
  width: auto;
  opacity: 0.65;
  filter: grayscale(1) brightness(1.6);
  /* Same trick as the organiser: blends JPEG black backgrounds with the page. */
  mix-blend-mode: lighten;
  transition: opacity var(--dur) var(--ease);
}

.collaborator-logo:hover img {
  opacity: 1;
}

/* Modifier for logos with LIGHT/WHITE backgrounds (e.g. Docuten).
   `invert(1)` flips the colours so light bg becomes dark and dark text
   becomes light — then the base rules above blend it correctly with our
   dark page. */
.collaborator-logo--invert img {
  filter: invert(1) grayscale(1) brightness(1.4);
}

/* --- 17. FAQ -------------------------------------------------------------- */
.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease);
}

.faq details[open] summary::after {
  content: "−";
}

.faq summary:hover {
  color: var(--accent);
}

.faq details p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 70ch;
}

/* --- 18. Final CTA -------------------------------------------------------- */
.cta-final {
  padding-block: clamp(80px, 10vw, 140px);
  text-align: center;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 255, 255, 0.04),
      transparent 60%
    );
}

.cta-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 20ch;
  margin-inline: auto;
}

.cta-sub {
  margin: 0 auto 40px;
  max-width: 50ch;
  color: var(--text-muted);
  font-size: 17px;
}

.cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* --- 19. Footer ----------------------------------------------------------- */
.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-subtle);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-meta a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.footer-meta a:hover {
  color: var(--text);
}

/* --- 20. Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
