:root {
  --green: #7bc8a0;
  --green-light: #b5ead7;
  --green-pale: #e8f8f0;
  --blue: #6bbfd9;
  --blue-light: #a8dadc;
  --blue-pale: #e3f4fa;
  --turquoise: #5fb8a0;
  --turquoise-dark: #418f7c;
  --jasmine: #f2e6a3;
  --dark: #1e3a42;
  --text: #243338;
  --text-light: #5f6e73;
  --white: #ffffff;
  --border: #dde7ea;
  --shadow: 0 18px 45px rgba(30, 58, 66, 0.08);
  --radius: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: #f8fbfc;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  color: var(--dark);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.skip-link:focus { left: 12px; }

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(30, 58, 66, 0.08);
}
.site-header:not(.scrolled) { background: rgba(30, 58, 66, 0.28); }

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  font-weight: 700;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--turquoise), var(--green));
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 25px rgba(95, 184, 160, 0.35);
}
.brand-text {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.site-header:not(.scrolled) .brand-text,
.site-header:not(.scrolled) .nav-link,
.site-header:not(.scrolled) .menu-toggle {
  color: var(--white);
}
.site-header.scrolled .brand-text,
.site-header.scrolled .nav-link,
.site-header.scrolled .menu-toggle {
  color: var(--dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.nav-link {
  text-decoration: none;
  font-weight: 500;
  opacity: 0.96;
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--jasmine); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  display: none;
  padding-bottom: 1rem;
}
.mobile-panel.open { display: block; }
.mobile-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1rem;
}
.mobile-card a {
  display: block;
  padding: 0.9rem 0.6rem;
  text-decoration: none;
  color: var(--dark);
  border-bottom: 1px solid #eef3f4;
}
.mobile-card a:last-child { border-bottom: 0; }

.hero {
  background:
    radial-gradient(circle at top left, rgba(242, 230, 163, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(107, 191, 217, 0.18), transparent 28%),
    linear-gradient(135deg, var(--dark) 0%, #2a5a5e 42%, var(--turquoise) 100%);
  color: var(--white);
  padding: 7.5rem 0 5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.hero h1,
.page-hero h1,
.section-title,
.card-title,
.cta-title {
  font-family: 'Playfair Display', Georgia, serif;
}
.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1.02;
  margin: 0 0 1rem;
}
.hero p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-panel ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}
.hero-panel li { margin-bottom: 0.5rem; color: rgba(255, 255, 255, 0.9); }

.page-hero {
  background:
    radial-gradient(circle at left top, rgba(242, 230, 163, 0.2), transparent 24%),
    linear-gradient(135deg, var(--dark) 0%, #24505a 45%, var(--turquoise) 100%);
  color: var(--white);
  padding: 7rem 0 3.5rem;
}
.page-hero p {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

main section { padding: 4.5rem 0; }
.section-head { margin-bottom: 2rem; }
.section-kicker {
  color: var(--turquoise-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}
.section-title {
  font-size: clamp(2rem, 3vw, 3.1rem);
  color: var(--dark);
  margin: 0 0 0.8rem;
}
.section-copy {
  color: var(--text-light);
  max-width: 68ch;
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.card-title {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  color: var(--dark);
}
.card p:last-child { margin-bottom: 0; }

.icon-pill {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green-pale), var(--blue-pale));
  color: var(--turquoise-dark);
  margin-bottom: 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.stat {
  background: linear-gradient(135deg, rgba(95, 184, 160, 0.1), rgba(107, 191, 217, 0.08));
  border: 1px solid rgba(95, 184, 160, 0.2);
  border-radius: 22px;
  padding: 1.25rem;
}
.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--dark);
  line-height: 1.1;
}
.stat span { color: var(--text-light); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  padding: 0.95rem 1.35rem;
  border: 1px solid transparent;
}
.button {
  background: linear-gradient(135deg, var(--turquoise), var(--green));
  color: var(--white);
  box-shadow: 0 14px 28px rgba(95, 184, 160, 0.28);
}
.button-secondary {
  background: var(--white);
  color: var(--dark);
}
.button-ghost {
  color: var(--dark);
  border-color: rgba(30, 58, 66, 0.18);
  background: transparent;
}
.button:hover,
.button-secondary:hover,
.button-ghost:hover { transform: translateY(-1px); }

.anchor-card {
  display: block;
  text-decoration: none;
  height: 100%;
}
.anchor-card:hover .card-title { color: var(--turquoise-dark); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--green-pale);
  color: var(--turquoise-dark);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.note {
  background: #fffdf4;
  border: 1px solid #efe3a1;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  color: #665b23;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.document-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.document-card h3 {
  margin: 0.85rem 0 0.35rem;
  color: var(--dark);
  font-size: 1.1rem;
}
.document-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.document-meta.pending {
  background: #fff6d7;
  color: #8a6a00;
}
.document-meta.available {
  background: var(--green-pale);
  color: var(--turquoise-dark);
}
.document-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.text-link {
  color: var(--turquoise-dark);
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.form-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.field-full { grid-column: 1 / -1; }
label {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #cedbdf;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
  background: #fcfeff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(95, 184, 160, 0.18);
  border-color: var(--turquoise);
}
textarea { min-height: 140px; resize: vertical; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.choice label {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  display: block;
  background: var(--white);
  cursor: pointer;
}
.choice input:checked + label {
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(95, 184, 160, 0.12);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.8rem;
}
.checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.form-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-weight: 700;
}
.form-status.success { color: #19764d; }
.form-status.error { color: #b13b3b; }
.form-help {
  color: var(--text-light);
  font-size: 0.92rem;
}

.faq-list { display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.faq-item h3 {
  margin: 0 0 0.4rem;
  color: var(--dark);
  font-size: 1.05rem;
}

.cta-box {
  background: linear-gradient(135deg, var(--dark), #2a5a5e);
  color: var(--white);
  border-radius: 26px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.cta-box p { color: rgba(255, 255, 255, 0.84); }

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
}
.footer-title {
  color: var(--white);
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li + li { margin-top: 0.55rem; }
.footer-list a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.footer-list a:hover { color: var(--white); }

.small-muted {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ============================================
   GLOBAL VISIBILITY FIXES — CRITICAL COMPONENTS
   ============================================ */

/* ===== ICON CIRCLES (for cards, mission, values) ===== */
.icon-circle {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  display: inline-grid !important;
  place-items: center;
  font-size: 1.25rem;
  color: var(--white);
  flex-shrink: 0;
}

.icon-circle i {
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
}

/* Icon circle color variants */
.icon-circle.bg-assupa-green-pale,
.icon-circle.text-assupa-turquoise {
  background: linear-gradient(135deg, var(--turquoise), var(--green)) !important;
  color: var(--white) !important;
}

.icon-circle.bg-assupa-blue-pale,
.icon-circle.text-assupa-blue {
  background: linear-gradient(135deg, var(--blue), var(--turquoise)) !important;
  color: var(--white) !important;
}

.icon-circle.bg-assupa-jasmine-light,
.icon-circle.text-yellow-700 {
  background: linear-gradient(135deg, #d4a843, #e07b39) !important;
  color: var(--white) !important;
}

.icon-circle.bg-assupa-green {
  background: linear-gradient(135deg, var(--green), var(--turquoise)) !important;
  color: var(--white) !important;
}

.icon-circle.bg-assupa-blue {
  background: linear-gradient(135deg, var(--blue), #4a9bb5) !important;
  color: var(--white) !important;
}

.icon-circle.bg-assupa-turquoise {
  background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark)) !important;
  color: var(--white) !important;
}

/* ===== ICON CIRCLE — GRADIENT BACKGROUNDS (Tailwind classes fix) ===== */
/* Green to Turquoise gradient */
.icon-circle.bg-gradient-to-br\.from-assupa-green\.to-assupa-turquoise,
.icon-circle[class*="from-assupa-green"][class*="to-assupa-turquoise"] {
  background: linear-gradient(135deg, var(--green), var(--turquoise)) !important;
}

/* Blue to Turquoise gradient */
.icon-circle.bg-gradient-to-br\.from-assupa-blue\.to-assupa-turquoise,
.icon-circle[class*="from-assupa-blue"][class*="to-assupa-turquoise"] {
  background: linear-gradient(135deg, var(--blue), var(--turquoise)) !important;
}

/* Turquoise to Blue-light gradient */
.icon-circle.bg-gradient-to-br\.from-assupa-turquoise\.to-assupa-blue-light,
.icon-circle[class*="from-assupa-turquoise"][class*="to-assupa-blue-light"] {
  background: linear-gradient(135deg, var(--turquoise), var(--blue-light)) !important;
}

/* Jasmine to Orange gradient */
.icon-circle.bg-gradient-to-br\.from-assupa-jasmine\.to-orange-300,
.icon-circle[class*="from-assupa-jasmine"][class*="to-orange-300"] {
  background: linear-gradient(135deg, #d4a843, #e07b39) !important;
}

/* Green-400 to Turquoise gradient */
.icon-circle.bg-gradient-to-br\.from-green-400\.to-assupa-turquoise,
.icon-circle[class*="from-green-400"][class*="to-assupa-turquoise"] {
  background: linear-gradient(135deg, #4ade80, var(--turquoise)) !important;
}

/* Blue-400 to Indigo-400 gradient */
.icon-circle.bg-gradient-to-br\.from-blue-400\.to-indigo-400,
.icon-circle[class*="from-blue-400"][class*="to-indigo-400"] {
  background: linear-gradient(135deg, #60a5fa, #818cf8) !important;
}

/* Ensure ALL icon-circles have a gradient if they have class="text-white" */
.icon-circle[class*="text-white"] {
  color: var(--white) !important;
}

/* ===== BUTTONS — PRIMARY (gradient with white text) ===== */
.btn-primary,
a.btn-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--turquoise), var(--green)) !important;
  color: var(--white) !important;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(95, 184, 160, 0.3);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
  white-space: nowrap;
}

.btn-primary:hover,
a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(95, 184, 160, 0.4) !important;
  color: var(--white) !important;
}

/* Blue variant buttons */
.btn-primary.bg-gradient-to-r.from-assupa-blue.to-assupa-turquoise,
a.btn-primary.bg-gradient-to-r.from-assupa-blue.to-assupa-turquoise {
  background: linear-gradient(135deg, var(--blue), var(--turquoise)) !important;
  box-shadow: 0 4px 15px rgba(107, 191, 217, 0.3) !important;
}

/* Jasmine/gold variant buttons */
.btn-primary.bg-gradient-to-r.from-assupa-jasmine.to-orange-300,
a.btn-primary.bg-gradient-to-r.from-assupa-jasmine.to-orange-300 {
  background: linear-gradient(135deg, #c49a30, #d4802a) !important;
  box-shadow: 0 4px 15px rgba(196, 154, 48, 0.3) !important;
}

/* ===== BUTTON VARIANTS — EXPLICIT COLOR FIXES ===== */
/* Ensure all btn-primary variants have white text */
.btn-primary {
  color: var(--white) !important;
}

.btn-primary.bg-gradient-to-r.from-assupa-blue.to-assupa-turquoise,
a.btn-primary.bg-gradient-to-r.from-assupa-blue.to-assupa-turquoise,
.btn-primary.bg-gradient-to-r.from-assupa-jasmine.to-orange-300,
a.btn-primary.bg-gradient-to-r.from-assupa-jasmine.to-orange-300 {
  color: var(--white) !important;
}

/* Force gradient backgrounds on buttons with Tailwind classes */
.bg-gradient-to-r\.from-assupa-blue\.to-assupa-turquoise,
a[href="#contacto"].bg-gradient-to-r.from-assupa-blue.to-assupa-turquoise {
  background: linear-gradient(135deg, var(--blue), var(--turquoise)) !important;
}

.bg-gradient-to-r\.from-assupa-jasmine\.to-orange-300,
a[href="#contacto"].bg-gradient-to-r.from-assupa-jasmine.to-orange-300 {
  background: linear-gradient(135deg, #c49a30, #d4802a) !important;
}

/* ===== BUTTONS — OUTLINE (transparent with white border) ===== */
.btn-outline,
a.btn-outline {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: var(--white) !important;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-outline:hover,
a.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--white);
  color: var(--white) !important;
}

/* ===== CARD HOVER EFFECTS ===== */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(30, 58, 66, 0.12) !important;
}

/* ===== STEP NUMBERS (for "Cómo Tramitar") ===== */
.step-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  display: inline-grid !important;
  place-items: center;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--white);
  flex-shrink: 0;
}

/* Step number gradient backgrounds via Tailwind escaped classes */
.step-number.bg-gradient-to-br\.from-assupa-turquoise\.to-assupa-green {
  background: linear-gradient(135deg, var(--turquoise), var(--green)) !important;
}

.step-number.bg-gradient-to-br.from-assupa-blue.to-assupa-turquoise {
  background: linear-gradient(135deg, var(--blue), var(--turquoise)) !important;
}

.step-number.bg-gradient-to-br.from-assupa-jasmine.to-orange-300 {
  background: linear-gradient(135deg, #c49a30, #d4802a) !important;
}

.step-number.bg-gradient-to-br.from-green-400.to-assupa-turquoise {
  background: linear-gradient(135deg, #4ade80, var(--turquoise)) !important;
}

/* ===== TRAMITAR STEPS — DIRECT DIV GRADIENTS (HTML fix via CSS) ===== */
/* These target the actual div elements in "Cómo Tramitar" section */
#tramites .grid > div > div[class*="bg-gradient-to-br"][class*="rounded-full"] {
  background: linear-gradient(135deg, var(--turquoise), var(--green)) !important;
}

/* Step 2 - blue to turquoise */
#tramites .grid > div:nth-child(2) > div[class*="bg-gradient-to-br"][class*="rounded-full"] {
  background: linear-gradient(135deg, var(--blue), var(--turquoise)) !important;
}

/* Step 3 - jasmine to orange */
#tramites .grid > div:nth-child(3) > div[class*="bg-gradient-to-br"][class*="rounded-full"] {
  background: linear-gradient(135deg, #c49a30, #d4802a) !important;
}

/* Step 4 - green-400 to turquoise */
#tramites .grid > div:nth-child(4) > div[class*="bg-gradient-to-br"][class*="rounded-full"] {
  background: linear-gradient(135deg, #4ade80, var(--turquoise)) !important;
}

/* Ensure step numbers are white and bold */
#tramites .grid > div > div[class*="rounded-full"] {
  color: var(--white) !important;
  font-weight: bold;
  text-align: center;
  line-height: 1;
}

/* ===== GALLERY ITEMS — ensure text visibility ===== */
.gallery-item .text-center.text-white p,
.gallery-item .text-center p {
  color: var(--white) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-item .text-center p.font-bold,
.gallery-item .text-center > p:first-of-type {
  font-weight: bold !important;
  font-size: 1.125rem;
  color: var(--white) !important;
}

/* Gallery overlay text */
.gallery-item .absolute div.text-white h4 {
  color: var(--white) !important;
  font-weight: bold;
}

.gallery-item .absolute div.text-white p {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Gallery gradient backgrounds — ensure they render */
.gallery-item > div[class*="bg-gradient"] {
  background: linear-gradient(135deg, transparent) !important;
}

.gallery-item .bg-gradient-to-br\.from-assupa-green\/via-assupa-turquoise\/to-assupa-blue {
  background: linear-gradient(135deg, var(--green), var(--turquoise), var(--blue)) !important;
}

/* Ensure all gallery text is visible on any background */
.gallery-item p,
.gallery-item h4,
.gallery-item h5 {
  color: inherit;
}

.gallery-item [class*="text-white"] p,
.gallery-item [class*="text-white"] h4,
.gallery-item [class*="text-white"] p {
  color: var(--white) !important;
}

/* ===== NEWS SECTION — loading state fix ===== */
[data-assupa-news-featured] > div,
[data-assupa-news] > div {
  min-height: 100px;
}

/* ===== FOOTER LINKS — ensure visibility on dark bg ===== */
footer .footer-link,
footer a.footer-link {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

footer .footer-link:hover,
footer a.footer-link:hover {
  color: var(--jasmine) !important;
  transform: translateX(4px);
}

/* ===== FOOTER — ALL TEXT VISIBILITY FIX ===== */
footer p,
footer span,
footer li,
footer ul li {
  color: rgba(255, 255, 255, 0.78) !important;
}

footer h4,
footer h5,
footer .font-bold,
footer .font-semibold {
  color: var(--white) !important;
}

/* Footer bottom bar - slightly dimmer */
footer .border-t + div p,
footer .border-t ~ .flex p {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ===== REVEAL ANIMATION FIX ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PRE-FOOTER CTA BAND ===== */
.prefooter-section {
  background: linear-gradient(135deg, var(--dark), #243f47, var(--turquoise));
}

.prefooter-card {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.prefooter-card:hover {
  transform: translateY(-4px);
}

/* ===== FOOTER LINKS ===== */
.footer-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--white);
  transform: translateX(4px);
}

/* ===== SOCIAL ICONS ===== */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.15) translateY(-2px);
}

/* ===== TRUST INDICATORS ===== */
.trust-indicator {
  text-align: center;
  padding: 1rem;
}

.trust-number {
  background: linear-gradient(135deg, var(--jasmine), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .document-grid,
  .form-grid,
  .footer-grid,
  .stat-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
  .menu-toggle { display: inline-block; }
  .hero { padding-top: 6.5rem; }

  /* ===== MISSING COMPONENTS ===== */
  .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
  }

  .btn-primary,
  .btn-primary.text-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--turquoise), var(--green));
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(95, 184, 160, 0.3);
  }

  .btn-primary:hover,
  .btn-primary.text-base:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(95, 184, 160, 0.4);
  }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
  }

  .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
  }

  /* ===== NEWS GRID ===== */
  .news-grid { min-height: 200px; }
}

@media (max-width: 640px) {
  .button-row { flex-direction: column; align-items: stretch; }
  main section { padding: 3.5rem 0; }
  .hero h1 { font-size: 2.5rem; }
  .container { width: min(var(--container), calc(100% - 1.25rem)); }

  /* ===== MISSING COMPONENTS MOBILE ===== */
  .icon-circle {
    width: 56px;
    height: 56px;
    font-size: 1rem;
  }

  .btn-primary,
  .btn-primary.text-base,
  .btn-outline {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* ====================================================================== */
/* ===== CRITICAL VISIBILITY FIXES — HIGHEST SPECIFICITY (END OF FILE) ===== */
/* ====================================================================== */

/* ===== FOOTER — FORCE ALL TEXT VISIBLE ===== */
/* The Tailwind opacity utilities (text-white/60) don't work with CDN */
footer.bg-assupa-dark,
footer.bg-assupa-dark *,
footer.bg-assupa-dark p,
footer.bg-assupa-dark span,
footer.bg-assupa-dark li,
footer.bg-assupa-dark a,
footer.bg-assupa-dark h4,
footer.bg-assupa-dark h5 {
  /* Reset any inherited opacity */
  opacity: 1 !important;
}

/* Footer paragraph text — readable gray */
footer.bg-assupa-dark p,
footer.bg-assupa-dark .space-y-2 p,
footer.bg-assupa-dark .space-y-3 li,
footer.bg-assupa-dark ul li {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Footer headings — bright white */
footer.bg-assupa-dark h4,
footer.bg-assupa-dark h5,
footer.bg-assupa-dark .font-bold,
footer.bg-assupa-dark .font-semibold {
  color: #ffffff !important;
}

/* Footer links */
footer.bg-assupa-dark a.footer-link,
footer.bg-assupa-dark ul li a {
  color: rgba(255, 255, 255, 0.75) !important;
}
footer.bg-assupa-dark a.footer-link:hover,
footer.bg-assupa-dark ul li a:hover {
  color: #ffffff !important;
}

/* Footer brand text */
footer.bg-assupa-dark .text-2xl.font-bold {
  color: #ffffff !important;
}

/* Footer description */
footer.bg-assupa-dark p strong {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Footer bottom bar */
footer.bg-assupa-dark .border-t + div p,
footer.bg-assupa-dark .border-t ~ div p {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Footer social icons */
footer.bg-assupa-dark .fa-brands,
footer.bg-assupa-dark .fa-solid.fa-envelope {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ===== BUTTONS — FORCE GRADIENTS AND WHITE TEXT ===== */
/* "Quiero colaborar" button — blue gradient */
section#ayudar a.btn-primary.bg-gradient-to-r,
#ayudar a[href="#contacto"].btn-primary {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Blue variant — "Quiero colaborar" */
#ayudar a.btn-primary[class*="from-assupa-blue"],
#ayudar a.btn-primary[class*="from-assupa-blue"].to-assupa-turquoise {
  background: linear-gradient(135deg, #6bbfd9, #5fb8a0) !important;
  background-color: #6bbfd9 !important;
  color: #ffffff !important;
}

/* Gold variant — "Sumarme como profesional" */
#ayudar a.btn-primary[class*="from-assupa-jasmine"],
#ayudar a.btn-primary[class*="from-assupa-jasmine"].to-orange-300 {
  background: linear-gradient(135deg, #c49a30, #d4802a) !important;
  background-color: #c49a30 !important;
  color: #ffffff !important;
}

/* Default green variant — "Solicitar asesoramiento" */
#ayudar a.btn-primary:not([class*="from-assupa-blue"]):not([class*="from-assupa-jasmine"]) {
  background: linear-gradient(135deg, #5fb8a0, #7bc8a0) !important;
  background-color: #5fb8a0 !important;
  color: #ffffff !important;
}

/* ===== ADDITIONAL FOOTER LINKS SECTION ===== */
footer.bg-assupa-dark .grid.md\:grid-cols-3 ul li a {
  color: rgba(255, 255, 255, 0.65) !important;
}
footer.bg-assupa-dark .grid.md\:grid-cols-3 ul li a:hover {
  color: #ffffff !important;
}

footer.bg-assupa-dark .grid.md\:grid-cols-3 ul li {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Footer icons in headings */
footer.bg-assupa-dark h4 i,
footer.bg-assupa-dark h5 i {
  opacity: 1 !important;
}

/* ====================================================================== */
/* ===== END CRITICAL VISIBILITY FIXES ===== */
/* ====================================================================== */
/* ===== GALLERY FILTER BUTTONS — Unified Style ===== */
.gallery-filter-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #636e72 !important;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid rgba(95, 184, 160, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gallery-filter-btn:hover {
  background: rgba(95, 184, 160, 0.1) !important;
  color: #5fb8a0 !important;
  border-color: #5fb8a0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(95, 184, 160, 0.15);
}

.gallery-filter-btn.active {
  background: linear-gradient(135deg, #5fb8a0, #7bc8a0) !important;
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(95, 184, 160, 0.3);
}

.gallery-filter-btn.active:hover {
  background: linear-gradient(135deg, #5fb8a0, #7bc8a0) !important;
  color: #ffffff !important;
}

/* ===== ENHANCED ICON CIRCLES — Force visibility ===== */
.icon-circle {
  border-radius: 50% !important;
  display: inline-grid !important;
  place-items: center;
  color: #ffffff !important;
  flex-shrink: 0;
}

.icon-circle i {
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
}

/* ===== SERVICE CARDS — Enhanced gradient top bars ===== */
#tramites .card-hover .absolute.top-0.left-0.w-full.h-1\.5 {
  height: 4px !important;
  border-radius: 0 0 4px 4px;
}

/* ====================================================================== */
/* ===== CRITICAL VISIBILITY FIXES — DARK SECTIONS (INDEX.HTML) ===== */
/* ====================================================================== */

/* ===== MARCO LEGAL SECTION — Force dark background ===== */
#quienes div[class*="from-assupa-dark"][class*="rounded-3xl"],
#quienes div[class*="bg-gradient"][class*="from-assupa-dark"] {
  background: linear-gradient(135deg, #1E3A42 0%, #2A5A5E 100%) !important;
}
#quienes div[class*="from-assupa-dark"][class*="rounded-3xl"] h3,
#quienes div[class*="from-assupa-dark"][class*="rounded-3xl"] h4,
#quienes div[class*="from-assupa-dark"][class*="rounded-3xl"] p,
#quienes div[class*="from-assupa-dark"][class*="rounded-3xl"] span,
#quienes div[class*="from-assupa-dark"][class*="rounded-3xl"] i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
#quienes div[class*="from-assupa-dark"][class*="rounded-3xl"] p.text-sm,
#quienes div[class*="from-assupa-dark"][class*="rounded-3xl"] p[class*="text-sm"] {
  color: rgba(255,255,255,0.92) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.92) !important;
}

/* ===== INSTITUTIONAL SECTION (¿Representás una institución?) — Force dark bg ===== */
#ayudar div[class*="from-assupa-dark"][class*="rounded-3xl"],
#ayudar div[class*="bg-gradient"][class*="from-assupa-dark"] {
  background: linear-gradient(135deg, #1E3A42 0%, #2A5A5E 100%) !important;
}
#ayudar div[class*="from-assupa-dark"][class*="rounded-3xl"] h3,
#ayudar div[class*="from-assupa-dark"][class*="rounded-3xl"] p,
#ayudar div[class*="from-assupa-dark"][class*="rounded-3xl"] span,
#ayudar div[class*="from-assupa-dark"][class*="rounded-3xl"] i,
#ayudar div[class*="from-assupa-dark"][class*="rounded-3xl"] a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
#ayudar div[class*="from-assupa-dark"][class*="rounded-3xl"] p[class*="text-lg"],
#ayudar div[class*="from-assupa-dark"][class*="rounded-3xl"] > div > p {
  color: rgba(255,255,255,0.88) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.88) !important;
}

/* ===== SOLICITAR DOCUMENTO SECTION — Better contrast ===== */
#transparencia div[class*="border-2"][class*="border-assupa-turquoise"],
#transparencia div[class*="rounded-3xl"][class*="border-2"] {
  background: linear-gradient(135deg, #f0faf5 0%, #e8f8f0 50%, #e3f4fa 100%) !important;
  border-color: rgba(95,184,160,0.4) !important;
  box-shadow: 0 8px 30px rgba(95,184,160,0.15) !important;
}
#transparencia div[class*="border-2"][class*="border-assupa-turquoise"] h3,
#transparencia div[class*="rounded-3xl"][class*="border-2"] h3 {
  color: #1E3A42 !important;
}
#transparencia div[class*="border-2"][class*="border-assupa-turquoise"] p,
#transparencia div[class*="rounded-3xl"][class*="border-2"] p {
  color: #4a6a72 !important;
}

/* ===== CÓMO AYUDAR CARDS — Button alignment fix ===== */
#ayudar .grid.md\:grid-cols-3 > div {
  display: flex !important;
  flex-direction: column !important;
}
#ayudar .grid.md\:grid-cols-3 > div > a.btn-primary,
#ayudar .grid.md\:grid-cols-3 > div > a[class*="btn-primary"] {
  margin-top: auto !important;
  align-self: center !important;
  min-width: 220px;
  text-align: center;
}

/* ===== SOCIAL MEDIA EMBEDS — Fix visibility ===== */
#redes iframe[src*="facebook"] {
  min-height: 300px !important;
  background: #fff !important;
  border-radius: 12px !important;
}
#redes blockquote.instagram-media {
  min-height: 200px !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#redes .bg-gray-50.rounded-2xl {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
  border: 1px solid #e2e8f0 !important;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== FAQ "No encontrás" section — Force dark bg ===== */
