/* ======================================================
   AESTILY — EDITORIAL MAGAZINE
   styles.css — Global Stylesheet
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400;1,14..32,600&display=swap');

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== VARIABLES ===== */
:root {
  --bg:           #F4F2EC;
  --surface:      #FFFFFF;
  --surface-2:    #ECEAE3;
  --surface-3:    #E2DFD7;
  --text:         #111111;
  --text-muted:   #74706A;
  --text-light:   #A8A49D;
  --accent:       #1A67F5;
  --accent-hover: #1450CC;
  --accent-light: #EBF1FF;
  --tag-bg:       #DDE8FE;
  --tag-text:     #1450CC;
  --border:       #DEDBD3;
  --border-light: #EAE8E2;

  --footer-bg:     #111111;
  --footer-muted:  #58585A;
  --footer-link:   #888884;

  --nav-h:    66px;
  --max-w:    1300px;
  --gap:      28px;
  --gap-sm:   16px;

  --r-xs:  6px;
  --r-sm:  12px;
  --r-md:  18px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-2xl: 44px;

  --t-fast: 0.18s ease;
  --t-med:  0.3s cubic-bezier(0.25, 0, 0, 1);
  --t-slow: 0.5s cubic-bezier(0.25, 0, 0, 1);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.1);
}

/* ===== BASE ===== */
html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

body { min-height: 100vh; background-color: var(--bg); color: var(--text); }

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

ul, ol { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ===== UTILITIES ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.page-content { padding-top: var(--nav-h); }

/* ===== TAG / PILL ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.tag--white {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.tag--dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.tag--white.tag--dot::before {
  background: rgba(255,255,255,0.8);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  background: rgba(244, 242, 236, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

/* Logo image in header — banner aspect ratio 5:2 */
.logo-img-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--t-fast);
  height: 38px;
}

.logo-img-wrap:hover { opacity: 0.7; }

.logo-img-wrap img {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* Fallback text logo */
.logo {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--text);
  flex-shrink: 0;
  transition: opacity var(--t-fast);
}
.logo:hover { opacity: 0.7; }
.logo em { color: var(--accent); font-style: normal; }

/* Nav centered absolutely */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--text); font-weight: 600; }

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.see-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.see-all:hover { color: var(--text); }

/* ===== HERO SECTION ===== */
.hero-section { padding: 44px 0 56px; }

/* Featured card — fills sidebar height */
.hero-featured {
  display: block;
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  min-height: 400px;
  height: 100%;
  background: var(--surface-2);
  transition: box-shadow var(--t-med);
  cursor: pointer;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 348px;
  gap: var(--gap);
  align-items: stretch;
}

.hero-featured:hover {
  box-shadow: var(--shadow-lg);
}

.hero-featured__img {
  position: absolute; inset: 0;
}

.hero-featured__img img {
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(0.25, 0, 0, 1);
}

.hero-featured:hover .hero-featured__img img {
  transform: scale(1.02);
}

.hero-featured__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, transparent 25%, rgba(8, 6, 3, 0.72) 100%);
}

.hero-featured__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 36px 36px;
}

.hero-featured__tag { margin-bottom: 14px; }

.hero-featured__title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFF;
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 520px;
}

.hero-featured__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
}

.hero-featured__meta span { color: rgba(255,255,255,0.35); }

/* Sidebar — 4 recent articles */
.hero-sidebar { display: flex; flex-direction: column; }

.hero-sidebar__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sidebar-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: opacity var(--t-fast);
}

.sidebar-card:last-child { border-bottom: none; }
.sidebar-card:hover { opacity: 0.68; }

.sidebar-card__img {
  width: 88px;
  height: 64px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
  position: relative;
}

.sidebar-card__img img { transform: scale(1); transition: transform 0.7s cubic-bezier(0.25, 0, 0, 1); }
.sidebar-card:hover .sidebar-card__img img { transform: scale(1.06); }

.sidebar-card__body {}
.sidebar-card__tag { margin-bottom: 6px; }

.sidebar-card__title {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 7px;
}

.sidebar-card__meta {
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  gap: 5px;
  align-items: center;
}

/* ===== HERO CTA BUTTON ===== */
.hero-cta {
  margin-top: 28px;
  margin-bottom: 52px;
  display: flex;
  justify-content: center;
}

.hero-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 4px 18px rgba(26, 103, 245, 0.28);
}

.hero-cta__btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 103, 245, 0.38);
}

/* ===== MORE ARTICLES SECTION ===== */
.more-section {
  padding: 48px 0 80px;
  border-top: 1px solid var(--border);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.article-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med);
  cursor: pointer;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
}

.article-card--v1 { border-radius: var(--r-xl); }
.article-card--v2 { border-radius: var(--r-lg) var(--r-2xl) var(--r-lg) var(--r-lg); }
.article-card--v3 { border-radius: var(--r-2xl) var(--r-lg) var(--r-2xl) var(--r-md); }

.article-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
  position: relative;
}

.article-card__img img { transform: scale(1); transition: transform 0.7s cubic-bezier(0.25, 0, 0, 1); }
.article-card:hover .article-card__img img { transform: scale(1.05); }

.article-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__tag { margin-bottom: 10px; }

.article-card__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 10px;
  flex: 1;
}

