/* Design tokens — softer, more rounded look */
:root {
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --background: oklch(0.99 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.96 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --border: oklch(0.92 0 0);
  --input: oklch(0.92 0 0);
  --ring: oklch(0.708 0 0);
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.04);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 0.06), 0 2px 4px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 10px 30px rgb(0 0 0 / 0.06), 0 4px 10px rgb(0 0 0 / 0.04);
}

* { box-sizing: border-box; border-color: var(--border); }
*:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-sm); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

main { flex: 1; padding-bottom: 0.5rem; }

/* Layout — generous spacing, no cramped feel */
.container { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 768px) { .container { padding-left: 2rem; padding-right: 2rem; } }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.space-y-8 > * + * { margin-top: 2.5rem; }

/* Header — softer border, rounded nav links */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: blur(12px);
}
.site-header .container {
  display: flex;
  height: 4.25rem;
  align-items: center;
  justify-content: space-between;
}
.site-header a { text-decoration: none; color: inherit; }
.site-header .site-name { font-size: 1.25rem; font-weight: 700; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.site-nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { background: var(--accent); color: var(--accent-foreground); }

/* Buttons — rounded, soft hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  background: transparent;
}
.btn-ghost:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-outline {
  border: 1px solid var(--border);
  background: var(--background);
}
.btn-outline:hover { background: var(--accent); border-color: var(--accent); }
.btn-default { background: var(--primary); color: var(--primary-foreground); border-radius: var(--radius-md); }
.btn-default:hover { opacity: 0.9; }
.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: 0.8125rem; border-radius: var(--radius); }
.btn-icon { width: 2.5rem; height: 2.5rem; padding: 0; border-radius: var(--radius-full); }

/* Hero — soft background, rounded CTA */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--background);
}
.hero-paths {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-paths svg { width: 100%; height: 100%; color: #0f172a; }
.hero-paths path {
  stroke: currentColor;
  fill: none;
  opacity: 0.12;
  animation: pathFloat 25s linear infinite;
}
@keyframes pathFloat {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.4; }
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: -0.04em;
  background: linear-gradient(to right, #171717, #404040);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-cta-wrap {
  display: inline-block;
  position: relative;
  padding: 2px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-cta-wrap:hover { box-shadow: var(--shadow-lg); }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: calc(var(--radius-xl) - 2px);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: oklch(0.99 0 0);
}
.hero-cta .arrow { opacity: 0.7; transition: opacity 0.2s, transform 0.2s; }
.hero-cta:hover .arrow { opacity: 1; transform: translateX(6px); }

/* Carousel — more padding, softer radius and shadow */
.carousel-section { padding: 2rem 0 4rem; }
@media (min-width: 768px) { .carousel-section { padding: 5rem 0 5rem; } }
.carousel-wrap {
  position: relative;
  height: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(145deg, oklch(0.97 0 0 / 0.6), var(--background));
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .carousel-wrap { height: 600px; } }
.carousel-slides { position: absolute; inset: 0; }
.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.carousel-slide.active { opacity: 1; visibility: visible; }
.carousel-inner {
  display: grid;
  gap: 2.5rem;
  width: 100%;
  max-width: 64rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 768px) {
  .carousel-inner { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.carousel-image {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .carousel-image { height: 400px; } }
.carousel-text h3 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
@media (min-width: 768px) { .carousel-text h3 { font-size: 2.25rem; } }
.carousel-text .desc { font-size: 1.125rem; color: var(--muted-foreground); margin-bottom: 1.5rem; line-height: 1.6; }
.carousel-seo { background: oklch(0.97 0 0 / 0.5); border-radius: var(--radius); padding: 1.25rem; font-size: 0.875rem; color: var(--foreground); opacity: 0.9; line-height: 1.6; }
.carousel-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dots button {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  border: none;
  background: var(--muted-foreground);
  opacity: 0.35;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}
.carousel-dots button:hover { opacity: 0.6; }
.carousel-dots button.active { width: 2rem; border-radius: var(--radius-full); opacity: 1; background: var(--foreground); }

/* Cards — more gap, rounded corners, soft shadow, clear separation */
.cards-section { padding: 4rem 0 5rem; }
.section-head { margin-bottom: 3.5rem; }
.section-head h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.025em; }
.section-head p { font-size: 1.25rem; color: var(--muted-foreground); }
.cards-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; } }
.card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.75rem 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1.75rem;
}
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: none;
}
.card-title { font-size: 1.125rem; font-weight: 600; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { font-size: 0.875rem; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.55; margin: 0; }
.card-footer {
  margin-top: auto;
  padding: 0 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Info cards section — legal/contact (footer idea), soft pastel cards + CTA banner */
.info-cards-section {
  padding: 5rem 0 5.5rem;
  background: linear-gradient(180deg, var(--background) 0%, oklch(0.97 0 0 / 0.4) 100%);
}
.info-cards-head { text-align: center; margin-bottom: 3.5rem; }
.info-cards-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin: 0;
}
.info-cards-title-light { font-weight: 600; color: var(--muted-foreground); }
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .info-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}
@media (min-width: 1024px) {
  .info-cards-grid { grid-template-columns: repeat(5, 1fr); gap: 2rem; }
}
.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 1.25rem;
  border-radius: var(--radius-lg);
  border: none;
  text-decoration: none;
  color: var(--foreground);
  min-height: 160px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.info-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.info-card-icon svg { width: 32px; height: 32px; }
