/* ===== Pla Art Agency — Premium Design System ===== */
:root {
  /* Corporate palette: blanco fondo · naranja #CC6828 · verde #3A4423 · blanco roto #D5D3C9 · negro/gris */
  --bg: #FFFFFF;
  --bg-alt: #D5D3C9;
  --bg-dark: #3A4423;
  --bg-footer: #3A4423;
  --text: #1A1A1A;
  --text-light: #4F4F4F;
  --text-muted: #6E6E6E;
  --text-on-dark: #FAFAF8;

  /* Brand orange reads 3.76:1 on white — below the 4.5:1 AA floor for body text.
     Reserve it for display type and surfaces; use the darker steps for small text
     and for fills that carry white text on top. */
  --accent: #CC6828;
  --accent-strong: #B25620;  /* button fills — white on this is 4.95:1 */
  --accent-text: #A34F1E;    /* small orange text on white is 5.68:1 */
  --accent-hover: #A34F1E;
  --accent-light: rgba(204,104,40,0.08);
  --green: #3A4423;
  --border: rgba(26,26,26,0.14);
  --border-dark: rgba(26,26,26,0.08);
  --radius: 0px; /* Sharp edges for a high-end editorial look */
  --max-w: 1440px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}


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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem; /* body copy bumped up per client feedback */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
p { font-size: 1.0625rem; }

img { max-width:100%; height:auto; display:block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px,4vw,60px); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ===== Typography ===== */
h1,h2,h3,h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.8rem,6vw,5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem,4.4vw,3.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem,2.6vw,1.9rem); }
h4 { font-weight: 500; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.85rem; color: var(--accent-text); }

/* Uppercase display heading — "¿CON QUIÉN TRABAJAMOS?", "NUESTRA MISIÓN", "CONTACTO" */
.display-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem,6vw,4.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-title { margin-bottom: 1rem; }
.section-subtitle { color: var(--text-light); font-size: 1.15rem; max-width: 640px; }
.section-subtitle.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-sans);
  font-size: 0.85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  border: 1px solid var(--text); border-radius: var(--radius);
  background: transparent; color: var(--text);
  transition: var(--transition);
  position: relative; overflow: hidden;
  cursor: pointer;
}
.btn::after {
  content:''; position:absolute; inset:0;
  background: var(--text); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); z-index:0;
}
.btn span, .btn i { position:relative; z-index:1; }
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--bg); border-color: var(--text); }

/* White label on brand orange is only 3.76:1 — fill with the darker step (4.95:1). */
.btn-accent {
  background: var(--accent-strong); color: white; border-color: var(--accent-strong);
}
.btn-accent::after { background: var(--accent-hover); }
.btn-accent:hover { color: white; border-color: var(--accent-hover); }
.btn-primary {
  background: var(--accent-strong); color: white; border-color: var(--accent-strong);
}
.btn-primary::after { background: var(--accent-hover); }
.btn-primary:hover { color: white; border-color: var(--accent-hover); }

.btn-outline-light { border-color: rgba(255,255,255,0.6); color: white; }
.btn-outline-light::after { background: white; }
.btn-outline-light:hover { color: var(--green); }

.btn-sm { padding: 10px 24px; font-size: 0.78rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent-text); transition: var(--transition);
}
.link-arrow i { transition: transform 0.3s ease; }
.link-arrow:hover i { transform: translateX(4px); }

/* ===== Header ===== */
header {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  padding: 20px 0;
  transition: var(--transition);
}
header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
}
.header-logo img { height: 40px; transition: var(--transition); }
header.scrolled .header-logo img { height: 32px; }

.nav-links { display: flex; align-items: center; gap: clamp(20px,3vw,40px); }
.nav-links a {
  font-size: 0.82rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text); transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-4px; left:0; width:0; height:1px;
  background: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }

.nav-cta {
  padding: 8px 20px !important; border: 1px solid var(--accent-strong) !important;
  border-radius: 100px !important; color: var(--accent-text) !important;
  font-weight: 600 !important; transition: var(--transition) !important;
}
.nav-cta:hover { background: var(--accent-strong) !important; color: white !important; }
.nav-cta::after { display: none !important; }