.article-card__excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.article-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.author-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
}

.article-card__read-time {
  font-size: 11px;
  color: var(--text-light);
}

/* ===== ARTICLE READING PAGE (2 panels) ===== */
.article-page {
  display: grid;
  grid-template-columns: 304px 1fr 304px;
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  align-items: start;
}

/* Empty left column for visual symmetry */
.article-page::before {
  content: '';
  display: block;
  grid-column: 1;
  grid-row: 1;
}

.art-center { background: var(--surface); grid-column: 2; grid-row: 1; }

.art-right {
  grid-column: 3;
  grid-row: 1;
  border-left: 1px solid var(--border);
  padding: 28px 18px 40px;
  background: var(--bg);
  position: sticky;
  top: var(--nav-h);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.art-body { padding: 36px 44px 80px; }

.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}

.author-card__av {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--text-muted);
}

.author-card__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 3px;
}

.author-card__role {
  font-size: 11px;
  color: var(--text-light);
}

.cats-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}

.cats-list { display: flex; flex-direction: column; gap: 1px; }

.cats-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: var(--r-xs);
  transition: color var(--t-fast), background var(--t-fast);
}

.cats-list li a:hover { color: var(--text); background: var(--surface-2); }

.cats-list li.active a {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 650;
}

.cats-list li a .count {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
}

.cats-list li.active a .count { color: var(--accent); opacity: 0.6; }

.art-hero-img {
  width: 100%;
  margin: 0 0 32px 0;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16/9;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  position: relative;
}

.art-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-tag { margin-bottom: 16px; }

.art-title {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.art-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.art-meta strong { color: var(--text); }

.art-content { font-size: 15.5px; line-height: 1.78; color: var(--text); }
.art-content p { margin-bottom: 22px; text-align: justify; }

.art-content h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text);
}

.art-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 12px;
}

.art-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  margin: 32px 0;
  background: var(--accent-light);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}

.art-content strong { font-weight: 700; }

.art-content .inline-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 32px 0;
  aspect-ratio: 16/9;
  max-height: 380px;
  background: var(--surface-2);
}

.related-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.related-card {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: opacity var(--t-fast);
}

.related-card:last-child { border-bottom: none; }
.related-card:hover { opacity: 0.65; }

.related-card__img {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface-2);
  margin-bottom: 12px;
  position: relative;
}

.related-card__img img { transform: scale(1); transition: transform 0.7s cubic-bezier(0.25, 0, 0, 1); }
.related-card:hover .related-card__img img { transform: scale(1.05); }

.related-card__tag { margin-bottom: 6px; }

.related-card__title {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 7px;
  color: var(--text);
}

.related-card__meta { font-size: 11px; color: var(--text-light); }

/* ===== ARTICLES LIST PAGE — HORIZONTAL ROWS ===== */
.arts-page { padding: 52px 0 96px; }
.arts-page-header { margin-bottom: 40px; }

.arts-page-title {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 8px;
}

.arts-page-sub { font-size: 15px; color: var(--text-muted); }

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: all var(--t-fast);
}

.filter-btn:hover { color: var(--text); border-color: var(--text-muted); }

.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ===== ARTICLES PAGE LAYOUT (sidebar + main) ===== */
.arts-layout {
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 40px;
  align-items: start;
}

.arts-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.arts-sidebar__section {
  margin-bottom: 32px;
}

.arts-sidebar__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.filter-bar-v {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.filter-bar-v .filter-btn {
  border-radius: var(--r-xs);
  padding: 8px 12px;
  text-align: left;
  border: none;
  background: transparent;
  font-size: 13px;
}

.filter-bar-v .filter-btn:hover {
  background: var(--surface-2);
  border-color: transparent;
}

.filter-bar-v .filter-btn.active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: transparent;
  font-weight: 650;
}

.arts-count {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.arts-main { min-width: 0; }

/* HORIZONTAL ROWS */
.arts-list-rows {
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.article-row {
  display: grid;
  grid-template-columns: 192px 1fr 130px;
  align-items: center;
  gap: 28px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t-fast), border-radius var(--t-fast);
  cursor: pointer;
  border-radius: 0;
  margin: 0;
}

.article-row:first-child { border-top: 1px solid var(--border-light); }

.article-row:hover {
  background: var(--surface);
  border-radius: var(--r-lg);
  border-bottom-color: transparent;
  box-shadow: var(--shadow-sm);
}

.article-row__img {
  width: 192px;
  height: 116px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
  position: relative;
}

.article-row__img img { transform: scale(1); transition: transform 0.7s cubic-bezier(0.25, 0, 0, 1); }
.article-row:hover .article-row__img img { transform: scale(1.05); }

.article-row__body { flex: 1; min-width: 0; }
.article-row__tag { margin-bottom: 8px; }

.article-row__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 8px;
}

.article-row__excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  text-align: right;
}

.article-row__author {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.article-row__date {
  font-size: 11px;
  color: var(--text-light);
}

.article-row__readtime {
  font-size: 11px;
  color: var(--text-light);
  background: var(--surface-2);
  padding: 3px 9px;
  border-radius: 100px;
}

/* ===== ABOUT PAGE ===== */
.about-page { padding: 60px 0 100px; }
.about-header { margin-bottom: 72px; }

.about-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.about-title {
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 700px;
}

.about-lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 580px;
}

