/* ==========================================================================
   Edudiversa — estilos globales
   Paleta tomada del diseño original (edudiversa.pdf).
   ========================================================================== */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/fonts/nunito-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('/fonts/nunito-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #14213d;
  --text: #1b2340;
  --muted: #4a5578;
  --purple: #7b2f89;
  --purple-soft: #c8a6e6;
  --pink-pill: #ecc8f2;
  --bg-blue: #e2eaff;
  --bg-light: #f5f8ff;
  --bg-contact: #edcbf6;
  --border: #c6d0ec;
  --white: #ffffff;

  --blue: #1e40af;
  --blue-bright: #1d4fd8;
  --teal: #0f7a6a;
  --magenta: #a21caf;
  --orange: #b4530e;
  --green-dark: #0f6b3a;
  --green-light: #4ade80;
  --red: #b91c1c;

  --radius: 18px;
  --radius-pill: 999px;
  --shadow: 0 6px 24px rgba(20, 33, 61, 0.07);
  --container: 1310px;
  --gutter: clamp(16px, 5vw, 72px);
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Nunito', ui-rounded, 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

img {
  height: auto;
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 10px;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  text-decoration: none;
  flex-shrink: 0;
}

.dots {
  display: flex;
  gap: 6px;
}
.dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.dots span:nth-child(1) { background: var(--blue-bright); }
.dots span:nth-child(2) { background: var(--teal); }
.dots span:nth-child(3) { background: var(--orange); }
.dots span:nth-child(4) { background: var(--magenta); }
.dots span:nth-child(5) { background: #15803d; }

.brand img {
  height: 44px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav a,
.nav-button {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 1.13rem;
  color: var(--navy);
  text-decoration: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  background: rgba(236, 200, 242, 0.55);
}

.main-nav a.active,
.main-nav a[aria-current='page'] {
  background: var(--pink-pill);
}

.nav-button {
  border: 2px solid var(--navy);
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  font-size: 1rem;
}
.nav-button:hover {
  background: var(--navy);
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy);
}
.menu-toggle svg {
  width: 30px;
  height: 30px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0.75rem 2.1rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20, 33, 61, 0.14);
}
.btn:active {
  transform: translateY(0);
}
.btn svg {
  width: 1.3em;
  height: 1.3em;
  flex-shrink: 0;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.btn-whatsapp {
  background: var(--green-dark);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}
.btn-whatsapp-light {
  background: var(--green-light);
  color: #062b16;
}
.btn-white {
  background: #fff;
  color: var(--navy);
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-sm {
  min-height: 46px;
  padding: 0.55rem 1.6rem;
  font-size: 1.05rem;
}
.btn-danger-text {
  background: none;
  border: 0;
  color: var(--red);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
}
.btn-danger-text:hover {
  background: #fde8e8;
}

/* ---------- Secciones ---------- */
.section {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.section-blue {
  background: var(--bg-blue);
}
.section-light {
  background: var(--bg-light);
}
.section-contact {
  background: var(--bg-contact);
}

.section-title {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  font-weight: 900;
}
.section-subtitle {
  margin-top: 0.6rem;
  font-size: 1.2rem;
  color: var(--muted);
}
.section-head {
  margin-bottom: 2.2rem;
}

/* ---------- Inicio ---------- */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 3rem;
}
.hero-title {
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  font-weight: 900;
  color: var(--purple);
  line-height: 1.02;
}
.hero-lead {
  margin-top: 1.5rem;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.5;
  color: var(--navy);
  max-width: 36ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.hero-about {
  margin-top: 2.6rem;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.6;
  max-width: 40ch;
  color: var(--navy);
}
.hero-logo {
  justify-self: center;
  width: min(100%, 470px);
}
.mascot {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.mascot-cheer {
  right: clamp(8px, 2vw, 28px);
  bottom: 0;
  width: clamp(110px, 12vw, 170px);
}

/* ---------- Quiénes somos ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem 2.4rem;
}
.team-name {
  height: 120px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 1.4rem;
  background: #f0f0f0;
  box-shadow: 0 0 0 6px var(--bg-light);
}
.team-role {
  margin-top: 1.6rem;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--navy);
}
.team-desc {
  margin-top: 0.35rem;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--navy);
  max-width: 17em;
}

/* ---------- Recursos ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.resource-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  min-height: 300px;
}
.pdf-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 73px;
  height: 91px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  border-radius: 12px 0 12px 12px;
}
.pdf-icon::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 18px 18px 0;
  border-color: var(--white) var(--white) #8a3f0b #8a3f0b;
  border-bottom-left-radius: 5px;
}
.resource-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  background: #fdf0e6;
  color: #8a3f0b;
  font-size: 0.9rem;
  font-weight: 800;
}
.resource-lock svg {
  width: 14px;
  height: 14px;
}
.resource-title {
  margin-top: 1rem;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.25;
}
.resource-actions {
  margin-top: auto;
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.resource-actions .btn {
  min-width: 240px;
}
.link-view {
  font-weight: 800;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}
.mascot-books {
  right: clamp(8px, 2vw, 28px);
  bottom: 0;
  width: clamp(100px, 9vw, 135px);
}
.section-resources {
  padding-bottom: clamp(9rem, 14vw, 12rem);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 2.2rem;
  text-align: center;
  font-size: 1.15rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.service-card {
  padding: 1.9rem 1.75rem;
}
.service-card h3 {
  font-size: 1.85rem;
  font-weight: 900;
}
.service-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.6rem;
  font-size: 1.2rem;
  line-height: 1.7;
}
.service-card li::marker {
  color: var(--navy);
}
.title-teal { color: var(--teal); }
.title-blue { color: var(--blue-bright); }
.title-magenta { color: var(--magenta); }
.products-card {
  grid-column: 1 / -1;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.4rem 1.2rem;
  border: 2px solid var(--magenta);
  border-radius: var(--radius-pill);
  font-size: 1.1rem;
  background: #fff;
}

/* ---------- Testimonios ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  margin: 0;
  padding: 2rem 1.75rem 1.9rem;
  display: flex;
  flex-direction: column;
}
.quote-mark {
  font-size: 5rem;
  line-height: 0.8;
  height: 2.6rem;
  font-weight: 900;
  color: var(--magenta);
  font-family: Georgia, 'Times New Roman', serif;
}
.testimonial-text {
  margin: 1rem 0 0 !important;
  margin-top: 1rem;
  font-size: 1.3rem;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.testimonial-author {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--muted);
}
.testimonial-author strong {
  color: var(--navy);
  font-weight: 900;
}

/* ---------- Contacto ---------- */
.contact {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3rem;
}
.contact-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  color: var(--purple);
}
.contact-lead {
  margin-top: 1.3rem;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  color: var(--navy);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-email {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  color: var(--navy);
}
.contact-email a {
  font-weight: 800;
}
.contact-logo {
  justify-self: center;
  width: min(100%, 460px);
}

/* ---------- Pie ---------- */
.site-footer {
  background: var(--navy);
  color: #d7def3;
  padding-block: 1.8rem;
  font-size: 0.98rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer-links a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-admin {
  color: #9aa6c9 !important;
  font-weight: 600 !important;
}

/* ---------- Modal (contraseña de PDF) ---------- */
dialog.modal {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  width: min(440px, 100% - 32px);
  box-shadow: 0 24px 60px rgba(20, 33, 61, 0.3);
  color: var(--text);
}
dialog.modal::backdrop {
  background: rgba(20, 33, 61, 0.45);
}
.modal-body {
  padding: 1.8rem;
}
.modal-body h2 {
  font-size: 1.5rem;
  font-weight: 900;
}
.modal-body p {
  margin-top: 0.5rem;
  color: var(--muted);
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

/* ---------- Formularios ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}
.field label,
.label {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--navy);
}
.field .hint {
  font-size: 0.9rem;
  color: var(--muted);
}
.input,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid #4a5578;
  border-radius: 10px;
  background: var(--bg-light);
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
}
.textarea {
  min-height: 110px;
  resize: vertical;
}
.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(29, 79, 216, 0.2);
  background: #fff;
}
input[type='file'].input {
  padding: 0.5rem;
  cursor: pointer;
}
input[type='file'].input::file-selector-button {
  font: inherit;
  font-weight: 800;
  margin-right: 0.8rem;
  padding: 0.35rem 0.9rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--pink-pill);
  color: var(--navy);
  cursor: pointer;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-weight: 800;
  cursor: pointer;
}
.checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}
.form-message {
  min-height: 1.5em;
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 0.98rem;
}
.form-message.error {
  color: var(--red);
}
.form-message.success {
  color: var(--green-dark);
}

/* ---------- Panel de administración ---------- */
.admin-main {
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 4rem;
}
.admin-panel {
  margin-top: 2rem;
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
  border: 2.5px dashed var(--orange);
  border-radius: var(--radius);
  background: var(--white);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.admin-panel h2 {
  font-size: 1.7rem;
  font-weight: 900;
}
.admin-panel form .btn {
  margin-top: 1.1rem;
}
.contact-quick {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.1rem;
}
.contact-quick .btn {
  width: 100%;
  justify-content: flex-start;
  padding-inline: 1.4rem;
}
.btn-instagram {
  background: linear-gradient(90deg, #f58529, #dd2a7b 50%, #8134af);
  color: #fff;
}
.btn-mail {
  background: var(--blue);
  color: #fff;
}
.contact-quick-note {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.admin-lists {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.admin-list-card {
  padding: 1.6rem;
}
.admin-list-card h2 {
  font-size: 1.5rem;
  font-weight: 900;
}
.admin-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.admin-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}
.admin-list li:first-child {
  border-top: 0;
}
.admin-item-main {
  min-width: 0;
}
.admin-item-title {
  font-weight: 800;
  overflow-wrap: anywhere;
}
.admin-item-meta {
  font-size: 0.92rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.admin-item-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}
.admin-item-actions a {
  font-weight: 800;
  color: var(--blue);
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  text-decoration: none;
}
.admin-item-actions a:hover {
  background: var(--bg-blue);
}
.admin-empty {
  padding: 1rem 0 0;
  color: var(--muted);
}

/* ---------- Login ---------- */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 16px;
  background: var(--bg-blue);
}
.login-card {
  width: min(440px, 100%);
  padding: 2.2rem;
  text-align: left;
  box-shadow: var(--shadow);
}
.login-logo {
  width: 170px;
  margin: 0 auto 1.2rem;
}
.login-card h1 {
  font-size: 1.8rem;
  font-weight: 900;
  text-align: center;
}
.login-card .btn {
  width: 100%;
  margin-top: 1.4rem;
}
.login-back {
  display: block;
  margin-top: 1.2rem;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(20, 33, 61, 0.3);
}
.toast.error {
  background: var(--red);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a {
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
  }
  .brand {
    gap: 0.9rem;
  }
  .brand img {
    height: 38px;
  }
  .team-grid,
  .resource-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(20, 33, 61, 0.1);
    display: none;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem var(--gutter) 1.2rem;
    gap: 0.2rem;
  }
  .main-nav a,
  .nav-button {
    font-size: 1.15rem;
    padding: 0.7rem 1rem;
    justify-content: flex-start;
    width: 100%;
  }
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero {
    padding-bottom: 9rem;
  }
  .hero-logo,
  .contact-logo {
    width: min(80%, 360px);
    order: -1;
  }
  .services-grid,
  .admin-lists {
    grid-template-columns: 1fr;
  }
  .admin-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 70px;
  }
  .dots span {
    width: 11px;
    height: 11px;
  }
  .brand {
    gap: 0.7rem;
  }
  .brand img {
    height: 34px;
  }
  .team-grid,
  .resource-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .resource-actions .btn {
    min-width: 0;
  }
  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }
  .admin-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

/* Ajuste: los tres botones de contacto caben en una sola fila en escritorio */
@media (min-width: 641px) {
  .contact-actions .btn {
    padding-inline: 1.5rem;
  }
}

/* Íconos en los enlaces del pie */
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.footer-links svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
