/* ============================================================
   NeoEduca — Rediseño minimalista
   ============================================================ */

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-alt: #f4f4f1;
  --ink: #14161a;
  --ink-soft: #2b2f36;
  --muted: #646b76;
  --line: #e6e7e2;
  --accent: #d9552a;
  --accent-dark: #b8431f;
  --accent-soft: #fdf0ea;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.04);
  --shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 14px 34px rgba(20, 22, 26, 0.07);
  --container: 1180px;
  --header-h: 100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
}

p {
  margin: 0;
}

button {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top 0.2s ease;
}

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

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(20, 22, 26, 0.04);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-logo {
  display: block;
  height: 90px;
  width: auto;
  mix-blend-mode: multiply;
}

.brand-name {
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-list a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

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

.nav-list a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(217, 85, 42, 0.22);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 26px rgba(217, 85, 42, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.text-link span {
  transition: transform 0.2s var(--ease);
}

.text-link:hover span {
  transform: translateX(4px);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: calc(var(--header-h) + 56px) 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

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

.lead {
  max-width: 54ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 26px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.visual-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}

.robot {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.float-card small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.float-card--one {
  top: 14%;
  left: -12px;
}

.float-card--two {
  bottom: 12%;
  right: -12px;
  animation-delay: -3s;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.dot--soft {
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--surface-alt);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ============================================================
   Trust strip
   ============================================================ */

.trust {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* La franja de confianza del home lleva un dato mas */
.trust--forest .trust-grid {
  grid-template-columns: repeat(5, 1fr);
}

.trust-item {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}

.trust-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.trust-item strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trust-item span {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section--alt {
  background: var(--surface-alt);
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Cards */
.cards {
  display: grid;
  gap: 20px;
}

#niveles .card p {
  flex: none;
}

#niveles .card .text-link {
  margin-top: 18px;
}

.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #d8d9d3;
  box-shadow: var(--shadow);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.08rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

#talleres .card p {
  flex: none;
}

#talleres .card .hero-actions,
#talleres .card > a.btn {
  margin-top: auto;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.split-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 18px;
}

.split-copy > p {
  color: var(--muted);
  max-width: 56ch;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 4px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.94rem;
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(217, 85, 42, 0.25);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.55em;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.workshop-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.workshop-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workshop-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.workshop-card .muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.workshop-meta {
  display: grid;
  gap: 0;
  margin: 24px 0;
  border-top: 1px solid var(--line);
}

.workshop-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.workshop-meta dt {
  font-size: 0.85rem;
  color: var(--muted);
}

.workshop-meta dd {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
}

.workshop-card .btn {
  width: 100%;
}

/* Products */
.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-media {
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  overflow: hidden;
}

.product-media--white {
  background: #fff;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 0.4s var(--ease);
}

.product:hover .product-media img {
  transform: scale(1.04);
}

.product-body {
  padding: 20px 22px 24px;
}

.tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.product p {
  font-size: 0.86rem;
  color: var(--muted);
}

.product-body .check-list {
  gap: 7px;
  margin: 16px 0 18px;
}

.product-body .check-list li {
  padding-left: 24px;
  font-size: 0.82rem;
}

.product-body .check-list li::before {
  width: 16px;
  height: 16px;
  top: 0.3em;
}

.product-body .check-list li::after {
  left: 4px;
  top: 0.58em;
  width: 7px;
  height: 3px;
}

.photo-feature {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.photo-feature img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-feature figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
}

.photo-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-gallery figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .photo-gallery {
    grid-template-columns: 1fr;
  }
}

.academia-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  width: 100%;
}

.academia-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.academia-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  color: #fff;
}

.academia-feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.academia-feature-icon[data-tone="orange"] {
  background: linear-gradient(135deg, #f04c0e, #fb7a2a);
}

.academia-feature-icon[data-tone="emerald"] {
  background: linear-gradient(135deg, #047857, #059669);
}

.academia-feature-icon[data-tone="electric"] {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

.academia-feature-icon[data-tone="violet"] {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
}

.academia-feature-icon[data-tone="navy"] {
  background: linear-gradient(135deg, #0f2a43, #1e5a7d);
}

.academia-feature-icon[data-tone="green"] {
  background: linear-gradient(135deg, #15803d, #22c55e);
}

.academia-feature-icon[data-tone="teal"] {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.academia-feature-text strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}

.academia-feature-text small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Clientes */
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.client-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.client-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 85, 42, 0.2);
  box-shadow: var(--shadow);
}

.client-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 84px;
  height: 66px;
}

.client-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.client-monogram {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(217, 85, 42, 0.18);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: "Sora", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.client-card strong {
  display: block;
  font-size: 0.8rem;
  line-height: 1.3;
}

.client-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

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

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

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

  .client-card {
    min-height: 84px;
  }
}

/* Hero con video de fondo */
.hero {
  position: relative;
  isolation: isolate;
  background: #0a100c;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0a100c url("assets/hero-video-poster.webp") center / cover no-repeat;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  border: 0;
  transform: translate(-50%, -50%);
  filter: saturate(0.85) brightness(0.78) contrast(1.12);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 12, 8, 0.9) 0%, rgba(6, 12, 8, 0.74) 32%, rgba(6, 12, 8, 0.5) 64%, rgba(6, 12, 8, 0.68) 100%),
    linear-gradient(180deg, rgba(6, 12, 8, 0.35) 0%, transparent 30%, transparent 76%, rgba(6, 12, 8, 0.94) 100%),
    radial-gradient(700px 340px at 82% 18%, rgba(217, 85, 42, 0.16), transparent 62%);
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  color: #f0a184;
}

.hero .eyebrow::before {
  background: #f0a184;
}

.hero h1 {
  color: #fff;
}

.hero .accent {
  color: #f08a5d;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero .accent {
    background: linear-gradient(100deg, #f08a5d 0%, #ffb38a 55%, #f08a5d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero .lead {
  color: rgba(255, 255, 255, 0.78);
}

.hero .hero-note {
  color: rgba(255, 255, 255, 0.58);
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

@media (max-width: 900px) {
  .hero-video iframe {
    width: auto;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video iframe {
    display: none;
  }
}

/* News */
.news {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.news:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.news-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
  overflow: hidden;
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.news:hover .news-media img {
  transform: scale(1.04);
}

.news-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 24px 26px;
}

.news-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.news h3 {
  font-size: 1.08rem;
  line-height: 1.35;
}

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

.news p {
  font-size: 0.88rem;
  color: var(--muted);
}

.news .text-link {
  margin-top: auto;
}

/* Recursos */
.resource-groups {
  display: grid;
  gap: 12px;
}

.resource-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
  box-shadow: var(--shadow-sm);
}

.resource-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  list-style: none;
}

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

.resource-count {
  flex: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resource-list {
  display: grid;
  gap: 0;
  margin-bottom: 12px;
}

.resource-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.resource-list a {
  flex: none;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

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

.resource-list--pieces li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.resource-thumb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.resource-thumb img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

.resource-thumb--empty {
  background: var(--surface-alt);
}

.resource-unavailable {
  flex: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .resource-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .resource-list--pieces li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
  }

  .resource-thumb {
    width: 52px;
    height: 52px;
  }

  .resource-list--pieces li a,
  .resource-list--pieces li .resource-unavailable {
    grid-column: 2;
  }
}

/* Prensa y noticias oficiales */
.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.press-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.press-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 85, 42, 0.2);
  box-shadow: var(--shadow);
}

.press-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.press-source span {
  color: var(--accent-dark);
}

.press-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.press-logo {
  flex: none;
  width: auto;
  height: 20px;
  max-width: 92px;
  object-fit: contain;
}

.press-logo--invert {
  filter: brightness(0);
}

.press-card h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.press-card h3 a:hover {
  color: var(--accent);
}

.press-card p {
  font-size: 0.86rem;
  color: var(--muted);
}

.press-card .text-link {
  margin-top: auto;
  font-size: 0.8rem;
}

.press-card--official {
  border-left: 3px solid var(--accent);
}

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

/* Contact */
.contact {
  padding-block: clamp(64px, 8vw, 96px);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(32px, 5vw, 56px);
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.contact-inner::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 85, 42, 0.35), transparent 65%);
  pointer-events: none;
}