/* The hero now sits on a bright image behind a white scrim, so the header keeps
   dark type on every page — no inversion, and the black logo stays as-is. */
header.header-light .nav-cta { border-color: var(--accent-strong) !important; color: var(--accent-text) !important; }
header.header-light .nav-cta:hover { background: var(--accent-strong) !important; color: white !important; }
header.header-light .nav-links a { color: var(--text); }
header.header-light.scrolled .nav-links a { color: var(--text); }

/* Mobile menu */
.mobile-toggle {
  display: none; background: none; border: none;
  flex-direction: column; gap: 5px; padding: 8px;
}
.mobile-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--text); transition: var(--transition);
}
header.header-light .mobile-toggle span { background: var(--text); }
header.scrolled .mobile-toggle span { background: var(--text); }

.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.mobile-toggle.open span:nth-child(2) { opacity:0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

@media(max-width:900px) {
  .mobile-toggle { display:flex; }
  .nav-links {
    display:none;
    position:fixed; top:0; right:0; width:min(380px,85vw); height:100vh;
    background: var(--bg); flex-direction:column;
    justify-content:center; gap:32px;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  }
  .nav-links.open { display:flex; right:0; }
  .nav-links a { font-size:0.9rem; color: var(--text) !important; }
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position:absolute; inset:0; z-index:0;
  background-size: cover; background-position: center;
}
/* White scrim instead of the old dark one: the Guggenheim rotunda is a bright
   image, so lightening it lets the black headline and body copy read. */
.hero-bg::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.78) 100%);
}
.hero-content {
  position:relative; z-index:1; color: var(--text);
  max-width: 900px; padding: 0 20px;
}
.hero-content h1 { margin-bottom: 24px; color: var(--text); }
.hero-content p {
  font-size: clamp(1.1rem,1.9vw,1.3rem);
  color: var(--text);
  margin-bottom: 40px; line-height: 1.8;
}