.info-card-label {
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.info-card-purple { background: oklch(0.92 0.06 280); }
.info-card-purple .info-card-icon { color: oklch(0.55 0.2 280); }
.info-card-pink { background: oklch(0.94 0.04 350); }
.info-card-pink .info-card-icon { color: oklch(0.55 0.18 350); }
.info-card-blue { background: oklch(0.93 0.05 240); }
.info-card-blue .info-card-icon { color: oklch(0.5 0.2 240); }
.info-card-peach { background: oklch(0.95 0.04 55); }
.info-card-peach .info-card-icon { color: oklch(0.55 0.15 55); }
.info-card-green { background: oklch(0.92 0.06 145); }
.info-card-green .info-card-icon { color: oklch(0.5 0.18 145); }

.info-cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  background: oklch(0.22 0 0);
  color: oklch(0.98 0 0);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .info-cta-banner { flex-direction: row; justify-content: space-between; align-items: center; padding: 2.25rem 3rem; }
}
.info-cta-text { text-align: center; }
@media (min-width: 768px) { .info-cta-text { text-align: left; } }
.info-cta-line1 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.info-cta-line2 {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin: 0;
}
.info-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.info-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: oklch(1 0 0);
  color: oklch(0.2 0 0);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.info-cta-btn:hover {
  background: oklch(0.96 0 0);
  color: oklch(0.25 0 0);
  transform: translateY(-1px);
}

/* Intro section (text + team photos) before footer */
.intro-section {
  padding: 4rem 0 5rem;
  background: var(--background);
}
@media (min-width: 768px) {
  .intro-section { padding: 5rem 0 6rem; }
}
.intro-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
  }
}
.intro-title {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--foreground);
  margin: 0 0 1.25rem;
}
.intro-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin: 0 0 1.75rem;
}
.intro-cta {
  background: oklch(0.2 0 0);
  color: oklch(0.98 0 0);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}
.intro-cta:hover {
  background: oklch(0.28 0 0);
  color: oklch(0.98 0 0);
}
.intro-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .intro-photos { gap: 1rem; max-width: 100%; }
}
.intro-photo {
  border-radius: var(--radius-lg);
  background: oklch(0.88 0.01 260);
  background-size: cover;
  background-position: center;
}
/* Fotos de la sección intro: coloque en images/intro/ los archivos intro-1.webp … intro-5.webp */
.intro-photo-1 { grid-column: 1; grid-row: 1; aspect-ratio: 4/3; background-image: url(../images/intro/intro-1.webp); }
.intro-photo-2 { grid-column: 2; grid-row: 1 / 3; min-height: 180px; background-image: url(../images/intro/intro-2.webp); }
.intro-photo-3 { grid-column: 1; grid-row: 2; aspect-ratio: 4/3; background-image: url(../images/intro/intro-3.webp); }
.intro-photo-4 { grid-column: 1; grid-row: 3; aspect-ratio: 4/3; background-image: url(../images/intro/intro-4.webp); }
.intro-photo-5 { grid-column: 2; grid-row: 3; aspect-ratio: 4/3; background-image: url(../images/intro/intro-5.webp); }
@media (min-width: 640px) {
  .intro-photo-2 { min-height: 220px; }
}

