/* ══════════════════════════════════════════
   Parroquia Digital - Estilos principales
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  /* Ivory / warm white base — Parroquia Elegante palette */
  --background: hsl(40, 33%, 97%);
  --foreground: hsl(30, 10%, 15%);
  --card: hsl(40, 25%, 95%);
  --card-foreground: hsl(30, 10%, 15%);
  --primary: hsl(36, 35%, 38%);
  --primary-foreground: hsl(40, 33%, 97%);
  --secondary: hsl(37, 18%, 90%);
  --secondary-foreground: hsl(30, 10%, 25%);
  --muted: hsl(37, 15%, 92%);
  --muted-foreground: hsl(30, 8%, 50%);
  --accent: hsl(36, 30%, 85%);
  --accent-foreground: hsl(30, 10%, 15%);
  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(210, 40%, 98%);
  --border: hsl(36, 20%, 88%);
  --gold: hsl(36, 45%, 52%);
  --gold-light: hsl(36, 40%, 65%);
  --gold-dark: hsl(36, 50%, 40%);
  --gold-muted: hsl(36, 25%, 72%);
  --warm-dark: hsl(30, 10%, 15%);
  --ivory: hsl(40, 33%, 97%);
  --sand: hsl(37, 25%, 93%);
  --stone: hsl(30, 8%, 62%);
  --cream: hsl(40, 33%, 97%);
  --cream-dark: hsl(37, 18%, 90%);
  --sidebar-bg: hsl(30, 10%, 12%);
  --sidebar-fg: hsl(40, 33%, 97%);
  --sidebar-accent: hsl(30, 10%, 18%);
  --sidebar-border: hsl(30, 8%, 20%);
  --section-paper: hsl(40, 33%, 97%);
  --section-warm: hsl(37, 18%, 90%);
  --section-deep: hsl(30, 10%, 15%);
  --section-deep-soft: hsl(30, 10%, 20%);
  --section-ink: hsl(30, 10%, 10%);
  --navy: hsl(220, 35%, 22%);
  --navy-light: hsl(220, 30%, 30%);
  --shadow-soft: 0 18px 50px -24px hsla(30, 10%, 15%, 0.15);
  --shadow-luxury: 0 26px 70px -30px hsla(30, 10%, 12%, 0.22);
  --section-border: hsla(36, 45%, 52%, 0.18);
  --editorial-line: linear-gradient(90deg, transparent, hsla(36, 45%, 52%, 0.5), transparent);
  --radius: 0.375rem;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--background); color: var(--foreground); line-height: 1.6; min-height: 100vh; }