.founders-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 88px;
}

.founder-card {
  background: var(--surface);
  border-radius: var(--r-2xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  transition: transform var(--t-med), box-shadow var(--t-med);
}

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

.founder-card--2 { border-radius: var(--r-lg) var(--r-2xl) var(--r-2xl) var(--r-xl); }

.founder-card__img {
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
  min-height: 240px;
}

.founder-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(0,0,0,0.08);
  background: var(--surface-2);
}

.founder-card--2 .founder-card__img-placeholder { background: var(--surface-3); }

.founder-card__body { padding: 28px 32px 34px; }

.founder-card__role {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.founder-card__name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.founder-card__bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.founder-card__contact { display: flex; flex-direction: column; gap: 7px; }

.founder-card__contact a {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast);
}

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

/* Foto fundador — reemplaza el placeholder de letra */
.founder-card__img-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
}

.founder-card__contact svg { width: 14px; height: 14px; opacity: 0.85; flex-shrink: 0; fill: currentColor; color: inherit; }

/* History section */
.history-section {
  border-top: 1px solid var(--border);
  padding-top: 72px;
}

.history-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.history-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 48px;
  max-width: 500px;
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}

.history-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.82;
  margin-bottom: 16px;
}

.history-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-box {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 26px 22px;
}

.stat-box__n {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-box__label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== TIMELINE (founding process) ===== */
.timeline-section {
  padding: 72px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.timeline-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  text-align: center;
}

.timeline-title {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 64px;
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.timeline {
  position: relative;
  padding: 0 0 80px;
}

/* Center vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border) 8%, var(--border) 92%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 56px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Odd: card on LEFT side */
.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(odd) .timeline-spacer {
  order: 2;
  width: calc(50% - 30px);
  flex-shrink: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
  order: 1;
  width: calc(50% - 30px);
  flex-shrink: 0;
  text-align: right;
}

/* Even: card on RIGHT side */
.timeline-item:nth-child(even) {
  flex-direction: row;
}

.timeline-item:nth-child(even) .timeline-spacer {
  order: 1;
  width: calc(50% - 30px);
  flex-shrink: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  order: 2;
  width: calc(50% - 30px);
  flex-shrink: 0;
  text-align: left;
}

/* Dot on the center line */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  z-index: 2;
  box-shadow: 0 0 0 2px var(--accent);
  transition: transform var(--t-med), box-shadow var(--t-med);
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.5);
  box-shadow: 0 0 0 5px rgba(26, 103, 245, 0.15);
}

.timeline-content {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-med), transform var(--t-med);
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.timeline-year {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
}

.timeline-heading {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.timeline-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
  background: var(--footer-bg);
  color: #fff;
  overflow: hidden;
}

.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px var(--gap) 0;
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 48px;
}

/* Hide contact column everywhere */
.footer-col--contact { display: none !important; }

.footer-brand {}

/* Footer logo — square 1:1 */
.footer-logo-img-wrap {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.footer-logo-img-wrap img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-logo {
  display: block;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--footer-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.footer-socials { display: flex; gap: 8px; }

.soc-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-xs);
  background: #1C1C1C;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
  cursor: pointer;
}

.soc-btn:hover { background: var(--accent); }
.soc-btn svg { width: 15px; height: 15px; fill: #fff; }

.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--footer-muted);
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 11px; }

.footer-col ul li a {
  font-size: 14px;
  color: var(--footer-link);
  transition: color var(--t-fast);
}

.footer-col ul li a:hover { color: #fff; }

.footer-divider {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 0 var(--gap);
  height: 1px;
  background: #1E1E1E;
}

/* Big centered name at bottom — slightly cropped */
.footer-big-name {
  text-align: center;
  padding: 0;
  margin-top: 4px;
  user-select: none;
  overflow: hidden;
  line-height: 0;
}

.footer-big-name span {
  display: inline-block;
  font-size: clamp(100px, 20vw, 300px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 0.78;
  opacity: 0.05;
  /* Push it down so it's cropped at the bottom */
  transform: translateY(16%);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--gap) 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--footer-muted);
  position: relative;
  z-index: 1;
}

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

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
  font-size: 15px;
}

/* ===== HERO ENTRANCE ANIMATIONS ===== */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Masthead elements — cascade down the page */
.masthead__eyebrow  { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.05s; }
.masthead__title    { animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.18s; }
.masthead__subtitle { animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.30s; }
.masthead__cta      { animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.42s; }

/* Hero grid — appears after masthead settles */
#hero-grid { animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.30s; }
.hero-cta  { animation: heroFadeIn 0.8s ease both; animation-delay: 0.70s; }

/* Legacy fade-up utility (kept for other sections) */
@keyframes fadeUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-up { animation: fadeUp 0.5s var(--t-med) both; }
.fade-up--1 { animation-delay: 0.05s; }
.fade-up--2 { animation-delay: 0.12s; }
.fade-up--3 { animation-delay: 0.19s; }
.fade-up--4 { animation-delay: 0.26s; }
.fade-up--5 { animation-delay: 0.33s; }

