/*
Theme Name: GoUp Theme
Author: AGOTECH SpA
Description: Tema personalizado para GoUp OTEC, organismo técnico de capacitación con franquicia SENCE.
Version: 2.0.0
Text Domain: goup-theme
*/

/* Tailwind Reset */

*,
::after,
::before,
::backdrop,
::file-selector-button {
  box-sizing: border-box; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 2 */
  border: 0 solid; /* 3 */
}

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  tab-size: 4; /* 3 */
  font-family: --theme(
    --default-font-family,
    'Montserrat',
    ui-sans-serif,
    system-ui,
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji'
  ); /* 4 */
  font-feature-settings: --theme(--default-font-feature-settings, normal); /* 5 */
  font-variation-settings: --theme(--default-font-variation-settings, normal); /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  -webkit-text-decoration: inherit;
  text-decoration: inherit;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp,
pre {
  font-family: --theme(
    --default-mono-font-family,
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    'Liberation Mono',
    'Courier New',
    monospace
  ); /* 1 */
  font-feature-settings: --theme(--default-mono-font-feature-settings, normal); /* 2 */
  font-variation-settings: --theme(--default-mono-font-variation-settings, normal); /* 3 */
  font-size: 1em; /* 4 */
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

:-moz-focusring {
  outline: auto;
}

progress {
  vertical-align: baseline;
}

summary {
  display: list-item;
}

ol,
ul,
menu {
  list-style: none;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

img,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
optgroup,
textarea,
::file-selector-button {
  font: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  border-radius: 0; /* 2 */
  background-color: transparent; /* 3 */
  opacity: 1; /* 4 */
}

:where(select:is([multiple], [size])) optgroup {
  font-weight: bolder;
}

:where(select:is([multiple], [size])) optgroup option {
  padding-inline-start: 20px;
}

::file-selector-button {
  margin-inline-end: 4px;
}

::placeholder {
  opacity: 1;
}

@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
  (contain-intrinsic-size: 1px) /* Safari 17+ */ {
  ::placeholder {
    color: color-mix(in oklab, currentcolor 50%, transparent);
  }
}

textarea {
  resize: vertical;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-date-and-time-value {
  min-height: 1lh; /* 1 */
  text-align: inherit; /* 2 */
}

::-webkit-datetime-edit {
  display: inline-flex;
}

::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

::-webkit-datetime-edit,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-millisecond-field,
::-webkit-datetime-edit-meridiem-field {
  padding-block: 0;
}

::-webkit-calendar-picker-indicator {
  line-height: 1;
}

:-moz-ui-invalid {
  box-shadow: none;
}

button,
input:where([type='button'], [type='reset'], [type='submit']),
::file-selector-button {
  appearance: button;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

[hidden]:where(:not([hidden='until-found'])) {
  display: none !important;
}

/* THEME */

:root {
  /* Brand palette — measured from the provisional logo board (GoUp_panel_6.png).
     Approximate values: the board is an AI-generated draft; adjust when the final logo arrives. */
  --color-brand-orange: #f43a0e;
  --color-brand-amber: #fd9f0c;
  --color-brand-green: #2b854c;
  --color-brand-teal: #01a0a2;
  --color-brand-dark: #0e2f30;
  /* Complementary icon accents seen in the approved mockup (area icons only, never text). */
  --color-brand-blue: #2f6fd6;
  --color-brand-violet: #6b4fc8;
  /* Lighter variants of the icon accents for dark backgrounds */
  --color-brand-green-light: #3fb06a;
  --color-brand-blue-light: #6c9cf0;
  --color-brand-violet-light: #9b84f0;

  /* Dark mode (mockup): near-black with a faint green cast. */
  --color-bg-dark: #050b0d;
  --color-surface-dark: #0c1518;
  --color-surface-dark-2: #122126;
  --color-border-dark: #22343a;
  --color-on-dark: #ffffff;
  --color-on-dark-soft: #c6d3d5;   /* 12:1 on --color-bg-dark */
  --color-eyebrow-dark: var(--color-brand-amber);

  /* Brand gradients.
     --gradient-brand: vivid, decorative only (lines, borders, text highlight). Text over it fails AA.
     --gradient-brand-strong: darkened stops; white text keeps >= 4.5:1 across the whole strip (AA). */
  --gradient-brand: linear-gradient(90deg, var(--color-brand-orange) 0%, var(--color-brand-amber) 35%, var(--color-brand-green) 70%, var(--color-brand-teal) 100%);
  --gradient-brand-strong: linear-gradient(90deg, #d1330a 0%, #b45f00 36%, #1f7a45 70%, #00797b 100%);
  --color-primary-light: #ff7a4d;  /* orange for links/text on dark backgrounds (7:1 on --color-bg-dark) */

  /* Color Palette (semantic tokens mapped to the brand) */
  --color-bg: #ffffff;
  --color-heading: var(--color-brand-dark);
  --color-heading-hover: #17403f;
  --color-body: #1f3536;
  --color-muted: #a3a7b3;      /* placeholder only (low contrast) */
  --color-primary: #d1330a;    /* darkened brand orange: 5.0:1 against white text (WCAG AA) */
  --color-primary-hover: #a82605;
  --color-accent: var(--color-brand-amber);
  --color-text-soft: #4a5f60;  /* secondary text with enough contrast on white */
  --color-surface: #f5f8f8;    /* alternate section / card background */
  --color-border: #dde7e5;
  --color-whatsapp: #0f766e;
  --color-whatsapp-hover: #0b5f59;
  --color-success: #166534;
  --color-error: #b91c1c;

  /* Typography */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.25rem;     /* 20px */
  --font-size-xl: 1.5rem;      /* 24px */
  --font-size-2xl: 2rem;       /* 32px */
  --font-size-3xl: 2.5rem;     /* 40px */
  --font-size-4xl: 3rem;       /* 48px */
  
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing */
  --space-sm: 0.5rem;          /* 8px */
  --space-md: 1rem;            /* 16px */
  --space-lg: 1.5rem;          /* 24px */
  --space-xl: 2rem;            /* 32px */
  --space-2xl: 3rem;            /* 48px */
  --space-3xl: 4rem;            /* 64px */

  /* Radius (Usually okay in px, but rem is more consistent) */
  --radius-md: 0.5rem;         /* 8px */
  --radius-lg: 1rem;           /* 16px */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-none: none;
  
  /* Navbar */
  --navbar-height: 4.5rem;     /* 72px */
  --navbar-padding-x: var(--space-xl); /* 32px */
  --navbar-padding-y: var(--space-sm); /* 8px */
  --navbar-total-height: var(--navbar-height);
  --navbar-bg: var(--color-bg-dark);
  --navbar-link-hover: var(--color-brand-amber);
  --font-family: 'Montserrat', sans-serif;
}

* {
  font-family: var(--font-family);
}

/* Font Sizes */
.text-base { font-size: var(--font-size-base); } /* textos */
.text-lg   { font-size: var(--font-size-lg); } /* textos grandes */
.text-xl   { font-size: var(--font-size-xl); } /* subtitulos */
.text-2xl  { font-size: var(--font-size-2xl); } /* titulos */
.text-3xl  { font-size: var(--font-size-3xl); } /* titulos grandes */

/* Font Weights */
.font-normal    { font-weight: var(--font-normal); } /* normal */
.font-medium    { font-weight: var(--font-medium); }
.font-semibold  { font-weight: var(--font-semibold); }
.font-bold      { font-weight: var(--font-bold); }

/* Colors */
.text-heading   { color: var(--color-heading); }
.text-body      { color: var(--color-body); }
.text-muted     { color: var(--color-muted); }
.text-primary   { color: var(--color-primary); }
.text-white     { color: #ffffff; }

/* Shadows */
.shadow-sm      { box-shadow: var(--shadow-sm); }
.shadow-md      { box-shadow: var(--shadow-md); }
.shadow-lg      { box-shadow: var(--shadow-lg); }
.shadow-xl      { box-shadow: var(--shadow-xl); }
.shadow-2xl     { box-shadow: var(--shadow-2xl); }
.shadow-none    { box-shadow: var(--shadow-none); }

/* ========================
   Buttons (single source for every .btn and button-like link)
   Motion: lift on hover, shadow growth, sliding sheen, arrow nudge; press on :active;
   ring on :focus-visible. prefers-reduced-motion switches movement off (colors still change).
   ======================== */
.btn {
  --btn-shadow: 0 2px 6px -2px rgba(14, 47, 48, 0.25);
  --btn-shadow-hover: 0 12px 24px -10px rgba(14, 47, 48, 0.5);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  overflow: hidden;
  color: #ffffff;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-medium);
  text-align: center;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition:
    transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    background-position 0.5s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

/* Sheen: a soft diagonal highlight that slides across on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.26) 50%, transparent 65%);
  translate: -130% 0;
  transition: translate 0.7s ease;
  pointer-events: none;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
}

.btn:hover::after,
.btn:focus-visible::after {
  translate: 130% 0;
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--btn-shadow);
  transition-duration: 0.08s;
}

.btn:focus-visible {
  outline-width: 3px;
  outline-offset: 3px;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

/* Icons inside buttons and links: arrows nudge right, download icons drop slightly */
.icon-arrow-right,
.icon-chevron-right,
.icon-download {
  transition: translate 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

a:hover > .icon-arrow-right,
a:focus-visible > .icon-arrow-right,
a:hover > .icon-chevron-right,
a:focus-visible > .icon-chevron-right,
a:hover .recurso-card-more .icon-arrow-right,
a:focus-visible .recurso-card-more .icon-arrow-right {
  translate: 4px 0;
}

a:hover > .icon-download,
a:focus-visible > .icon-download {
  translate: 0 2px;
}

.btn-primary {
  --btn-shadow: 0 4px 12px -4px rgba(209, 51, 10, 0.45);
  --btn-shadow-hover: 0 12px 24px -8px rgba(168, 38, 5, 0.6);
  color: #ffffff;
  background-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-primary-hover);
}

.btn-outline {
  --btn-shadow: none;
  --btn-shadow-hover: 0 10px 20px -10px rgba(209, 51, 10, 0.55);
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-outline-white {
  --btn-shadow: none;
  --btn-shadow-hover: 0 10px 22px -10px rgba(0, 0, 0, 0.45);
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover,
.btn-outline-white:focus-visible {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* Brand gradient button: darkened gradient + white text (AA, see --gradient-brand-strong).
   The gradient is oversized and slides on hover, so the stops never leave the AA range. */
.btn-gradient {
  --btn-shadow: 0 6px 18px -6px rgba(209, 51, 10, 0.55);
  --btn-shadow-hover: 0 12px 26px -8px rgba(0, 121, 123, 0.75);
  color: #ffffff;
  background: var(--gradient-brand-strong);
  background-size: 140% 100%;
  background-position: 0% 50%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: var(--font-semibold);
  text-align: center;
}

.btn-gradient:hover,
.btn-gradient:focus-visible {
  color: #ffffff;
  background-position: 100% 50%;
}

.btn-pill {
  border-radius: 999px;
}

/* Dark button (on light backgrounds or on the gradient strip) */
.btn-dark {
  --btn-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.5);
  --btn-shadow-hover: 0 12px 24px -8px rgba(0, 0, 0, 0.65);
  background-color: var(--color-bg-dark);
  color: #ffffff;
  border: 1px solid var(--color-border-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: var(--font-semibold);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background-color: var(--color-surface-dark-2);
  color: #ffffff;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.btn-with-icon .icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* Outline light-on-dark button used in heroes (WhatsApp) */
.btn-outline-light {
  --btn-shadow: none;
  --btn-shadow-hover: 0 10px 22px -10px rgba(253, 159, 12, 0.5);
  background-color: transparent;
  color: #ffffff;
  border: 2px solid var(--color-brand-amber);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: var(--font-semibold);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background-color: rgba(253, 159, 12, 0.14);
  color: #ffffff;
}

/* Text links that behave like quiet buttons: underline draws in from the left on hover */
.curso-card-link,
.areas-lista-more a,
.curso-detalle-back a,
.recurso-articulo-back a {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px;
  padding-bottom: 2px;
  transition: background-size 0.3s ease, color 0.2s ease;
}

.curso-card-link:hover,
.curso-card-link:focus-visible,
.areas-lista-more a:hover,
.areas-lista-more a:focus-visible,
.curso-detalle-back a:hover,
.curso-detalle-back a:focus-visible,
.recurso-articulo-back a:hover,
.recurso-articulo-back a:focus-visible {
  background-size: 100% 2px;
}

@media (prefers-reduced-motion: reduce) {
  .curso-card-link,
  .areas-lista-more a,
  .curso-detalle-back a,
  .recurso-articulo-back a {
    transition: none;
  }

  .btn,
  .btn::after,
  .icon-arrow-right,
  .icon-chevron-right,
  .icon-download {
    transition: none;
  }

  .btn:hover,
  .btn:focus-visible,
  .btn:active {
    transform: none;
  }

  .btn::after {
    display: none;
  }

  a:hover > .icon-arrow-right,
  a:hover > .icon-chevron-right,
  a:hover > .icon-download,
  a:hover .recurso-card-more .icon-arrow-right {
    translate: none;
  }
}

/* ========================
   Layout Utilities
   ======================== */

/* Standard section padding */
.section {
  padding: var(--space-3xl) var(--navbar-padding-x);
}

/* Alternate background for visual rhythm */
.section-alt {
  background-color: var(--color-surface);
}

/* Dark section (--color-bg-dark) */
.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-on-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-dark p {
  color: var(--color-on-dark-soft);
}

/* Brand gradient strip (AA with white text) */
.section-gradient {
  background: var(--gradient-brand-strong);
  color: #ffffff;
}

.section-gradient h2,
.section-gradient h3 {
  color: #ffffff;
}

.section-gradient p {
  color: #ffffff;
}

/* Primary color section */
.section-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.section-primary h2,
.section-primary h3,
.section-primary h4 {
  color: #ffffff;
}

.section-primary p {
  color: rgba(255, 255, 255, 0.95);
}

/* Centered max-width wrapper — use inside every .section */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Centered section intro text */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-3xl);
}

.section-header > * + * {
  margin-top: var(--space-md);
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) var(--space-md);
  }
}

/* ========================
   Global additions (GoUp)
   ======================== */

body {
  background-color: var(--color-bg);
  color: var(--color-body);
}

/* Page content starts below the fixed navbar */
.site-main {
  padding-top: var(--navbar-height);
}

/* Anchored sections (#presupuesto, #areas...) stop below the fixed navbar */
[id] {
  scroll-margin-top: calc(var(--navbar-height) + var(--space-md));
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -4rem;
  z-index: 10000;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-heading);
  color: #ffffff;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: var(--space-sm);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Brand logo (provisional PNGs in assets/images; swap files, not code) */
.brand-logo {
  display: block;
  width: auto;
  height: 2.75rem;
}

.brand-logo--pill {
  padding: var(--space-sm) var(--space-md);
  background-color: #ffffff;
  border-radius: var(--radius-md);
}

/* Large button variant (hero, CTA banners) */
.btn-hero {
  padding: var(--space-md) var(--space-xl);
  font-weight: var(--font-semibold);
}

/* Small label above section titles */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: var(--font-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-dark .section-eyebrow,
.section-primary .section-eyebrow {
  color: var(--color-eyebrow-dark);
}

@media (max-width: 640px) {
  .btn-hero {
    padding: var(--space-md) var(--space-lg);
  }
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Long-form content (pages, articles, areas) */
.entry-content > * + * {
  margin-top: var(--space-md);
}

.entry-content h2 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-bold);
  color: var(--color-heading);
  margin-top: var(--space-xl);
}

.entry-content h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-semibold);
  color: var(--color-heading);
  margin-top: var(--space-lg);
}

.entry-content ul,
.entry-content ol {
  padding-left: var(--space-lg);
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.entry-content p,
.entry-content li {
  line-height: 1.7;
}


/* ========================
   Dark mode helpers (GoUp mockup)
   Convention: dark = hero, SENCE/"por qué elegir" bands, footer; light = content sections.
   Always pair --color-bg-dark / --color-surface-dark with --color-on-dark(-soft) text.
   ======================== */

.navbar :focus-visible,
.section-dark :focus-visible,
.section-gradient :focus-visible,
.site-footer :focus-visible,
.panel-foto :focus-visible {
  outline-color: var(--color-brand-amber);
}

.section-gradient .btn:focus-visible {
  outline-color: #ffffff;
}

/* Section title in capitals, as in the mockup */
.section-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-bold);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.section-dark .section-title {
  color: #ffffff;
}

.section-subtitle {
  margin-top: var(--space-sm);
  color: var(--color-text-soft);
}

/* Text highlighted with the vivid brand gradient (large display text only) */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Inline SVG icons (goup_icon()) */
.icon {
  display: block;
  flex: none;
}

/* ========================
   Image slots (goup_image_slot()): drop a file in assets/images/slots/<key>.webp|jpg|png
   ======================== */

.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-2-1  { aspect-ratio: 2 / 1; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-3-2  { aspect-ratio: 3 / 2; }
.ratio-3-4  { aspect-ratio: 3 / 4; }
.ratio-1-1  { aspect-ratio: 1 / 1; }

.image-slot {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.image-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-slot--fill {
  position: absolute;
  inset: 0;
  height: 100%;
}

.image-slot--placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: var(--space-sm);
  background:
    linear-gradient(135deg, rgba(1, 160, 162, 0.55) 0%, rgba(14, 47, 48, 0.9) 55%, rgba(244, 58, 14, 0.5) 100%),
    var(--color-surface-dark);
}

.image-slot-label {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background-color: rgba(5, 11, 13, 0.82);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: var(--font-medium);
  letter-spacing: 0.02em;
}

/* Tone per area (icon and accent line); see goup_area_style() */
.area-tone--orange { --tone: var(--color-brand-orange); }
.area-tone--amber  { --tone: var(--color-brand-amber); }
.area-tone--green  { --tone: var(--color-brand-green); }
.area-tone--teal   { --tone: var(--color-brand-teal); }
.area-tone--blue   { --tone: var(--color-brand-blue); }
.area-tone--violet { --tone: var(--color-brand-violet); }

/* Left-aligned section intro (lists, team) */
.section-header--left {
  max-width: none;
  margin-inline: 0;
  margin-bottom: var(--space-xl);
  text-align: left;
}