body.mobile-menu-open { overflow: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.3; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

/* ── Layout ── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 64rem; margin: 0 auto; }
.section-padding { padding: 4rem 1rem; }
@media (min-width: 640px) { .section-padding { padding: 5rem 1.5rem; } }
@media (min-width: 1024px) { .section-padding { padding: 6rem 2rem; } }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* ── Grid ── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Typography ── */
.font-heading { font-family: var(--font-heading); }
.font-mono { font-family: monospace; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.75; }
.line-through { text-decoration: line-through; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-pre-line { white-space: pre-line; }

/* ── Colors ── */
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.text-muted { color: var(--muted-foreground); }
.text-primary-fg { color: var(--primary-foreground); }
.text-destructive { color: var(--destructive); }
.bg-background { background: var(--background); }
.bg-card { background: var(--card); }
.bg-navy { background: var(--navy); }
.bg-navy-light { background: var(--navy-light); }
.bg-cream { background: var(--cream); }
.bg-cream-dark { background: var(--cream-dark); }
.bg-secondary { background: var(--secondary); }

/* ── Cards & Borders ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-gold { border-color: var(--gold); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: var(--shadow-luxury); }

.section-editorial {
  position: relative;
  overflow: hidden;
}
.section-editorial::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, hsla(36, 45%, 52%, 0.08), transparent 34%),
    radial-gradient(circle at bottom left, hsla(36, 35%, 38%, 0.05), transparent 38%);
}
.section-editorial > .container {
  position: relative;
  z-index: 1;
}
.section-paper {
  background:
    linear-gradient(180deg, hsla(42, 24%, 98%, 0.98), hsla(40, 22%, 95%, 0.98));
}
.section-warm {
  background:
    linear-gradient(180deg, hsla(40, 18%, 93%, 0.96), hsla(42, 20%, 88%, 0.98));
}
.section-deep {
  background:
    linear-gradient(135deg, var(--section-deep), var(--section-deep-soft));
}
.section-deep .card,
.section-deep .service-card {
  background: hsla(42, 24%, 98%, 0.06);
  border-color: hsla(41, 56%, 56%, 0.16);
  backdrop-filter: blur(6px);
  box-shadow: none;
}
.section-deep .text-muted,
.section-deep .timeline-item .text,
.section-deep .service-card p {
  color: hsla(42, 30%, 95%, 0.72);
}
.section-deep .card h3,
.section-deep .card p,
.section-deep .service-card h3,
.section-deep .section-heading h2 {
  color: var(--primary-foreground);
}
.editorial-divider {
  position: relative;
}
.editorial-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(88vw, 72rem);
  height: 1px;
  background: var(--editorial-line);
  opacity: 0.9;
}
.editorial-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 2px;
  padding: 1.5rem;
  transition: all 0.3s;
}
.editorial-card:hover {
  box-shadow: 0 4px 20px -4px hsla(36, 35%, 38%, 0.12);
  border-color: hsla(36, 35%, 38%, 0.2);
}
.editorial-narrative {
  color: var(--section-ink);
  text-wrap: balance;
}

/* ── Spacing ── */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1.25rem; border-radius: var(--radius); font-weight: 600;
  font-size: 0.875rem; cursor: pointer; border: none; transition: all 0.2s;
  white-space: nowrap; gap: 0.5rem;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  color: var(--foreground); font-weight: 700;
}
.btn-gold:hover:not(:disabled) { filter: brightness(1.1); }
.btn-gold-outline {
  background: transparent; border: 2px solid var(--gold); color: var(--gold);
}
.btn-gold-outline:hover:not(:disabled) { background: var(--gold); color: var(--foreground); }
.btn-outline {
  background: transparent; border: 1px solid var(--border); color: var(--foreground);
}
.btn-outline:hover:not(:disabled) { background: var(--secondary); }
.btn-ghost { background: transparent; color: var(--muted-foreground); }
.btn-ghost:hover:not(:disabled) { background: var(--secondary); }
.btn-destructive { background: var(--destructive); color: white; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-icon { padding: 0.5rem; width: 2rem; height: 2rem; }
.text-link-cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s;
  margin-top: auto;
}
.text-link-cta:hover { color: var(--gold); }

/* ── Forms ── */
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--card); color: var(--foreground);
  font-size: 0.875rem; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px hsla(42, 78%, 50%, 0.2);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted-foreground); }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.form-textarea { min-height: 5rem; resize: vertical; }
.form-checkbox { width: 1rem; height: 1rem; accent-color: var(--gold); }

/* ── Top Bar ── */
.topbar { background: #495746; color: var(--ivory); font-size: 0.875rem; padding: 0.5rem 0; display: none; }
@media (min-width: 768px) { .topbar { display: block; } }
.topbar .icon { width: 0.875rem; height: 0.875rem; color: var(--gold); margin-right: 0.375rem; }

#site-header {
  position: sticky; top: 0; z-index: 50;
}
.header {
  background: hsla(40, 33%, 97%, 0.95); backdrop-filter: blur(18px);
  border-bottom: 1px solid hsla(36, 20%, 88%, 0.8); box-shadow: 0 4px 20px -8px hsla(30, 10%, 15%, 0.1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
@media (min-width: 1024px) { .header-inner { height: 5rem; } }
.header-logo { display: flex; align-items: center; gap: 0.75rem; }
.header-logo img { height: 2.5rem; width: auto; }
@media (min-width: 1024px) { .header-logo img { height: 3rem; } }
.header-logo-text { display: none; }
@media (min-width: 640px) { .header-logo-text { display: block; line-height: 1.25; } }
.header-logo-text .name { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; }
@media (min-width: 1024px) { .header-logo-text .name { font-size: 1rem; } }
.header-logo-text .sub { font-size: 0.75rem; color: var(--muted-foreground); }

/* ── Navigation ── */
.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-link {
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500;
  border-radius: var(--radius); transition: all 0.2s; color: var(--foreground);
}
.nav-link:hover { color: var(--gold); background: hsla(40, 20%, 93%, 0.5); }
.nav-link.active { color: var(--gold); background: var(--secondary); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.btn-acceso { display: none; }
@media (min-width: 640px) { .btn-acceso { display: inline-flex; } }

/* ── Language Selector (dropdown) ── */
.lang-dropdown { position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.125rem; border: none; background: none; cursor: pointer;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--muted-foreground); transition: color 0.2s;
}
.lang-toggle:hover { color: var(--gold); }
.lang-toggle .chevron { width: 10px; height: 10px; opacity: 0.5; transition: opacity 0.2s, transform 0.2s; }
.lang-dropdown:hover .lang-toggle .chevron { opacity: 1; transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 0.35rem); right: 0;
  display: none; flex-direction: column; min-width: 2.75rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); z-index: 100; overflow: hidden;
}
.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu { display: flex; }
.lang-option {
  padding: 0.375rem 0.625rem; border: none; background: none; cursor: pointer;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--foreground); text-align: center; transition: background 0.15s, color 0.15s;
}
.lang-option:hover { background: var(--secondary); color: var(--gold); }
.lang-option.active { color: var(--gold); font-weight: 700; }