#faq div[class*="from-assupa-dark"][class*="rounded-3xl"],
#faq div[class*="bg-gradient"][class*="from-assupa-dark"] {
  background: linear-gradient(135deg, #1E3A42 0%, #2A5A5E 100%) !important;
}
#faq div[class*="from-assupa-dark"][class*="rounded-3xl"] h3,
#faq div[class*="from-assupa-dark"][class*="rounded-3xl"] p,
#faq div[class*="from-assupa-dark"][class*="rounded-3xl"] a,
#faq div[class*="from-assupa-dark"][class*="rounded-3xl"] span,
#faq div[class*="from-assupa-dark"][class*="rounded-3xl"] i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
#faq div[class*="from-assupa-dark"][class*="rounded-3xl"] p[class*="max-w-lg"] {
  color: rgba(255,255,255,0.88) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.88) !important;
}

/* ===== PRE-FOOTER CTA BAND — Force gradient ===== */
section[style*="linear-gradient"][style*="1e3a42"] {
  background: linear-gradient(90deg, #1e3a42 0%, #243f47 50%, #5fb8a0 100%) !important;
}

/* ===== NEWS CARDS — Better link handling ===== */
.news-card a[target="_blank"] {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* ===== GLOBAL: Force all dark gradient sections to render ===== */
div[class*="from-assupa-dark"][class*="to-\[\#2A5A5E\]"],
div[class*="from-assupa-dark"][class*="to-#2A5A5E"] {
  background: linear-gradient(135deg, #1E3A42 0%, #2A5A5E 100%) !important;
}

/* ===== GLOBAL: Ensure white text on dark backgrounds ===== */
div[class*="from-assupa-dark"] .text-white,
div[class*="from-assupa-dark"] [style*="color: #ffffff"],
div[class*="from-assupa-dark"] [style*="color:#ffffff"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ===== GALLERY SECTION — Fix background ===== */
#galeria {
  background: linear-gradient(180deg, #e8f8f0 0%, #ffffff 50%, #e3f4fa 100%) !important;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5fb8a0, #7bc8a0);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(95,184,160,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 40;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(95,184,160,0.5);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 58, 66, 0.97);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1rem 1.5rem;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.cookie-banner-text a {
  color: #f2e6a3;
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
}
.cookie-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.cookie-btn-accept {
  background: linear-gradient(135deg, #5fb8a0, #7bc8a0);
  color: white;
}
.cookie-btn-reject {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
}
.cookie-btn:hover {
  transform: translateY(-1px);
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  #ayudar .grid.md\:grid-cols-3 > div > a.btn-primary,
  #ayudar .grid.md\:grid-cols-3 > div > a[class*="btn-primary"] {
    min-width: auto;
    width: 100%;
  }
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
}