.contact h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-bottom: 12px;
  max-width: 18ch;
}

.contact .eyebrow {
  color: #f0a184;
}

.contact .eyebrow::before {
  background: #f0a184;
}

.contact .section-sub {
  color: rgba(255, 255, 255, 0.66);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: none;
  position: relative;
  z-index: 1;
}

.contact .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.contact .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.brand--light {
  color: var(--accent);
}

.footer-brand p {
  margin-top: 16px;
  max-width: 30ch;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.footer-social svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.footer-col h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a,
.footer-col address {
  font-size: 0.88rem;
  font-style: normal;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-note {
  text-align: right;
}

/* ============================================================
   Reveal animation
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 24px 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(20, 22, 26, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 20px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 460px;
    margin-inline: auto;
  }

  .float-card--one {
    left: 0;
  }

  .float-card--two {
    right: 0;
  }

  .trust-grid,
  .trust--forest .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(3),
  .trust-item:nth-child(5) {
    border-left: 0;
    padding-left: 0;
  }

  .trust-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .news {
    flex-direction: row;
  }

  .news-media {
    width: 40%;
    aspect-ratio: auto;
    flex: none;
  }

  .news-body {
    width: 60%;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 80px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .brand-logo {
    height: 64px;
  }

  .cards--4 {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .trust--forest .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-left: 0;
    padding-left: 0;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
  }

  .news {
    flex-direction: column;
  }

  .news-media,
  .news-body {
    width: 100%;
  }

  .news-media {
    aspect-ratio: 16 / 9;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-actions,
  .contact-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-note {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Páginas interiores
   ============================================================ */

.nav-list a.is-active {
  color: var(--ink);
}

.nav-list a.is-active::after {
  transform: scaleX(1);
}

.page-hero {
  padding: calc(var(--header-h) + 64px) 0 56px;
  background:
    radial-gradient(820px 300px at 88% -20%, rgba(217, 85, 42, 0.1), transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.78rem;
  color: var(--muted);
}

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

.breadcrumbs span {
  color: var(--ink);
  font-weight: 600;
}

.page-hero h1 {
  max-width: 20ch;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  letter-spacing: -0.035em;
}

.page-hero .lead {
  max-width: 64ch;
}

.page-hero--center {
  text-align: center;
}

.page-hero--center h1,
.page-hero--center .lead {
  margin-inline: auto;
}

.page-hero--center .eyebrow {
  justify-content: center;
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.prose {
  max-width: 68ch;
  color: var(--muted);
}

.prose p + p {
  margin-top: 14px;
}

.prose strong {
  color: var(--ink);
}

.article-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(28px, 5vw, 56px);
}

.article-layout .photo-feature {
  position: sticky;
  top: 120px;
}

.article-layout .prose {
  max-width: none;
}

.article-layout .prose h2 {
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: 1.3rem;
}

.article-layout .prose ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
  padding-left: 20px;
  list-style: disc;
}

.article-layout .prose li {
  color: var(--muted);
}

.article-source {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.article-back {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-layout .photo-feature {
    position: static;
  }
}

/* Bloques de servicio */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(24px, 3.5vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.service-block h3 {
  font-size: 1.25rem;
}

.service-block p {
  color: var(--muted);
  font-size: 0.94rem;
}

.service-block .check-list {
  margin: 4px 0 0;
  width: 100%;
}

.service-block .check-list li {
  font-size: 0.88rem;
  font-weight: 500;
}

.service-block .text-link {
  margin-top: auto;
  padding-top: 6px;
}

/* Pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Timeline */
.timeline {
  display: grid;
  gap: 0;
  margin-left: 6px;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 30px 30px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.timeline-year {
  display: block;
  margin-bottom: 4px;
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.timeline-item h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

.timeline-source {
  margin-top: 26px;
  margin-left: 36px;
}

/* Panel informativo */
.info-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(28px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.info-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}

.info-panel p {
  color: var(--muted);
}

.info-panel .hero-actions {
  margin-top: 22px;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 840px;
}

.faq details {
  padding: 0 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

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

.faq details p {
  padding-bottom: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Noticia destacada */
.featured-news {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.featured-news .news-media {
  aspect-ratio: auto;
  min-height: 280px;
}

.featured-news .news-body {
  justify-content: center;
  padding: clamp(26px, 4vw, 44px);
}

.featured-news h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.featured-news h2 a:hover {
  color: var(--accent);
}

/* Formulario de contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: 28px;
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.form-card > p {
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field-help {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.captcha {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.captcha canvas {
  width: 250px;
  height: 78px;
  max-width: 100%;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.btn--small {
  padding: 8px 14px;
  font-size: 0.78rem;
}

.link-like {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}

.link-like:hover {
  color: var(--accent);
}

/* Campo trampa: visible solo para los robots que rellenan todo */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--accent);
}

.form-status.ok {
  color: #22563d;
}

.form-status.err {
  color: var(--accent-dark);
}

.contact-cards {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.contact-card .card-icon {
  width: 40px;
  height: 40px;
  margin: 0;
  flex: none;
}

.contact-card h3 {
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.contact-card p,
.contact-card a {
  font-size: 0.86rem;
  color: var(--muted);
}

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

.map-wrap {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

@media (max-width: 900px) {
  .service-grid,
  .contact-grid,
  .featured-news,
  .info-panel {
    grid-template-columns: 1fr;
  }

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

  .featured-news .news-media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Modernización
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #f0a184);
  pointer-events: none;
}

.hero {
  background:
    radial-gradient(680px 380px at 88% 8%, rgba(217, 85, 42, 0.1), transparent 65%),
    radial-gradient(560px 320px at 4% 92%, rgba(29, 107, 71, 0.07), transparent 62%);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% -8% 8%;
  z-index: 0;
  background: radial-gradient(circle at 55% 50%, rgba(217, 85, 42, 0.2), transparent 66%);
  filter: blur(26px);
  pointer-events: none;
}

.visual-card {
  position: relative;
  z-index: 1;
}

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

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .accent {
    background: linear-gradient(100deg, #d9552a 0%, #ef7b45 55%, #d9552a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.btn-primary {
  background-image: linear-gradient(135deg, #e26034 0%, #cf4a1f 100%);
}

.btn-primary:hover {
  background-image: linear-gradient(135deg, #ea6c40 0%, #b8431f 100%);
}

.card,
.service-block {
  position: relative;
  overflow: hidden;
}

.card::after,
.service-block::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #f0a184);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.card:hover::after,
.service-block:hover::after {
  transform: scaleX(1);
}

.product-media {
  background: linear-gradient(160deg, #f7f7f4 0%, #edf3ee 100%);
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.tag--new {
  background: #e6f4ec;
  color: #146c43;
}

.product-spotlight {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(24px, 4.5vw, 56px);
  margin-top: 24px;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
  background:
    radial-gradient(560px 320px at 12% 18%, rgba(29, 107, 71, 0.14), transparent 62%),
    radial-gradient(420px 280px at 92% 90%, rgba(217, 85, 42, 0.1), transparent 60%),
    linear-gradient(135deg, #ffffff 0%, #f7fbf8 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.spotlight-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.spotlight-media--dark {
  overflow: hidden;
  background: #050706;
  border-radius: 18px;
}

.spotlight-copy h3,
.spotlight-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}

.spotlight-copy > p {
  color: var(--muted);
}

.spotlight-copy .check-list {
  margin: 18px 0 6px;
}

.spotlight-copy .hero-actions {
  margin-top: 20px;
}

.liga-band {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(30px, 5vw, 56px);
  overflow: hidden;
  background:
    radial-gradient(520px 300px at 88% 6%, rgba(217, 85, 42, 0.38), transparent 62%),
    radial-gradient(420px 260px at 6% 100%, rgba(29, 107, 71, 0.3), transparent 60%),
    #14161a;
  color: #fff;
  border-radius: var(--radius-lg);
}

.liga-band > * {
  position: relative;
  z-index: 1;
}

.liga-band::after {
  content: "LIGA";
  position: absolute;
  right: -8px;
  bottom: -52px;
  z-index: 0;
  color: rgba(255, 255, 255, 0.045);
  font-family: "Sora", sans-serif;
  font-size: clamp(6rem, 14vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  pointer-events: none;
}

.liga-band .eyebrow {
  color: #f0a184;
}

.liga-band .eyebrow::before {
  background: #f0a184;
}

.liga-band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  margin-bottom: 12px;
}

.liga-band p {
  color: rgba(255, 255, 255, 0.68);
}

.liga-band .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
}

.liga-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.liga-band .workshop-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.liga-band .workshop-badge {
  background: rgba(217, 85, 42, 0.22);
  color: #f4b39a;
}

.liga-band .workshop-meta {
  border-color: rgba(255, 255, 255, 0.14);
}

.liga-band .workshop-meta div {
  border-color: rgba(255, 255, 255, 0.14);
}

.liga-band .workshop-meta dt {
  color: rgba(255, 255, 255, 0.6);
}

.liga-band .workshop-meta dd {
  color: #fff;
}

.liga-band .btn-dark {
  background: #fff;
  color: #14161a;
}

.liga-band .btn-dark:hover {
  background: #f0f0ee;
}

@media (max-width: 900px) {
  .product-spotlight,
  .liga-band {
    grid-template-columns: 1fr;
  }

  .spotlight-media {
    max-width: 520px;
    margin-inline: auto;
  }

  .liga-band::after {
    font-size: 7rem;
    bottom: -30px;
  }
}

/* ============================================================
   Hero: robot real, código y bloques
   ============================================================ */

.visual-card--photo {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.robot-photo {
  position: relative;
  overflow: hidden;
  background: #e9ece7;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.robot-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 35% center;
}

.robot-photo--dark {
  background: #050706;
}

.robot-photo--dark img {
  aspect-ratio: 1120 / 779;
  object-position: center;
}

.robot-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(8, 14, 10, 0.62) 100%);
  pointer-events: none;
}

.robot-photo-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  gap: 7px;
  max-width: 62%;
  color: #fff;
}

.robot-photo-caption .tag {
  justify-self: start;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.robot-photo-caption strong {
  font-size: 0.88rem;
  line-height: 1.3;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.code-card {
  position: absolute;
  top: -18px;
  right: -24px;
  z-index: 2;
  width: 230px;
  overflow: hidden;
  background: #14161a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  transform: rotate(2deg);
}

.code-card__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-card__dots {
  display: inline-flex;
  gap: 4px;
}

.code-card__dots i {
  display: block;
  width: 6px;
  height: 6px;
  background: #5b616e;
  border-radius: 50%;
}

.code-card__dots i:first-child {
  background: #f07167;
}

.code-card__dots i:nth-child(2) {
  background: #f2c14e;
}

.code-card__dots i:nth-child(3) {
  background: #7bd389;
}

.code-card__title {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.code-card pre {
  margin: 0;
  padding: 12px 14px 10px;
  overflow: hidden;
  color: #d7dae0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.64rem;
  line-height: 1.65;
  tab-size: 2;
}

.code-card .kw {
  color: #c792ea;
}

.code-card .fn {
  color: #82aaff;
}

.code-card .num {
  color: #f78c6c;
}

.code-card__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.berry-dot {
  width: 6px;
  height: 6px;
  background: #7bd389;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(123, 211, 137, 0.14);
}

.block-card {
  position: absolute;
  right: 18px;
  bottom: -24px;
  z-index: 2;
  width: 188px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(20, 22, 26, 0.18);
  transform: rotate(-2deg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.block-card__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.block-stack {
  display: grid;
  gap: 6px;
}

.block {
  padding: 7px 9px;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 6px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.block strong {
  display: inline-flex;
  min-width: 18px;
  justify-content: center;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.58rem;
}

.block--event {
  background: #e7b23a;
}

.block--control {
  background: #e88b2f;
}

.block--motion {
  margin-left: 14px;
  background: #4c97ff;
}

.block--wait {
  margin-left: 14px;
  background: #e88b2f;
}

@media (max-width: 900px) {
  .code-card {
    top: -14px;
    right: -16px;
    width: 210px;
  }

  .block-card {
    right: 10px;
    bottom: -22px;
    width: 172px;
  }

  .float-card--one {
    top: 10%;
    left: 0;
  }
}

.testimonial p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.testimonial footer {
  display: grid;
  gap: 2px;
  margin-top: 18px;
}

.testimonial footer strong {
  font-size: 0.85rem;
}

.testimonial footer span {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .robot-photo img {
    aspect-ratio: 4 / 3;
    object-position: 34% center;
  }

  .robot-photo--dark img {
    aspect-ratio: 1120 / 779;
    object-position: center;
  }

  .robot-photo-caption {
    left: 14px;
    bottom: 12px;
    max-width: 58%;
  }

  .robot-photo-caption strong {
    font-size: 0.78rem;
  }

  .code-card {
    top: -10px;
    right: -8px;
    width: 178px;
  }

  .code-card__bar {
    padding: 8px 10px;
  }

  .code-card pre {
    padding: 10px 11px 8px;
    font-size: 0.58rem;
  }

  .code-card__foot {
    padding: 7px 10px 9px;
    font-size: 0.52rem;
  }

  .block-card {
    display: none;
  }

  .float-card {
    padding: 10px 12px;
  }

  .float-card strong {
    font-size: 0.76rem;
  }

  .float-card small {
    font-size: 0.66rem;
  }
}

/* ============================================================
   Vitalidad visual: color, profundidad y microinteracciones
   ============================================================ */

:root {
  --accent-2: #1d6b47;
  --accent-3: #efb44b;
  --ink-deep: #0b1711;
  --shadow: 0 2px 5px rgba(20, 22, 26, 0.04), 0 18px 44px rgba(20, 22, 26, 0.09);
}

body {
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(217, 85, 42, 0.065), transparent 62%),
    radial-gradient(760px 480px at 100% 4%, rgba(29, 107, 71, 0.075), transparent 60%),
    var(--bg);
}

.site-header {
  background: rgba(255, 253, 250, 0.84);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(217, 85, 42, 0.18);
  box-shadow: 0 10px 30px rgba(20, 22, 26, 0.07);
}

.nav-list a.is-active {
  color: var(--accent-dark);
}

.nav-list a.is-active::after {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.eyebrow {
  padding: 7px 12px;
  border: 1px solid rgba(217, 85, 42, 0.2);
  border-radius: 999px;
  background: rgba(253, 240, 234, 0.76);
  letter-spacing: 0.12em;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 0 4px rgba(217, 85, 42, 0.1);
}

.hero .eyebrow {
  border-color: rgba(240, 161, 132, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.hero .eyebrow::before {
  background: #f08a5d;
  box-shadow: 0 0 0 4px rgba(240, 138, 93, 0.16);
}

.section-head h2 {
  position: relative;
  padding-bottom: 18px;
  font-weight: 700;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
}

.section--alt {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(20, 22, 26, 0.045);
  background: linear-gradient(145deg, #f7f3ec 0%, #fbfbf8 55%, #f1f7f3 100%);
}

.section--alt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(29, 107, 71, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.section--alt > .container {
  position: relative;
  z-index: 1;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom-color: rgba(217, 85, 42, 0.15);
  background:
    radial-gradient(620px 280px at 96% 0%, rgba(217, 85, 42, 0.16), transparent 65%),
    radial-gradient(520px 280px at 4% 100%, rgba(29, 107, 71, 0.12), transparent 65%),
    linear-gradient(135deg, #fffdfa 0%, #fdf6f1 55%, #f2f8f4 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -110px;
  top: -160px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(217, 85, 42, 0.2), transparent 68%);
  filter: blur(8px);
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #e56535 0%, #c94420 100%);
  box-shadow: 0 10px 24px rgba(217, 85, 42, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f0733f 0%, #d54b24 100%);
  box-shadow: 0 14px 30px rgba(217, 85, 42, 0.36);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  border-color: rgba(217, 85, 42, 0.35);
  background: #fff6f1;
}

.btn-dark {
  background: linear-gradient(135deg, #17231d, #0b1410);
  box-shadow: 0 10px 22px rgba(11, 20, 16, 0.18);
}

.btn-dark:hover {
  background: linear-gradient(135deg, #22352b, #101d16);
}

.trust {
  border: 0;
  border-top: 3px solid var(--accent);
  background: linear-gradient(112deg, #0d1e15 0%, #173b2a 55%, #22563d 100%);
}

.trust-item {
  border-left-color: rgba(255, 255, 255, 0.14);
  transition: background-color 0.3s ease;
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.trust-item strong {
  color: #fff;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.68);
}

.trust--forest {
  border-top-color: #4ade80;
  background:
    radial-gradient(620px 260px at 12% 8%, rgba(90, 190, 120, 0.16), transparent 70%),
    linear-gradient(112deg, #14532d 0%, #166534 55%, #16a34a 100%);
}

.trust--forest .trust-item {
  border-left-color: rgba(255, 255, 255, 0.16);
}

.trust--forest .trust-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.trust--forest .trust-item strong {
  color: #fff;
}

.trust--forest .trust-item span {
  color: rgba(255, 255, 255, 0.76);
}

.card,
.product,
.news,
.client-card,
.press-card {
  position: relative;
  background: linear-gradient(160deg, #fff 0%, #fdfaf6 100%);
  border-color: rgba(20, 22, 26, 0.08);
}

.card::before,
.product::before,
.news::before,
.client-card::before,
.press-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.card:hover::before,
.product:hover::before,
.news:hover::before,
.client-card:hover::before,
.press-card:hover::before {
  transform: scaleX(1);
}

.card:hover,
.product:hover,
.news:hover,
.client-card:hover,
.press-card:hover {
  border-color: rgba(217, 85, 42, 0.22);
}

.card-icon {
  background: linear-gradient(135deg, #fdece4, #fff5dc);
  box-shadow: inset 0 0 0 1px rgba(217, 85, 42, 0.08);
  transition: transform 0.35s var(--ease);
}

.card:hover .card-icon {
  transform: rotate(-5deg) scale(1.06);
}

.cards .card:nth-child(3n + 2) .card-icon {
  color: var(--accent-2);
  background: linear-gradient(135deg, #e7f4ec, #f4fbf6);
}

.cards .card:nth-child(3n) .card-icon {
  color: #8b5a00;
  background: linear-gradient(135deg, #fff2d7, #fffaf0);
}

.client-card img {
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-card:hover img {
  filter: none;
  opacity: 1;
}

.news-media img,
.product-media img,
.spotlight-media img {
  transition: transform 0.55s var(--ease);
}

.news:hover .news-media img,
.product:hover .product-media img,
.spotlight-media:hover img {
  transform: scale(1.035);
}

.cards .reveal:nth-child(2) {
  transition-delay: 60ms;
}

.cards .reveal:nth-child(3) {
  transition-delay: 120ms;
}

.cards .reveal:nth-child(4) {
  transition-delay: 180ms;
}

.cards .reveal:nth-child(5) {
  transition-delay: 240ms;
}

.cards .reveal:nth-child(6) {
  transition-delay: 300ms;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--pointer-x, 72%) var(--pointer-y, 28%),
    rgba(240, 138, 93, 0.22),
    transparent 68%
  );
  transition: opacity 0.35s ease;
}

.hero:hover::before {
  opacity: 1;
}

.hero-visual {
  z-index: 1;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% -4%;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(29, 107, 71, 0.35), transparent 66%);
  filter: blur(28px);
  animation: glow-pulse 7s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.04);
  }
}

@media (hover: none) {
  .hero::before {
    display: none;
  }
}

/* ============================================================
   Talleres de verano
   ============================================================ */

/* Distintivo de temporada, usado en home, talleres y la ficha */
.season-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.season-flag svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

/* Panel destacado: mismo panel informativo, con acento de temporada */
.info-panel--season {
  border-color: rgba(217, 85, 42, 0.34);
  background:
    radial-gradient(620px 320px at 100% 0%, rgba(217, 85, 42, 0.1), transparent 62%),
    var(--surface);
}

.workshop-card--season {
  border-color: rgba(217, 85, 42, 0.4);
  box-shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 18px 40px rgba(217, 85, 42, 0.12);
}

.workshop-card--season .workshop-badge {
  background: var(--accent-dark);
  color: #fff;
}

/* Calendario de semanas del taller de verano */
.weeks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.week {
  padding: 18px 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.week--short {
  border-color: rgba(217, 85, 42, 0.34);
  background: var(--accent-soft);
}

.week-num {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.week-dates {
  display: block;
  margin-top: 7px;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.week-meta {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.week--short .week-meta {
  color: var(--ink-soft);
}

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

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

/* Enlaces de los horarios, alineados al pie de la tarjeta */
#sala-maker .card .text-link {
  margin-top: auto;
}

/* ============================================================
   Franja de datos destacados enlazada del home
   ============================================================ */
a.trust-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.trust-item strong::after {
  content: "\2192";
  display: inline-block;
  margin-left: 6px;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

a.trust-item:hover strong::after,
a.trust-item:focus-visible strong::after {
  opacity: 0.9;
  transform: none;
}

a.trust-item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -10px;
}

/* ============================================================
   Encabezado de la seccion Talleres: todo el ancho disponible
   ============================================================ */
#talleres .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  align-items: end;
  gap: 12px clamp(28px, 4vw, 60px);
  max-width: none;
}

#talleres .section-head .eyebrow {
  grid-column: 1 / -1;
  justify-self: start;
}

#talleres .section-head h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.4vw, 3.05rem);
  text-wrap: balance;
}

#talleres .section-head .section-sub {
  padding-bottom: 4px;
  font-size: 1.06rem;
  line-height: 1.6;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  #talleres .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0;
  }

  #talleres .section-head h2 {
    margin-bottom: 16px;
  }
}

/* ============================================================
   Mini calendario de las semanas del taller de verano
   ============================================================ */
.info-panel > * {
  min-width: 0;
}

.workshop-meta .workshop-meta--cal {
  display: block;
  min-width: 0;
}

.workshop-meta .workshop-meta--cal dd {
  min-width: 0;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}

.workshop-meta .mini-cal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.workshop-meta .mini-cal-month {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 7px 5px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.workshop-meta .mini-cal-title {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-family: "Sora", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.workshop-meta .mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.workshop-meta .mc-dow {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.workshop-meta .mc {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 16px;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
  padding: 0;
}

.workshop-meta .mc--vacio {
  background: transparent;
}

.workshop-meta .mc--clase {
  background: var(--accent-dark);
  color: #fff;
  font-weight: 700;
}

.workshop-meta .mc--feriado {
  border: 1px dashed rgba(184, 67, 31, 0.55);
  background: var(--accent-soft);
  color: var(--accent-dark);
  text-decoration: line-through;
}

.workshop-meta .mini-cal-leyenda {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.workshop-meta .mini-cal-leyenda .mc-ley {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 5px 0 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--accent-dark);
  vertical-align: middle;
}

.workshop-meta .mini-cal-leyenda .mc-ley--feriado {
  border: 1px dashed rgba(184, 67, 31, 0.55);
  background: var(--accent-soft);
}

@media (max-width: 420px) {
  .workshop-meta .mini-cal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Foto del panel de verano: rellena el espacio libre junto a la tarjeta */
.panel-photo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.panel-photo img {
  width: 100%;
  object-fit: cover;
}

.panel-photo figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Dentro de la columna de texto del panel de verano: ocupa el hueco que queda */
#talleres .info-panel--season,
#verano .info-panel--season {
  align-items: stretch;
}

.info-panel--season .panel-copy {
  display: flex;
  flex-direction: column;
}

.info-panel--season .panel-copy .season-flag {
  align-self: flex-start;
  margin-bottom: 12px;
}

.panel-photo--inline {
  flex: 1 1 auto;
  min-height: 150px;
  max-height: 380px;
  margin: 22px 0 0;
}

.panel-photo--inline img {
  flex: 1 1 auto;
  min-height: 0;
  object-position: 50% 40%;
}

/* En talleres.html la columna de texto ya trae lista de chequeo: foto más baja */
.panel-photo--inline-sm {
  max-height: 270px;
}

/* El título del panel de verano sigue la tipografía de las tarjetas de talleres */
#talleres .info-panel--season .panel-copy h2 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

#talleres .info-panel--season .panel-copy > p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Franja verde: cada dato en una sola línea en pantallas amplias */
@media (min-width: 1100px) {
  .trust--forest .trust-grid {
    grid-template-columns: 1.12fr 1fr 1.06fr 1.12fr 0.8fr;
  }

  .trust--forest .trust-item {
    padding-right: 14px;
    padding-left: 14px;
  }

  .trust--forest .trust-item:first-child {
    padding-left: 0;
  }

  .trust--forest .trust-item strong {
    font-size: clamp(0.78rem, 1.02vw, 0.875rem);
    white-space: nowrap;
  }
}

/* Panel de la ficha de verano: la foto ocupa la altura de la columna vecina */
.info-panel--season .photo-feature {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.info-panel--season .photo-feature img {
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
}