.mobile-toggle {
  display: block; padding: 0.5rem; background: none; border: none; cursor: pointer; color: var(--foreground);
  border-radius: 9999px; transition: background 0.2s, color 0.2s, transform 0.2s;
}
.mobile-toggle:hover,
.mobile-toggle[aria-expanded='true'] {
  background: hsla(41, 56%, 56%, 0.10);
  color: var(--gold-dark);
}
.mobile-toggle[aria-expanded='true'] { transform: rotate(90deg); }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }
.mobile-nav {
  display: none; border-top: 1px solid hsla(41, 56%, 56%, 0.14);
  background: linear-gradient(180deg, hsla(42, 24%, 98%, 0.98), hsla(40, 18%, 94%, 0.98));
  padding: 1rem 1.25rem 1.25rem; box-shadow: inset 0 1px 0 hsla(41, 56%, 56%, 0.06), 0 18px 36px -30px hsla(108, 18%, 12%, 0.32);
}
.mobile-nav.open { display: flex; flex-direction: column; gap: 0.25rem; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
.mobile-nav .nav-link { padding: 0.875rem 1rem; display: block; }
.mobile-nav .btn { margin-top: 0.5rem; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, hsla(109,11%,31%,0.95), hsla(109,11%,31%,0.80), hsla(109,11%,31%,0.60));
}
.hero-content { position: relative; z-index: 10; padding: 5rem 0; max-width: 42rem; }
.hero-content h1 { font-size: 2.25rem; font-weight: 700; color: var(--primary-foreground); line-height: 1.15; margin-bottom: 1rem; }
.hero-content h1 span { color: var(--gold); }
@media (min-width: 640px) { .hero-content h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-content h1 { font-size: 3.75rem; } }
.hero-content .subtitle { color: hsla(42,30%,95%,0.8); font-size: 1.125rem; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .hero-content .subtitle { font-size: 1.25rem; } }
.hero-content .desc { color: hsla(42,30%,95%,0.6); margin-bottom: 2rem; max-width: 32rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ── Page Hero ── */
.page-hero {
  background: var(--navy); padding: 4rem 0; text-align: center;
  background-image: linear-gradient(135deg, var(--navy), var(--navy-light));
}
.page-hero h1 { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary-foreground); margin-bottom: 0.5rem; }
@media (min-width: 640px) { .page-hero h1 { font-size: 2.5rem; } }
.page-hero p { color: var(--gold-light); font-size: 1rem; }
/* ── Page Hero – variante editorial (izquierda, compacta, Propuesta A) ── */
.page-hero-editorial {
  background: var(--section-deep);
  background-image: linear-gradient(135deg, var(--section-deep), var(--section-deep-soft));
  padding: 1.75rem 0 2.25rem;
  text-align: left;
  position: relative;
}
.page-hero-editorial::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(88vw, 72rem);
  height: 1px;
  background: var(--editorial-line);
  opacity: 0.9;
}
.page-hero-editorial h1 { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 500; color: var(--primary-foreground); line-height: 1.2; margin-bottom: 0.35rem; }
.page-hero-editorial p { color: var(--gold-muted); font-size: 0.875rem; line-height: 1.5; }
.page-hero-editorial p:first-child { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; font-family: var(--font-body); font-weight: 500; }