/* Brand wordmark above the headline — orange, large, tracked out. */
.hero-brand {
  font-family: var(--font-sans);
  color: var(--accent);
  font-size: clamp(1.4rem,3.4vw,2.4rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-buttons { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

.hero-scroll {
  position:absolute; bottom:40px; left:50%; transform:translateX(-50%); z-index:1;
}
.hero-scroll span {
  display:block; width:1px; height:60px;
  background: linear-gradient(180deg, rgba(26,26,26,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:0.3; transform:scaleY(0.6); }
  50% { opacity:1; transform:scaleY(1); }
}

/* ===== Marquee ===== */
.marquee-section {
  padding: 40px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 60px; animation: marquee 12s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: var(--font-serif); font-size: clamp(1.6rem,3vw,2.6rem);
  color: var(--green); font-style: italic;
}
.marquee-track span.dot { color: var(--accent); }
@keyframes marquee {
  0% { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}

/* ===== Sections ===== */
section { padding: clamp(60px,10vw,120px) 0; }
.section-header {
  text-align: center; margin-bottom: clamp(40px,6vw,80px);
}

/* ===== About / Split section ===== */
.split-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,100px); align-items: center;
}
.split-image { position:relative; overflow:hidden; border-radius: var(--radius); }
.split-image img {
  width:100%; height:100%; object-fit:cover;
  transition: transform 0.6s ease;
}
.split-image:hover img { transform: scale(1.03); }
.split-text h4 { margin-bottom: 12px; }
.split-text h2 { margin-bottom: 24px; }
.split-text p { color: var(--text-light); margin-bottom: 16px; }
.split-text .link-arrow { margin-top: 16px; }

@media(max-width:768px) {
  .split-section { grid-template-columns:1fr; }
  .split-image { max-height: 400px; }
}

/* ===== Services Grid ===== */
.services-tabs {
  display: flex; justify-content:center; gap:8px; margin-bottom: 60px; flex-wrap:wrap;
}
.services-tabs button {
  padding: 12px 28px; border:1px solid var(--border);
  border-radius: 100px; background:transparent;
  font-size:0.85rem; font-weight:500;
  text-transform:uppercase; letter-spacing:0.12em;
  color: var(--text-light); transition: var(--transition);
}
.services-tabs button.active,
.services-tabs button:hover {
  background: var(--green); color: white; border-color: var(--green);
}

.services-panel { display:none; }
.services-panel.active { display:block; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.service-card {
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  background: var(--bg-alt);
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(26,26,26,0.12);
  transform: translateY(-4px);
}
.service-card h3 {
  font-size: 1.35rem; margin-bottom: 12px;
}
.service-card p {
  font-size: 1rem; color: var(--text-light); line-height: 1.7;
}

/* The four audience cards on the home page — uppercase and much larger. */
.client-card h3 {
  font-size: clamp(1.7rem,2.6vw,2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  margin-bottom: 16px;
}
/* Four across, so the fourth card never orphans onto its own row. */
.clients-grid { grid-template-columns: repeat(4, 1fr); }
@media(max-width:1100px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:600px)  { .clients-grid { grid-template-columns: 1fr; } }

/* ===== Artists Grid ===== */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}
.artist-card { position:relative; overflow:hidden; border-radius: var(--radius); }
.artist-card-img {
  aspect-ratio: 3/4; overflow:hidden;
  position: relative;
}
.artist-card-img img {
  width:100%; height:100%; object-fit:cover;
  transition: transform 0.6s ease;
}
.artist-card:hover .artist-card-img img { transform: scale(1.05); }
.artist-card-img::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.7));
  opacity:0; transition: opacity 0.4s ease;
}
.artist-card:hover .artist-card-img::after { opacity:1; }

.artist-card-info {
  position:absolute; bottom:0; left:0; right:0;
  padding: 24px; color:white; z-index:1;
  transform: translateY(20px); opacity:0;
  transition: var(--transition);
}
.artist-card:hover .artist-card-info {
  transform: translateY(0); opacity:1;
}
.artist-card-info h3 { font-size:1.4rem; margin-bottom:4px; }
.artist-card-info p { font-size:0.8rem; opacity:0.8; }

.artist-card-name {
  padding: 16px 0;
  font-family: var(--font-serif); font-size: 1.1rem;
}

/* ===== Artworks Gallery ===== */
.artworks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.artwork-card { cursor: pointer; }
.artwork-card-img {
  aspect-ratio: 1; overflow:hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.artwork-card-img img {
  width:100%; height:100%; object-fit:cover;
  transition: transform 0.5s ease;
}
.artwork-card:hover .artwork-card-img img { transform: scale(1.04); }
.artwork-card-meta {
  padding: 16px 4px;
}
.artwork-card-meta h3 { font-size:1rem; margin-bottom:4px; }
.artwork-card-meta p { font-size:0.8rem; color: var(--text-muted); }
.artwork-card-meta .price-tag {
  display:inline-block; margin-top:8px;
  font-size:0.7rem; text-transform:uppercase;
  letter-spacing:0.12em; color: var(--accent-text);
  font-weight:600;
}

/* ===== Lightbox ===== */
.lightbox {
  position:fixed; inset:0; z-index:2000;
  background:rgba(0,0,0,0.92); backdrop-filter:blur(10px);
  display:none; align-items:center; justify-content:center;
  padding:40px;
}
.lightbox.active { display:flex; }
.lightbox img { max-width:90vw; max-height:85vh; object-fit:contain; border-radius:2px; }
.lightbox-close {
  position:absolute; top:24px; right:24px;
  background:none; border:none; color:white;
  font-size:2rem; cursor:pointer; z-index:10;
  width:48px; height:48px; display:flex; align-items:center; justify-content:center;
}
.lightbox-info {
  position:absolute; bottom:40px; left:50%; transform:translateX(-50%);
  text-align:center; color:white;
}
.lightbox-info h3 { font-size:1.2rem; margin-bottom:4px; }
.lightbox-info p { font-size:0.85rem; opacity:0.7; }

/* ===== Values Section ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 40px;
}
.value-item { text-align:center; }
.value-item h3 {
  font-size:1.8rem; margin-bottom:12px;
  font-family: var(--font-serif); font-style:italic;
  color: var(--green);
}
.value-item p { font-size:1rem; color:var(--text-light); line-height:1.7; }
@media(max-width:768px) { .values-grid { grid-template-columns:1fr 1fr; } }
@media(max-width:480px) { .values-grid { grid-template-columns:1fr; } }

/* ===== Contact Form ===== */
.contact-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start;
}
.form-group { margin-bottom:20px; }
.form-group label {
  display:block; font-size:0.8rem; font-weight:600;
  text-transform:uppercase; letter-spacing:0.12em;
  margin-bottom:8px; color:var(--text-light);
}
.form-group input,
.form-group textarea,
.form-group select {
  width:100%; padding:14px 16px;
  background: #FFFFFF; border:1px solid var(--border);
  border-radius:var(--radius); font-family:var(--font-sans);
  font-size:1rem; color:var(--text);
  transition:var(--transition); outline:none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color:var(--accent-strong);
  box-shadow:0 0 0 1px var(--accent-strong);
  background: var(--bg);
}
.form-group textarea { resize:vertical; min-height:120px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* Checkboxes must opt out of the width:100% above, which stretched each box
   across the row and knocked its label out of alignment. */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
  width:auto; flex:none; margin:0;
  accent-color: var(--accent-strong);
  width:17px; height:17px;
}
.checkbox-grid { display:flex; flex-wrap:wrap; gap:12px 20px; margin-top:10px; }
.checkbox-grid label {
  display:flex; align-items:center; gap:8px;
  font-size:0.95rem; font-weight:400;
  text-transform:none; letter-spacing:0;
  margin-bottom:0; color:var(--text);
  cursor:pointer;
}
@media(max-width:768px) {
  .contact-grid { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
}

/* ===== Community / CTA Section ===== */
.cta-section {
  background: var(--green); color: var(--text-on-dark);
  text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 20px; }
.cta-section p { color: rgba(255,255,255,0.85); max-width:640px; margin:0 auto 32px; font-size:1.1rem; }

/* ===== Footer ===== */
footer {
  background: var(--bg-footer); color: white;
  padding: 60px 0 30px;
}
.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px;
  padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,0.2);
}
.footer-logo img { height:36px; filter:brightness(0) invert(1); margin-bottom:16px; }
/* Wide enough to keep "para el mercado del arte" from breaking "del arte" onto
   its own line; balance evens out the two lines. */