/* Typewriter hero (articulos) — more padding, soft gradient */
.typewriter-hero {
  padding: 7rem 0 6rem;
  background: linear-gradient(180deg, oklch(0.97 0 0 / 0.5) 0%, var(--background) 100%);
  text-align: center;
}
.typewriter-hero h1 { font-size: clamp(2.25rem, 4vw, 3.75rem); font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.025em; }
.typewriter-hero .gradient { background: linear-gradient(to right, #eab308, #f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.typewriter-hero p { font-size: 1.25rem; color: var(--muted-foreground); margin-bottom: 2rem; }
.typewriter-cursor { animation: blink 0.6s step-end infinite; }

/* Contact — more padding, rounded boxes, soft shadows */
.contact-section { padding: 4rem 0 5rem; }
@media (min-width: 768px) { .contact-section { padding: 5rem 0 6rem; } }
.contact-intro { text-align: center; margin-bottom: 3.5rem; }
.contact-intro h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; margin-bottom: 1rem; color: var(--foreground); }
.contact-intro p { font-size: 1.125rem; color: var(--muted-foreground); max-width: 42rem; margin: 0 auto; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 340px; gap: 3.5rem; } }
.contact-form-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .contact-form-box { padding: 2.5rem; } }
.contact-form-box h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--foreground); }
.contact-info-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: oklch(0.97 0 0 / 0.4);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-info-box h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; color: var(--foreground); }
.contact-info-box ul { list-style: none; padding: 0; margin: 0; }
.contact-info-box li { margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: 0.75rem; color: var(--muted-foreground); }
.contact-info-box li:last-child { margin-bottom: 0; }
.contact-info-box a { color: var(--primary); text-decoration: underline; }
.contact-info-box a:hover { color: var(--primary); opacity: 0.8; }
.contact-info-box .horario-box { background: oklch(0.97 0 0 / 0.25); border-radius: var(--radius); padding: 0.75rem 1rem; }
.form-group { margin-bottom: 1.75rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px oklch(0.708 0 0 / 0.15);
}
.form-row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-sent { text-align: center; padding: 2.5rem; border: 1px solid var(--border); background: oklch(0.97 0 0 / 0.4); border-radius: var(--radius-lg); }
.form-sent svg { color: var(--primary); margin: 0 auto; }
.form-sent h3 { margin-top: 1rem; font-size: 1.25rem; }
.form-sent p { color: var(--muted-foreground); margin-top: 0.5rem; }

/* About — rounded cards, more spacing */
.about-section { padding: 5rem 0 6rem; background: oklch(0.97 0 0 / 0.35); }
.about-section h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 1.5rem; }
.about-section .gradient { background: linear-gradient(to right, #eab308, #f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about-section p { font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.7; margin-bottom: 1.5rem; max-width: 56rem; }
.values-grid { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.value-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.value-card:hover { box-shadow: var(--shadow-md); }
.value-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0; line-height: 1.6; }

/* Page wrapper (min-h-screen bg-background) */
.page-wrap { min-height: 100vh; background: var(--background); }

/* Legal / article pages — more breathing room */
.legal-main { padding: 3.5rem 0 5rem; }
.legal-article { max-width: 48rem; margin: 0 auto; }
.legal-article .btn { margin-bottom: 2rem; margin-left: -0.25rem; border-radius: var(--radius); }
.legal-article h1 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.025em; }
.legal-article section { margin-top: 2.25rem; }
.legal-article h2 { font-size: 1.25rem; font-weight: 600; margin: 2.25rem 0 0.75rem; color: var(--foreground); }
.legal-article p { color: var(--muted-foreground); line-height: 1.75; margin-bottom: 1.125rem; }
.legal-article a { color: var(--primary); text-decoration: underline; }
.legal-article a:hover { text-decoration-thickness: 2px; }

/* Article post page — hero, author, footer (match Next layout) */
.article-page { max-width: 56rem; margin: 0 auto; }
.article-hero {
  background: oklch(0.97 0 0 / 0.5);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  margin: 0 -1.25rem 0;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 768px) { .article-hero { margin: 0 -2rem 0; padding-left: 2rem; padding-right: 2rem; } }
.article-hero .btn { margin-bottom: 1.5rem; margin-left: -0.25rem; border-radius: var(--radius); }
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}
.article-meta .badge { flex-shrink: 0; }
.article-meta .article-meta-item { font-size: 0.875rem; color: var(--muted-foreground); }
.article-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--foreground);
}
.article-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0 0 1.5rem;
}
.article-date {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.article-body {
  padding: 2.5rem 0 0;
}
.article-body.prose { max-width: none; }
.article-body h2 { scroll-margin-top: 5rem; }
.article-author {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.article-author-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.article-author-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 1.25rem;
  font-weight: 600;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-author-name { font-weight: 600; color: var(--foreground); margin: 0 0 0.25rem; }
.article-author-bio { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.5; margin: 0; }
.article-footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.article-footer .btn { border-radius: var(--radius); }
.article-footer-date { font-size: 0.875rem; color: var(--muted-foreground); }

/* Enlaces a otras dos artículos (final del artículo) */
.article-related {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.article-related h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--foreground);
}
.article-related-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .article-related-grid { grid-template-columns: repeat(2, 1fr); }
}
.article-related-link {
  display: block;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.article-related-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-related-link strong {
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-related-link span {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.35rem;
  display: block;
}

/* Reading progress bar (match Next) */
.reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 45;
  height: 3px;
  width: 0%;
  background: var(--primary);
  opacity: 0.9;
  transition: width 0.15s ease;
}
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.back-to-top:hover { opacity: 1; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.back-to-top[hidden] { display: none !important; }

/* Article TOC sidebar */
.article-with-toc { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .article-with-toc { grid-template-columns: 1fr 220px; align-items: start; }
}
.article-toc {
  position: sticky;
  top: 6rem;
}
.article-toc-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.article-toc-list {
  list-style: none;
  padding: 0 0 0 1rem;
  margin: 0;
  border-left: 2px solid var(--border);
}
.article-toc-list li { margin-bottom: 0.5rem; }
.article-toc-list a {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}
.article-toc-list a:hover { color: var(--foreground); }
.article-toc-list a.active { color: var(--primary); font-weight: 500; }
@media (max-width: 1023px) { .article-toc { display: none; } }

/* Footer — more padding, rounded alert, clear spacing */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: oklch(0.97 0 0 / 0.4);
  padding: 3.5rem 0 3rem;
}
.site-footer .container { max-width: 48rem; margin-left: auto; margin-right: auto; }
.site-footer .footer-inner { display: flex; flex-direction: column; gap: 2.5rem; }
.footer-legal { text-align: left; }
.footer-legal h3 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; color: var(--foreground); }
.footer-legal h3 a { text-decoration: none; color: inherit; }
.footer-legal h3 a:hover { text-decoration: underline; }
.footer-legal .text { font-size: 0.75rem; color: var(--muted-foreground); line-height: 1.65; }
.footer-legal .text p { margin-bottom: 0.75rem; }
.footer-legal .alert-box {
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.footer-legal .alert-box p { margin-bottom: 0.5rem; }
.footer-legal .alert-box p:last-child { margin-bottom: 0; }
.footer-legal .alert-box strong { color: var(--foreground); }
.footer-addresses { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); text-align: center; }
.footer-addresses span { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.75rem; font-size: 0.875rem; }
.footer-nav a { color: var(--muted-foreground); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--foreground); }
.footer-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.25rem; font-size: 0.75rem; color: var(--muted-foreground); }
.footer-legal-links a { color: var(--muted-foreground); text-decoration: none; transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--foreground); }
.footer-copy { font-size: 0.875rem; color: var(--muted-foreground); text-align: center; margin-top: 0.5rem; }