/* ── Section Heading ── */
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
@media (min-width: 640px) { .section-heading h2 { font-size: 1.75rem; } }
.section-heading p { color: var(--muted-foreground); max-width: 36rem; margin: 0 auto; }
.section-heading.light h2 { color: var(--primary-foreground); }
.section-heading.light p { color: hsla(42,30%,95%,0.7); }
.gold-separator { height: 1px; width: 4rem; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
@media (max-width: 640px) { .gold-separator { width: 100%; } }

/* ── Service Cards ── */
.service-card {
  display: block; padding: 1.5rem; border-radius: 0.5rem; background: var(--card);
  border: 1px solid var(--border); transition: all 0.3s; height: 100%;
}
.service-card:hover { border-color: var(--gold); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.service-card .icon { width: 2.5rem; height: 2.5rem; color: var(--gold); margin-bottom: 1rem; transition: transform 0.3s; }
.service-card:hover .icon { transform: scale(1.1); }
.service-card h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--muted-foreground); }

/* ── Horario Row ── */
.horario-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem; border-radius: 0.5rem; background: hsla(109,9%,40%,0.5); border: 1px solid hsla(42,78%,50%,0.2);
}
.horario-row .day { color: var(--primary-foreground); font-weight: 500; }
.horario-row .type { font-size: 0.875rem; color: var(--gold-light); }
.horario-row .time { color: var(--primary-foreground); font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before { content: ''; position: absolute; left: 1rem; top: 0; bottom: 0; width: 1px; background: hsla(42,78%,50%,0.3); }
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-item .dot { position: absolute; left: -2.125rem; top: 0.25rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--gold); border: 4px solid var(--background); }
.timeline-item .year { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; color: var(--gold); margin-bottom: 0.25rem; }
.timeline-item .text { color: var(--muted-foreground); }