/* ===== RESPONSIVE — article page ===== */
@media (max-width: 1100px) {
  .article-page {
    grid-template-columns: 1fr 280px;
  }
  .article-page::before { display: none; }
  .art-center { grid-column: 1; }
  .art-right  { grid-column: 2; }
}

@media (max-width: 768px) {
  .article-page {
    grid-template-columns: 1fr;
  }
  .art-right {
    grid-column: 1;
    position: static;
    max-height: none;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .art-body { padding: 24px 20px 60px; }
}

/* ═══════════════════════════════════════════════════════════
   HEADER — BOTÓN SUSCRIBIRSE
═══════════════════════════════════════════════════════════ */
.header-subscribe-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  margin-left: auto;
  position: relative;
  overflow: hidden;
}
.header-subscribe-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-160%) skewX(-20deg);
  pointer-events: none;
  border-radius: inherit;
}
.header-subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(26,103,245,0.45), 0 4px 14px rgba(26,103,245,0.3);
}
.header-subscribe-btn:hover::before {
  animation: btnSwish 0.6s ease-out both;
}

@keyframes btnSwish {
  from { transform: translateX(-160%) skewX(-20deg); }
  to   { transform: translateX(320%) skewX(-20deg); }
}

/* ═══════════════════════════════════════════════════════════
   MODAL DE SUSCRIPCIÓN — COZY REDESIGN
═══════════════════════════════════════════════════════════ */
.subs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.subs-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.subs-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 40px 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22), 0 4px 20px rgba(0,0,0,0.1);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

/* Decorative background blobs */
.subs-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(26,103,245,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.subs-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(26,103,245,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.subs-overlay.open .subs-card {
  transform: translateY(0) scale(1);
}
.subs-card__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  transition: background var(--t-fast), color var(--t-fast);
}
.subs-card__close:hover {
  background: var(--surface-2);
  color: var(--text);
}
.subs-card__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.subs-card__title {
  font-size: 26px;
  font-weight: 900;
  font-style: normal;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
}
.subs-card__desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: rgba(26,103,245,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.subs-card__desc strong { color: var(--text); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   NEWSLETTER SECTION — REDISEÑO CON IMAGEN
═══════════════════════════════════════════════════════════ */
.newsletter-section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.newsletter-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-2);
}
.newsletter-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.newsletter-floating-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 36px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.04);
}
.newsletter-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.newsletter-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 10px;
}
.newsletter-promise {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.newsletter-promise strong { color: var(--text); font-weight: 650; }
.newsletter-form__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}
.newsletter-form__row { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form__input {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  box-sizing: border-box;
}
.newsletter-form__input::placeholder { color: var(--text-light); }
.newsletter-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.newsletter-form__btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background var(--t-fast), transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}
.newsletter-form__btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-160%) skewX(-20deg);
  pointer-events: none;
}
.newsletter-form__btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,103,245,0.4), 0 2px 8px rgba(26,103,245,0.2);
}
.newsletter-form__btn:hover::after {
  animation: btnSwish 0.55s ease-out both;
}
.newsletter-form__btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.newsletter-form__btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.newsletter-form__feedback {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.newsletter-form__feedback.success { display: block; background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.newsletter-form__feedback.error { display: block; background: #FFF3E0; color: #E65100; border: 1px solid #FFCC80; }
.newsletter-form__note {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* Modal-specific button overrides — more premium */
.subs-card .newsletter-form__btn {
  background: linear-gradient(135deg, var(--accent) 0%, #1450CC 100%);
  font-size: 15px;
  padding: 15px 20px;
  border-radius: 100px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 16px rgba(26,103,245,0.25);
}
.subs-card .newsletter-form__btn:hover {
  background: linear-gradient(135deg, #2070FF 0%, #1040BB 100%);
  box-shadow: 0 8px 28px rgba(26,103,245,0.45), 0 2px 8px rgba(26,103,245,0.2);
  transform: translateY(-2px);
}

/* Modal input — slightly warmer */
.subs-card .newsletter-form__input {
  background: var(--surface);
  border-color: var(--border);
  border-radius: 100px;
  padding: 13px 20px;
}
.subs-card .newsletter-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(26,103,245,0.1);
}

/* Modal note */
.subs-card .newsletter-form__note {
  color: var(--text-light);
  font-size: 11.5px;
}

@media (max-width: 768px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
  .newsletter-img-wrap { aspect-ratio: 16/9; }
  .subs-card { padding: 28px 24px 24px; }
}


/* ╔══════════════════════════════════════════════════════════════════╗
   ║  AESTILY — SISTEMA COMPLETO DE ADAPTACIÓN MÓVIL                 ║
   ║  Breakpoints: 480px (xs), 640px (sm), 768px (md)               ║
   ║  Animaciones: jerarquía unificada, suaves, conectadas           ║
   ╚══════════════════════════════════════════════════════════════════╝ */

/* ════════════════════════════════════════════════════════════════════
   SISTEMA DE ANIMACIONES UNIFICADO
   Jerarquía: entrada → contenido → soporte → decorativo
   Todas las animaciones usan la misma curva y ritmo
════════════════════════════════════════════════════════════════════ */

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --anim-dur-fast: 0.5s;
  --anim-dur-med:  0.7s;
  --anim-dur-slow: 0.9s;
}

/* Clases de animación reutilizables */
@keyframes fadeUpSmooth {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInSmooth {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleInSmooth {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Reemplazar los keyframes de entrada del hero con la curva unificada */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Masthead — cascada suave */
.masthead__eyebrow  { animation: heroFadeUp var(--anim-dur-slow) var(--ease-out-expo) both; animation-delay: 0.05s; }
.masthead__title    { animation: heroFadeUp var(--anim-dur-slow) var(--ease-out-expo) both; animation-delay: 0.16s; }
.masthead__subtitle { animation: heroFadeUp var(--anim-dur-med)  var(--ease-out-expo) both; animation-delay: 0.28s; }
.masthead__cta      { animation: heroFadeUp var(--anim-dur-med)  var(--ease-out-expo) both; animation-delay: 0.38s; }

/* Hero grid y CTA */
#hero-grid { animation: scaleInSmooth var(--anim-dur-slow) var(--ease-out-expo) both; animation-delay: 0.28s; }
.hero-cta  { animation: heroFadeIn var(--anim-dur-med) var(--ease-in-out-soft) both; animation-delay: 0.65s; }

/* Scroll reveal — más suave */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--anim-dur-med) var(--ease-out-expo),
              transform var(--anim-dur-med) var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.18s; }

/* fade-up para páginas internas */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp var(--anim-dur-slow) var(--ease-out-expo) both;
  animation-delay: 0.05s;
}
.fade-up--1 { animation-delay: 0.12s; }
.fade-up--2 { animation-delay: 0.22s; }
.fade-up--3 { animation-delay: 0.32s; }

/* Timeline — suavizar */
.timeline-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--anim-dur-med) var(--ease-out-expo),
              transform var(--anim-dur-med) var(--ease-out-expo);
}
.timeline-item.visible { opacity: 1; transform: translateY(0); }


/* ════════════════════════════════════════════════════════════════════
   HEADER MÓVIL — hamburger menu
════════════════════════════════════════════════════════════════════ */

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger-btn:hover { background: var(--surface-2); border-color: var(--text-muted); }
.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s var(--ease-out-expo), opacity 0.18s ease;
  transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav overlay backdrop */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 198;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Mobile nav drawer — left sidebar */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 88vw;
  background: var(--surface);
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  box-shadow: 8px 0 48px rgba(0,0,0,0.14), 2px 0 12px rgba(0,0,0,0.06);
  z-index: 199;
  transform: translateX(-100%);
  opacity: 1;
  pointer-events: none;
  transition: transform 0.36s var(--ease-out-expo);
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}
.mobile-nav-drawer.open {
  transform: translateX(0);
  pointer-events: all;
}

/* Drawer header */
.mnd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.mnd-logo {
  height: 28px;
  width: auto;
}
.mnd-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.mnd-close:hover { background: var(--surface-3); color: var(--text); }
.mnd-close svg { width: 14px; height: 14px; }

/* Drawer body */
.mnd-body {
  flex: 1;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Section label */
.mnd-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 14px 8px 6px;
  margin: 0;
}

/* Nav links */
.mnd-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border: none;
  background: none;
}
.mnd-link:hover { background: var(--surface-2); color: var(--text); }
.mnd-link.active {
  background: var(--accent);
  color: #fff;
}
.mnd-link.active .mnd-icon { color: #fff; opacity: 1; }

.mnd-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.85;
  transition: background 0.15s;
}
.mnd-link:hover .mnd-icon { background: var(--surface-3); color: var(--text); }
.mnd-link.active .mnd-icon { background: rgba(255,255,255,0.2); }
.mnd-icon svg { width: 16px; height: 16px; }