/* Cookie consent — rounded top, soft shadow */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--background);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgb(0 0 0 / 0.06);
  padding: 1.5rem 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.cookie-banner .container { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
@media (min-width: 768px) { .cookie-banner .container { flex-direction: row; align-items: center; justify-content: space-between; } }
.cookie-banner p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0; flex: 1; line-height: 1.5; }
.cookie-banner a { color: var(--primary); text-decoration: underline; font-weight: 500; }
.cookie-banner .actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.cookie-banner .actions .btn { border-radius: var(--radius); }
.cookie-banner.hidden { display: none; }

/* Prose (article body) — softer blockquote and table */
.prose { max-width: none; }
.prose h2 { font-size: 1.25rem; font-weight: 600; margin-top: 2.25rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1.125rem; line-height: 1.75; color: var(--muted-foreground); }
.prose ul { margin: 1.25rem 0; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.875rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.prose th, .prose td { padding: 0.875rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 600; background: oklch(0.97 0 0 / 0.5); }
.prose tr:last-child td { border-bottom: none; }
.prose blockquote {
  border-left: 4px solid oklch(0.205 0 0 / 0.2);
  padding: 1rem 1.25rem 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  background: oklch(0.97 0 0 / 0.35);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Key points / bars block (static equivalent of :::bars) */
.article-bars {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: oklch(0.97 0 0 / 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.article-bars .article-bars-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}
.article-bars ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.article-bars li {
  margin-bottom: 0.35rem;
  color: var(--muted-foreground);
}

/* Expandable details (static equivalent of :::expand) */
.article-details {
  margin: 1.25rem 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: oklch(0.99 0 0 / 0.5);
}
.article-details summary {
  padding: 0.875rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--foreground);
}
.article-details summary::-webkit-details-marker { display: none; }
.article-details summary::before { content: "▶ "; font-size: 0.75em; }
.article-details[open] summary::before { content: "▼ "; }
.article-details p {
  margin: 0;
  padding: 0 1.25rem 1rem;
  padding-top: 0;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@keyframes blink { 50% { opacity: 0; } }