/* ── Footer ── */
.footer { background: #495746; color: var(--ivory); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer h4 { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; color: var(--gold); margin-bottom: 1rem; }
.footer a:hover { color: var(--gold); }
.footer .links li { margin-bottom: 0.5rem; font-size: 0.875rem; color: hsla(42,30%,95%,0.7); }
.footer .contact li { font-size: 0.875rem; color: hsla(42,30%,95%,0.7); margin-bottom: 0.5rem; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 1rem; font-size: 0.75rem; color: hsla(42,30%,95%,0.5); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom a:hover { color: var(--gold); }

/* ── Status Badges ── */
.badge { display: inline-block; font-size: 0.75rem; padding: 0.125rem 0.75rem; border-radius: 9999px; font-weight: 500; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-emerald { background: #d1fae5; color: #065f46; }
.badge-gray { background: #f3f4f6; color: #374151; }
.badge-primary { background: hsla(109,11%,31%,0.1); color: var(--primary); }

/* ── Panel Layout ── */
.panel-layout { display: flex; min-height: 100vh; background: var(--background); }
.sidebar {
  position: fixed; inset: 0; width: 16rem; z-index: 50;
  background: var(--sidebar-bg); color: var(--sidebar-fg);
  transform: translateX(-100%); transition: transform 0.3s;
  display: flex; flex-direction: column;
}
.sidebar.open { transform: translateX(0); }
@media (min-width: 1024px) {
  .sidebar { position: relative; transform: translateX(0); }
}
.sidebar-header { padding: 1rem; border-bottom: 1px solid var(--sidebar-border); display: flex; align-items: center; gap: 0.75rem; }
.sidebar-header img { height: 2rem; width: auto; }
.sidebar-header .name { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; }
.sidebar-header .role { font-size: 0.75rem; color: hsla(42,30%,95%,0.6); }
.sidebar-nav { flex: 1; padding: 0.75rem; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem;
  border-radius: var(--radius); font-size: 0.875rem; transition: all 0.2s;
  color: hsla(42,30%,95%,0.7);
}
.sidebar-nav a:hover { background: hsla(109,10%,35%,0.5); color: var(--sidebar-fg); }
.sidebar-nav a.active { background: var(--sidebar-accent); color: var(--gold); }
.sidebar-nav a svg, .sidebar-nav a .icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.sidebar-footer { padding: 0.75rem; border-top: 1px solid var(--sidebar-border); }
.sidebar-footer button { width: 100%; display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: var(--radius); font-size: 0.875rem; background: none; border: none; color: hsla(42,30%,95%,0.7); cursor: pointer; }
.sidebar-footer button:hover { background: hsla(109,10%,35%,0.5); color: var(--sidebar-fg); }
.sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,0.5); }
.sidebar-overlay.open { display: block; }
@media (min-width: 1024px) { .sidebar-overlay { display: none !important; } }
.panel-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.panel-header {
  position: sticky; top: 0; z-index: 30; background: var(--card);
  border-bottom: 1px solid var(--border); padding: 0 1rem; height: 3.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.panel-content { flex: 1; padding: 1rem; overflow-y: auto; }
@media (min-width: 640px) { .panel-content { padding: 1.5rem; } }
@media (min-width: 1024px) { .panel-content { padding: 2rem; } }

/* ── Stats Cards ── */
.stat-card { padding: 1.25rem; border-radius: 0.5rem; background: var(--card); border: 1px solid var(--border); transition: border-color 0.2s; }
.stat-card:hover { border-color: var(--gold); }
.stat-card .icon { width: 2rem; height: 2rem; color: var(--gold); }
.stat-card .value { font-size: 1.5rem; font-weight: 700; }
.stat-card .label { font-size: 0.875rem; color: var(--muted-foreground); }
.stat-card .sub { font-size: 0.75rem; color: var(--gold); margin-top: 0.25rem; }

/* ── Tables ── */
table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
thead { background: hsla(40,20%,93%,0.5); }
th { text-align: left; padding: 0.75rem 1rem; font-weight: 500; border-bottom: 1px solid var(--border); }
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
tbody tr:hover { background: hsla(40,20%,93%,0.2); }

/* ── Tabs ── */
.tabs-list { display: flex; gap: 0.25rem; border-bottom: 2px solid var(--border); padding-bottom: 0; flex-wrap: wrap; }
.tab-trigger {
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; cursor: pointer;
  border: none; background: none; color: var(--muted-foreground); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.2s;
}
.tab-trigger:hover { color: var(--foreground); }
.tab-trigger.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-content { display: none; margin-top: 1rem; }
.tab-content.active { display: block; }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.875rem; box-shadow: 0 10px 15px rgba(0,0,0,0.1); animation: slideIn 0.3s ease; max-width: 24rem; }
.toast-success { background: #166534; color: white; }
.toast-error { background: var(--destructive); color: white; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Modal/Dialog ── */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal { background: var(--card); border-radius: 0.5rem; padding: 1.5rem; max-width: 32rem; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.5rem; }

/* ── Certificate Verification ── */
.verify-result { margin-top: 1.5rem; padding: 1rem; border-radius: 0.5rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.verify-valid { background: #f0fdf4; border: 1px solid #bbf7d0; }
.verify-invalid { background: hsla(0,72%,51%,0.1); border: 1px solid hsla(0,72%,51%,0.2); }

/* ── Spinner ── */
.spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Stat Bar ── */
.stat-bar-track { flex: 1; background: hsla(40,20%,93%,0.5); border-radius: 9999px; height: 1.25rem; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 9999px; transition: width 0.3s; }
.stat-bar-fill.primary { background: var(--primary); }
.stat-bar-fill.gold { background: var(--gold); }

/* ── Alert ── */
.alert { padding: 1rem; border-radius: 0.5rem; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; }
.alert-warning h3 { color: #92400e; }
.alert-warning p { color: #b45309; }

/* ── SVG Icons (Lucide-compatible) ── */
.icon-svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 2.5rem; height: 2.5rem; }
.icon-3xl { width: 3rem; height: 3rem; }

@media (max-width: 767px) {
  .container { padding: 0 1rem; }
  .header-inner { gap: 0.5rem; }
  .header-logo img { height: 2.2rem; }
  .hero { min-height: 72vh; }
  .hero-content { padding: 4rem 0; }
  .hero-content h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .horario-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  #contact-grid,
  #contact-grid > .grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .mobile-nav { max-height: calc(100vh - 4rem); overflow-y: auto; }
}

/* ── Max widths ── */
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }

/* ── Misc ── */
.shrink-0 { flex-shrink: 0; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aspect-video { aspect-ratio: 16/9; }
.cursor-pointer { cursor: pointer; }
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-all { transition: all 0.3s; }
.opacity-0 { opacity: 0; }
.divide-y > * + * { border-top: 1px solid var(--border); }

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-delay-1,
  .fade-in-delay-2,
  .fade-in-delay-3 {
    animation: none;
    opacity: 1;
  }
  .mobile-toggle,
  .btn,
  .card,
  .editorial-card {
    transition: none;
  }
}