/* Section card (for socials) */
.mnd-card {
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 6px;
  margin-top: 4px;
}

.mnd-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.mnd-social-link:hover { background: var(--surface-2); color: var(--text); }
.mnd-social-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.mnd-social-icon svg { width: 14px; height: 14px; fill: var(--text-muted); }

/* Bottom subscribe area */
.mnd-footer {
  padding: 14px 14px 32px;
  flex-shrink: 0;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.mobile-nav-drawer__subs-btn {
  width: 100%;
  padding: 15px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.mobile-nav-drawer__subs-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-160%) skewX(-20deg);
  pointer-events: none;
}
.mobile-nav-drawer.open .mobile-nav-drawer__subs-btn::before {
  animation: btnSwish 0.7s 0.4s ease-out both;
}
.mobile-nav-drawer__subs-btn:hover {
  box-shadow: 0 0 18px rgba(26,103,245,0.45), 0 4px 14px rgba(26,103,245,0.3);
  transform: translateY(-1px);
}
.mnd-footer-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 10px;
}


/* ════════════════════════════════════════════════════════════════════
   BREAKPOINT 768px — TABLET/MÓVIL GRANDE
════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Container */
  .container { padding: 0 18px; }

  /* Header */
  .header-inner { gap: 0; }
  .main-nav { display: none !important; }
  .header-subscribe-btn { display: none !important; }
  .hamburger-btn { display: flex; }
  .mobile-nav-drawer { display: flex; }
  .nav-overlay { display: block; }

  /* Logo */
  .logo-img-wrap img { max-width: 110px; }

  /* ── MASTHEAD ── */
  .masthead { padding: 36px 0 32px; }
  .masthead__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }
  .masthead__left { max-width: 100%; }
  .masthead__eyebrow { justify-content: center; }
  .masthead__title { font-size: clamp(30px, 9vw, 42px); line-height: 1.08; }
  .masthead__subtitle { font-size: 15px; line-height: 1.65; max-width: 100%; }
  .masthead__cta {
    margin-top: 24px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .masthead__btn {
    padding: 13px 28px;
    font-size: 14px;
    width: 100%;
    text-align: center;
    display: block;
  }
  .masthead__link { font-size: 14px; }

  /* ── HERO SECTION ── */
  .hero-section { padding: 32px 0 0; }
  .hero-section .container {
    padding-left: 18px;
    padding-right: 18px;
  }
  #hero-grid {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Hero grid: stack vertical */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* Hero featured: preserve full image, no cropping */
  .hero-featured {
    aspect-ratio: unset !important;
    min-height: unset;
    border-radius: var(--r-xl);
    display: flex;
    flex-direction: column;
  }
  .hero-featured__img {
    position: relative !important;
    inset: unset !important;
    width: 100%;
    flex-shrink: 0;
  }
  .hero-featured__img img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: unset !important;
  }
  .hero-featured__overlay {
    display: none;
  }
  .hero-featured__content {
    position: relative !important;
    bottom: unset !important;
    left: unset !important;
    right: unset !important;
    background: var(--surface);
    padding: 20px 20px 24px !important;
  }
  .hero-featured__title {
    font-size: clamp(16px, 5.5vw, 22px) !important;
    color: var(--text) !important;
  }
  .hero-featured__meta {
    color: var(--text-muted) !important;
  }
  .hero-featured .tag--white {
    background: var(--accent-light) !important;
    color: var(--accent) !important;
  }
  .hero-featured__corner {
    display: none;
  }

  /* Hero secondary: scroll horizontal en móvil */
  .hero-secondary {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin: 0 -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero-secondary::-webkit-scrollbar { display: none; }
  .hero-secondary__label {
    display: none; /* Label hidden in carousel mode */
  }
  .sec-card {
    flex-direction: column !important;
    grid-template-columns: unset !important;
    width: 180px;
    min-width: 180px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    border-bottom: none !important;
    padding: 0 !important;
    box-shadow: var(--shadow-sm);
  }
  .sec-card__img {
    width: 100% !important;
    height: 120px !important;
    border-radius: 0 !important;
    overflow: hidden;
    flex-shrink: 0;
  }
  .sec-card__img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
  }
  .sec-card > div:last-child { padding: 12px 12px 14px; margin-top: 0; }
  .sec-card__title { font-size: 12px; -webkit-line-clamp: 3; }
  .sec-card__meta { font-size: 10px; }
  .sec-card:hover { opacity: 1; }
  .sec-card:hover .sec-card__img img { transform: scale(1.04); }

  /* Hero CTA */
  .hero-cta { margin-top: 24px; margin-bottom: 36px; }
  .hero-cta__btn {
    padding: 14px 28px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  /* ── VALUE SECTION ── */
  .value-section { padding: 52px 0; }
  .value-inner {
    grid-template-columns: 1fr !important;
    gap: 36px;
  }
  .value-section .value-title { font-size: clamp(24px, 7vw, 34px); }
  .value-right { gap: 14px; }
  .value-item { padding: 18px 18px; gap: 14px; }
  .value-item__icon { width: 30px; height: 30px; }

  /* ── ARTICLES SECTION ── */
  .articles-section { padding: 52px 0 48px; }
  .articles-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
  }
  .articles-section__right { width: 100%; }
  .filter-bar {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    justify-content: flex-start !important;
    gap: 8px;
    margin: 0 -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; font-size: 12px; padding: 8px 14px; }

  /* Articles grid: stack vertical */
  .articles-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .art-card__img { height: auto; aspect-ratio: 16/9; }
  .art-card__body { padding: 18px 18px 16px; }

  /* Ver todos */
  .ver-todos-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  /* ── NEWSLETTER ── */
  .newsletter-section { padding: 48px 0; }
  .newsletter-inner {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  /* Imagen arriba con ratio 1:1, formulario debajo */
  .newsletter-img-wrap {
    aspect-ratio: 1/1;
    max-height: none;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
  .newsletter-floating-card {
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    border-top: none;
    padding: 28px 24px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }
  .newsletter-title { font-size: clamp(20px, 6vw, 26px); }

  /* ── FOOTER ── */
  .footer-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 28px !important;
    padding: 44px 18px 0 !important;
  }
  .footer-brand {
    padding-bottom: 24px;
    border-bottom: 1px solid #1E1E1E;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-col {
    width: 100%;
  }
  .footer-col ul {
    align-items: center !important;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-col h4 {
    text-align: center;
  }
  /* Contacto ya oculto globalmente */
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 16px 18px 24px;
  }
  .footer-big-name span { font-size: clamp(80px, 24vw, 160px); }

  /* ── ARTS PAGE (articulos.html) ── */
  .arts-page { padding: 36px 0 72px; }
  .arts-page-title { font-size: clamp(28px, 9vw, 40px); }

  /* Filter bar horizontal scrollable */
  .arts-layout {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  /* Sidebar → horizontal scroll bar en móvil */
  .arts-sidebar {
    position: static !important;
    top: unset;
    margin-bottom: 24px;
  }
  .arts-sidebar__section:not(:first-child) { display: none; }
  .arts-sidebar__section:first-child { margin-bottom: 0; }
  .arts-sidebar__label { display: none; }
  .filter-bar-v {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
    margin: 0 -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .filter-bar-v::-webkit-scrollbar { display: none; }
  .filter-bar-v .filter-btn {
    border-radius: 100px !important;
    border: 1.5px solid var(--border) !important;
    background: var(--surface) !important;
    color: var(--text-muted) !important;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px !important;
    font-size: 12px;
  }
  .filter-bar-v .filter-btn.active {
    background: var(--text) !important;
    color: var(--bg) !important;
    border-color: var(--text) !important;
  }

  /* Article rows → cards en móvil */
  .article-row {
    grid-template-columns: 140px 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 14px !important;
    padding: 16px 12px;
    border-radius: var(--r-md);
  }
  .article-row__img {
    width: 140px !important;
    height: auto !important;
    aspect-ratio: 16/9;
    border-radius: var(--r-sm);
    grid-row: 1;
    grid-column: 1;
  }
  .article-row__img img {
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
  }
  .article-row__body {
    grid-row: 1;
    grid-column: 2;
  }
  .article-row__title { font-size: 14px; }
  .article-row__excerpt { display: none; }
  /* Meta abajo full width */
  .article-row__meta {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 10px;
    text-align: left !important;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
  }
  .article-row__readtime { margin-left: auto; }

  /* ── ABOUT PAGE (sobre.html) ── */
  .about-page { padding: 40px 0 72px; }
  .about-header { margin-bottom: 48px; }
  .about-title { font-size: clamp(26px, 8vw, 38px); }
  .about-lead { font-size: 15px; }

  /* Founder cards: imagen pequeña centrada (3:4) + texto debajo */
  .founder-card,
  .founder-card--2 {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    border-radius: var(--r-2xl) !important;
    min-height: unset;
    align-items: start;
  }
  .founder-card__img {
    width: 160px;
    aspect-ratio: 3/4;
    min-height: unset;
    height: auto;
    margin: 24px auto 0;
    border-radius: var(--r-xl);
  }
  .founder-card__img-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--r-xl);
  }
  .founder-card__body { padding: 20px 20px 24px; }
  .founder-card__name { font-size: 20px; }
  .founder-card__bio { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

  /* History section */
  .history-grid {
    grid-template-columns: 1fr !important;
    gap: 36px;
  }
  .history-stats {
    grid-template-columns: 1fr 1fr !important;
  }
  .stat-box__n { font-size: 34px; }

  /* Timeline: versión móvil — línea a la izquierda */
  .timeline::before {
    left: 18px !important;
  }
  .timeline-item {
    flex-direction: column !important;
    padding-left: 48px;
    gap: 0 !important;
    margin-bottom: 40px;
  }
  /* Todos los items al mismo lado en móvil */
  .timeline-item:nth-child(odd) .timeline-spacer,
  .timeline-item:nth-child(even) .timeline-spacer { display: none; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    order: unset !important;
    width: 100% !important;
    text-align: left !important;
  }
  .timeline-dot {
    left: 18px !important;
    top: 20px !important;
    transform: translateX(-50%) !important;
  }
  .timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.4) !important;
  }
  .timeline-content { padding: 18px 20px; }

  /* ── ARTICLE PAGE ── */
  .article-page {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .article-page::before { display: none !important; }
  .art-center {
    grid-column: 1 !important;
    order: 1;
    width: 100%;
  }
  .art-right {
    grid-column: 1 !important;
    order: 2;
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    border-left: none !important;
    border-top: 1px solid var(--border);
    padding: 28px 20px 40px;
    width: 100%;
  }
  .art-body { padding: 24px 20px 40px; }
  .art-title { font-size: clamp(22px, 7vw, 32px); letter-spacing: -0.03em; }
  .art-content { font-size: 15px; }
  .art-hero-img {
    border-radius: var(--r-xl);
    margin-bottom: 24px;
    aspect-ratio: unset !important;
    max-height: none !important;
  }
  .art-hero-img img {
    width: 100% !important;
    height: auto !important;
    object-fit: unset !important;
  }
  /* Inline images inside articles: preserve ratio */
  .art-content .inline-img {
    aspect-ratio: unset !important;
    max-height: none !important;
  }
  .art-content .inline-img img {
    width: 100% !important;
    height: auto !important;
    object-fit: unset !important;
    display: block;
  }
  .art-content .inline-img img {
    width: 100%;
    height: auto !important;
    object-fit: unset !important;
    display: block;
  }
  /* Related cards smaller */
  .related-card__img {
    aspect-ratio: 16/9;
  }
  .related-label { font-size: 11px; }
  .related-card__title { font-size: 13px; }

  /* ── SUBS MODAL ── */
  .subs-overlay { padding: 0; align-items: flex-end; }
  .subs-card {
    padding: 48px 28px 28px;
    border-radius: 0;
    max-width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .subs-overlay.open .subs-card {
    transform: translateY(0);
  }
  .subs-card__title { font-size: 24px; }

}


/* ════════════════════════════════════════════════════════════════════
   BREAKPOINT 480px — MÓVIL PEQUEÑO
════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  .container { padding: 0 16px; }

  /* Masthead */
  .masthead { padding: 28px 0 28px; }
  .masthead__title { font-size: clamp(26px, 10vw, 36px); }
  .masthead__subtitle { font-size: 14px; }

  /* Hero featured */
  .hero-featured { aspect-ratio: unset !important; }
  .hero-featured__title { font-size: clamp(15px, 6vw, 20px) !important; }
  .hero-featured__content { padding: 20px 20px 24px; }
  .hero-featured__title { font-size: clamp(16px, 6vw, 22px); }

  /* Sec cards más pequeñas */
  .sec-card { width: 156px; min-width: 156px; }
  .sec-card__img { height: auto !important; aspect-ratio: 4/3; }

  /* Value items */
  .value-item { flex-direction: column; gap: 12px; }
  .value-item__icon { width: 28px; height: 28px; }

  /* Articles section */
  .articles-section { padding: 40px 0 36px; }
  .art-card__img { height: auto; aspect-ratio: 16/9; }

  /* Footer cols: 1 columna en xs */
  .footer-top {
    flex-direction: column !important;
  }
  .footer-brand { border-bottom: 1px solid #1E1E1E; padding-bottom: 28px; }
  .footer-big-name span { font-size: clamp(70px, 22vw, 140px); }

  /* Founder card — sigue stacked en pantallas muy pequeñas */
  .founder-card,
  .founder-card--2 {
    grid-template-columns: 1fr !important;
  }
  .founder-card__img {
    width: 140px;
    min-height: unset;
  }
  .founder-card__name { font-size: 17px; }
  .founder-card__bio { -webkit-line-clamp: 3; }

  /* Timeline */
  .timeline::before { left: 14px !important; }
  .timeline-item { padding-left: 38px; }
  .timeline-dot { left: 14px !important; }

  /* Art page */
  .art-body { padding: 20px 16px 48px; }
  .art-content blockquote { padding: 14px 16px; font-size: 15px; }
}


/* ════════════════════════════════════════════════════════════════════
   MEJORAS TÁCTILES GLOBALES
════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Tap targets mínimo 44px */
  .main-nav a,
  .filter-btn,
  .soc-btn,
  .masthead__btn,
  .hero-cta__btn,
  .newsletter-form__btn,
  .mobile-nav-drawer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Eliminar hover transforms en táctil (mejora rendimiento) */
  .founder-card:hover { transform: none; }
  .article-card:hover { transform: none; }

  /* Scroll momentum suave */
  .hero-secondary,
  .filter-bar,
  .filter-bar-v {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  /* Subs modal en móvil: fullscreen slide-up */
  .subs-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .subs-card {
    border-radius: 24px 24px 0 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 100dvh !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 48px 28px calc(env(safe-area-inset-bottom, 0px) + 48px) !important;
    transform: translateY(100%) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .subs-overlay.open .subs-card {
    transform: translateY(0) !important;
  }
  .subs-card__title { font-size: 26px !important; }
  .subs-card__desc { font-size: 14px !important; }
  .subs-card__close {
    width: 36px !important;
    height: 36px !important;
    top: max(20px, env(safe-area-inset-top, 20px)) !important;
    right: 20px !important;
  }

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


/* ════════════════════════════════════════════════════════════════════
   MOBILE FILTER PILLS (articulos.html)
════════════════════════════════════════════════════════════════════ */
.mobile-filter-dropdowns {
  display: none;
}

/* Custom pill dropdown */
.mfd-pill {
  position: relative;
  flex-shrink: 0;
}

.mfd-pill__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.mfd-pill.open .mfd-pill__btn,
.mfd-pill.active .mfd-pill__btn {
  border-color: var(--text);
  color: var(--text);
  background: var(--surface-2);
}

.mfd-pill__arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mfd-pill.open .mfd-pill__arrow {
  transform: rotate(180deg);
}

.mfd-pill__panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 500;
  animation: pillPanelIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mfd-pill.open .mfd-pill__panel {
  display: block;
}

@keyframes pillPanelIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mfd-pill__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.mfd-pill__option:hover {
  background: var(--surface-2);
  color: var(--text);
}

.mfd-pill__option.active {
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

@media (max-width: 768px) {
  /* Hide desktop sidebar, show mobile pills */
  .arts-sidebar { display: none !important; }
  .mobile-filter-dropdowns {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -18px 24px;
    padding: 0 18px 4px;
  }
  .mobile-filter-dropdowns::-webkit-scrollbar { display: none; }

  /* Allow dropdown panels to overflow the scroll container */
  .mobile-filter-dropdowns:has(.mfd-pill.open) {
    overflow: visible;
  }
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE NAV DRAWER — fix display:none conflict
   (The drawer is flex when open, hidden otherwise)
════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .mobile-nav-drawer {
    display: flex !important;
    pointer-events: none;
  }
  .mobile-nav-drawer.open {
    pointer-events: all;
  }
}