.footer-logo p {
  font-size:0.95rem; opacity:0.85; max-width:34ch; line-height:1.7;
  text-wrap: balance;
}
footer h4 {
  font-family:var(--font-sans); font-size:0.75rem;
  text-transform:uppercase; letter-spacing:0.15em;
  margin-bottom:16px; opacity:0.75; color:white;
}
.footer-links a {
  display:block; font-size:0.95rem; padding:4px 0;
  opacity:0.85; transition:var(--transition);
}
.footer-links a:hover { opacity:1; transform:translateX(4px); }
.footer-social { display:flex; gap:16px; }
.footer-social a {
  width:40px; height:40px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.3);
  display:flex; align-items:center; justify-content:center;
  transition:var(--transition);
}
.footer-social a:hover { background:white; color:var(--bg-footer); }
.footer-legal { display:flex; flex-wrap:wrap; gap:6px 20px; justify-content:flex-end; }
.footer-bottom {
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding-top:24px; font-size:0.8rem; opacity:0.6;
}
@media(max-width:768px) {
  .footer-grid { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; gap:8px; }
  .footer-legal { justify-content:center; }
}

/* ===== Animations ===== */
.reveal {
  opacity:0; transform:translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }

.fade-in { opacity:0; transition: opacity 0.6s ease; }
.fade-in.visible { opacity:1; }

.stagger > * {
  opacity:0; transform:translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger.visible > *:nth-child(1) { transition-delay:0.05s; opacity:1; transform:translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay:0.1s; opacity:1; transform:translateY(0); }
.stagger.visible > *:nth-child(3) { transition-delay:0.15s; opacity:1; transform:translateY(0); }
.stagger.visible > *:nth-child(4) { transition-delay:0.2s; opacity:1; transform:translateY(0); }
.stagger.visible > *:nth-child(5) { transition-delay:0.25s; opacity:1; transform:translateY(0); }
.stagger.visible > *:nth-child(6) { transition-delay:0.3s; opacity:1; transform:translateY(0); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:var(--text-muted); }

/* ===== Bio / Artist Detail Page ===== */
.artist-hero {
  position:relative; min-height:60vh;
  display:flex; align-items:flex-end;
  padding-bottom:60px;
}
.artist-hero-bg {
  position:absolute; inset:0;
  background-size:cover; background-position:center;
}
.artist-hero-bg::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.7));
}
.artist-hero-content {
  position:relative; z-index:1; color:white;
}
.artist-hero-content h1 { margin-bottom:8px; }
.artist-hero-content p { opacity:0.8; font-size:1rem; }

.artist-bio-section {
  display:grid; grid-template-columns:1fr 1fr; gap:60px;
  align-items:start;
}
.artist-bio p { margin-bottom:16px; color:var(--text-light); }
.artist-exhibitions li {
  padding:8px 0; border-bottom:1px solid var(--border);
  font-size:0.9rem;
}
@media(max-width:768px) { .artist-bio-section { grid-template-columns:1fr; } }

/* ===== Newsletter ===== */
.newsletter-form {
  display:flex; gap:12px; width:100%; min-width:0; max-width:480px;
}
.newsletter-form input {
  flex:1; min-width:0; padding:14px 16px;
  background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2);
  border-radius:var(--radius); color:white;
  font-family:var(--font-sans); font-size:0.95rem;
}
.newsletter-form input::placeholder { color:rgba(255,255,255,0.5); }
.newsletter-form button {
  padding:14px 24px; background:white; color:var(--bg-dark);
  border:none; border-radius:var(--radius);
  font-size:0.75rem; font-weight:600;
  text-transform:uppercase; letter-spacing:0.12em;
  transition:var(--transition);
}
.newsletter-form button:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.2); }

/* ===== Toast ===== */
.toast-container { position:fixed; bottom:24px; right:24px; z-index:3000; }
.toast {
  padding:16px 24px; background:var(--bg-dark); color:white;
  border-radius:var(--radius); font-size:0.9rem;
  box-shadow:0 8px 30px rgba(0,0,0,0.2);
  animation: toastIn 0.4s ease;
}
@keyframes toastIn {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}

/* ===== Language Switcher ===== */
.lang-switcher {
  display: flex; align-items: center; gap: 2px;
  margin-left: 8px;
  border: 1px solid var(--border);
  border-radius: 100px; overflow: hidden;
}
.lang-switcher button {
  background: none; border: none;
  font-family: var(--font-sans);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  color: var(--text-muted);
  transition: var(--transition);
  text-transform: uppercase;
}
.lang-switcher button:hover {
  color: var(--text);
}
.lang-switcher button.active {
  background: var(--accent-strong);
  color: white;
}

header.header-light .lang-switcher {
  border-color: var(--border);
}
header.header-light .lang-switcher button {
  color: var(--text-muted);
}
header.header-light .lang-switcher button:hover {
  color: var(--text);
}
header.header-light .lang-switcher button.active {
  background: var(--accent-strong);
  color: white;
}
header.header-light.scrolled .lang-switcher {
  border-color: var(--border);
}
header.header-light.scrolled .lang-switcher button {
  color: var(--text-muted);
}
header.header-light.scrolled .lang-switcher button.active {
  background: var(--accent-strong);
  color: white;
}

@media(max-width:900px) {
  .lang-switcher {
    position: fixed;
    top: 16px; right: 60px;
    z-index: 1001;
    border-color: var(--border);
    background: rgba(250,250,248,0.95);
    backdrop-filter: blur(10px);
  }
  .lang-switcher button { color: var(--text-muted); }
  .lang-switcher button.active { background: var(--accent-strong); color: white; }
}

/* ===== Páginas legales ===== */
.legal-table { width:100%; border-collapse:collapse; margin:16px 0 24px; font-size:0.9rem; }
.legal-table th, .legal-table td { text-align:left; padding:10px 12px; border-bottom:1px solid rgba(0,0,0,0.12); vertical-align:top; }
.legal-table th { font-weight:600; }
.legal-content ul { margin:12px 0 20px 20px; }
.legal-content li { margin-bottom:6px; }
mark.pendiente { background:#fff3cd; color:#7a5b00; padding:1px 6px; border-radius:3px; }
