/* ============================================
   Portal Egresados Los Shyris - Estilos
   Paleta: rojo (primario), gris (secundario), blanco (fondo)
   Tipografía: Playfair Display (títulos), Inter (cuerpo)
   ============================================ */

:root {
  --color-primary: #b91c1c;
  --color-primary-hover: #991b1b;
  --color-primary-light: rgba(185, 28, 28, 0.12);
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-muted: #f3f4f6;
  --color-border: #e5e7eb;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

.no-scroll {
  overflow: hidden;
}

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

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

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 480px) {
  .container { padding: 0 1.25rem; }
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.8);
}

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

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

/* ----- 1. Navbar ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 0;
}

@media (min-width: 768px) {
  .navbar__inner { padding: 1rem 2rem; gap: 1rem; }
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text);
  min-width: 0;
}

@media (min-width: 480px) {
  .navbar__logo { font-size: 1rem; gap: 0.5rem; }
}

@media (min-width: 768px) {
  .navbar__logo { font-size: 1.125rem; }
}

/* Logo: más pequeño en móvil para que no desborde */
.navbar__logo-icon { font-size: 1.75rem; }
.navbar__logo-img { height: 2.25rem; width: auto; max-width: 140px; object-fit: contain; display: block; }

@media (min-width: 480px) {
  .navbar__logo-icon { font-size: 2.5rem; }
  .navbar__logo-img { height: 3rem; max-width: 180px; }
}

@media (min-width: 768px) {
  .navbar__logo-icon { font-size: 3.75rem; }
  .navbar__logo-img { height: 5rem; max-width: 300px; }
}
.navbar__logo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 360px) {
  .navbar__logo-text { white-space: normal; }
}
.navbar__logo-sub { color: var(--color-text-muted); font-weight: 500; font-size: 0.875em; }

.navbar__nav {
  display: none;
  gap: 1.5rem;
}

.navbar__nav a {
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.navbar__nav a:hover { color: var(--color-primary); }

@media (min-width: 768px) {
  .navbar__nav { display: flex; }
}

.navbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (min-width: 768px) {
  .navbar__toggle { display: none; }
}

.navbar--open .navbar__nav {
  display: flex;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  bottom: auto;
  flex-direction: column;
  padding: 1.25rem 1rem;
  background: var(--color-bg);
  box-shadow: var(--shadow-lg);
  gap: 0.25rem;
  max-height: calc(100vh - 52px);
  overflow-y: auto;
}

@media (min-width: 480px) {
  .navbar--open .navbar__nav { top: 60px; max-height: calc(100vh - 60px); }
}

.navbar--open .navbar__nav a {
  font-size: 1rem;
  padding: 0.75rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Botón CTA del navbar: en pantallas muy pequeñas se oculta para dar espacio al logo */
.navbar .btn--sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* CTA "Regístrate": pulso + brillo sutil */
.navbar__cta-register {
  position: relative;
  animation: ctaPulse 2.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.45);
}

.navbar__cta-register::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: ctaShine 2.8s ease-in-out infinite;
}

@keyframes ctaPulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.45);
  }
  60% {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 0 10px rgba(185, 28, 28, 0);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(185, 28, 28, 0);
  }
}

@keyframes ctaShine {
  0%, 65% { left: -80%; }
  85%, 100% { left: 135%; }
}

@media (prefers-reduced-motion: reduce) {
  .navbar__cta-register,
  .navbar__cta-register::after {
    animation: none;
  }
}

@media (max-width: 359px) {
  .navbar .btn--sm { display: none; }
}

/* ----- 2. Hero ----- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 3rem;
  overflow: hidden;
}

@media (min-width: 480px) {
  .hero { min-height: 88vh; padding: 5rem 1.25rem 4rem; }
}

@media (min-width: 768px) {
  .hero { min-height: 90vh; padding: 5rem 2rem 4rem; }
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: clamp(1rem, 4vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.hero__desc {
  font-size: clamp(0.9375rem, 2.5vw, 1rem);
  color: rgba(255,255,255,0.85);
  margin: 0 0 1.5rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero__actions .btn {
  min-height: 44px;
  padding: 0.75rem 1.25rem;
}

.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  line-height: 0;
  pointer-events: none;
}

.hero__wave svg {
  width: 100%;
  height: 100%;
}

/* ----- Section titles ----- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem;
  line-height: 1.2;
  word-wrap: break-word;
}

.section-title--center { text-align: center; }
.section-title--center + * { margin-top: 0.5rem; }

/* ----- 3. About ----- */
.about {
  padding: 2.5rem 0;
  background: var(--color-bg);
}

@media (min-width: 768px) {
  .about { padding: 4rem 0; }
}

.about__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.about__media {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__media img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
}

@media (min-width: 480px) {
  .about__media img { min-height: 260px; }
}

@media (min-width: 768px) {
  .about__media img { min-height: 280px; }
}

.about__badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--color-primary);
  color: white;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-md);
}

.about__content p {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 480px) {
  .about__stats { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  background: var(--color-primary-light);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
}

.stat__icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.stat__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ----- 4. Events ----- */
.events {
  padding: 4rem 0;
  background: var(--color-bg-muted);
}

.events .section-title { margin-bottom: 1.5rem; }

.events__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .events__grid { grid-template-columns: repeat(3, 1fr); }
}

.event-card {
  background: var(--color-bg);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
  min-width: 0;
}

@media (min-width: 768px) {
  .event-card { padding: 1.5rem; }
}

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

.event-card__badge {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}

.event-card__meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.event-card__time { margin-left: 0.5rem; }

.event-card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.event-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.event-card__location {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ----- 5. Gallery ----- */
.gallery {
  padding: 2.5rem 0;
  background: var(--color-bg);
}

@media (min-width: 768px) {
  .gallery { padding: 4rem 0; }
}

.gallery .section-title { margin-bottom: 1.5rem; }

.gallery__empty {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0;
  padding: 2rem 1rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(100px, 140px);
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .gallery__grid { grid-auto-rows: 140px; gap: 0.75rem; }
}

@media (min-width: 640px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 1rem;
  }
}

.gallery__item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery__item:hover img {
  transform: scale(1.1);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery__item:hover .gallery__overlay,
.gallery__item:focus-within .gallery__overlay {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .gallery__item .gallery__overlay {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%);
  }
}

.gallery__overlay span {
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
}

.gallery__item--large {
  grid-column: span 2;
  grid-row: span 2;
}

@media (min-width: 640px) {
  .gallery__item--large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery__item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 639px) {
  .gallery__item--wide { grid-column: span 2; }
}

/* ----- 5b. Galería de videos ----- */
.video-gallery {
  padding: 2.5rem 0;
  background: var(--color-bg-muted);
}

@media (min-width: 768px) {
  .video-gallery { padding: 4rem 0; }
}

.video-gallery .section-title { margin-bottom: 1.5rem; }

.video-gallery__empty {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0;
  padding: 2rem 1rem;
}

.video-gallery__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .video-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .video-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

.video-card {
  background: var(--color-bg);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

/* Mismo tamaño para YouTube (iframe) y video subido: caja 16:9 idéntica en todas las tarjetas */
.video-card__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.video-card__embed iframe,
.video-card__embed .video-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-card__video {
  background: #000;
  object-fit: cover;
  object-position: center;
}

@supports not (aspect-ratio: 16 / 9) {
  .video-card__embed {
    height: 0;
    padding-bottom: 56.25%;
    aspect-ratio: unset;
  }
}

.video-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  padding: 0.875rem 1rem 1rem;
  color: var(--color-text);
  line-height: 1.35;
}

/* ----- 6. Testimonials ----- */
.testimonials {
  padding: 2.5rem 0;
  background: var(--color-bg-muted);
}

@media (min-width: 768px) {
  .testimonials { padding: 4rem 0; }
}

.testimonials .section-title { margin-bottom: 1.5rem; }

.testimonials__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background: var(--color-bg);
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  margin: 0;
  position: relative;
  min-width: 0;
}

@media (min-width: 768px) {
  .testimonial-card { padding: 1.5rem; }
}

.testimonial-card__quote {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.6;
  display: block;
}

.testimonial-card__text {
  font-style: italic;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
}

.testimonial-card__author strong { color: var(--color-text); }

.testimonial-card__author span { color: var(--color-text-muted); }

/* ----- 7. Contact ----- */
.contact {
  padding: 2.5rem 0;
  background: var(--color-bg);
}

@media (min-width: 768px) {
  .contact { padding: 4rem 0; }
}

.contact__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact__grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

.contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.contact__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: 0.5rem;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.contact__list a {
  color: var(--color-primary);
  font-weight: 500;
}

.contact__list a:hover { text-decoration: underline; }

.contact__form-wrap {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .contact__form-wrap { padding: 2rem; }
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-row label {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-row textarea { resize: vertical; min-height: 100px; }

/* ----- 8. Footer ----- */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.85);
  padding: 2rem 0 0;
}

@media (min-width: 768px) {
  .footer { padding: 3rem 0 0; }
}

.footer__grid {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

@media (min-width: 480px) {
  .footer__grid { gap: 2rem; padding-bottom: 2rem; }
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
  display: block;
  margin-bottom: 0.5rem;
}

.footer__brand p {
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
  max-width: 100%;
}

@media (min-width: 768px) {
  .footer__brand p { max-width: 320px; }
}

.footer__links h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.75rem;
}

.footer__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li { margin-bottom: 0.5rem; }

.footer__links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
}

.footer__links a:hover { color: white; }

.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer__social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: inherit;
}

.footer__bottom {
  padding: 1rem 0;
}

.footer__bottom .container p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  line-height: 1.5;
  word-wrap: break-word;
}

@media (min-width: 480px) {
  .footer__bottom .container p { font-size: 0.875rem; }
}

.footer__bottom a {
  color: rgba(255,255,255,0.85);
}

.footer__bottom a:hover { color: white; }

/* ----- Modal ----- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1100;
  overflow-y: auto;
  padding: 1rem;
  box-sizing: border-box;
}

.modal--open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0,0,0,0.4);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 5vh auto;
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 480px) {
  .modal__dialog {
    padding: 2rem 2rem 1.75rem;
    margin: 8vh auto;
  }
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.modal__text {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

/* Botones visibles en el modal (fondo claro) */
.modal__actions .btn--primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.modal__actions .btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.modal__actions .btn--outline:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.modal__close:hover {
  background: rgba(0,0,0,0.04);
  color: var(--color-text);
}

/* ----- Form feedback ----- */
.form-message {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.form-message.success { background: #d1fae5; color: #065f46; }
.form-message.error { background: #fee2e2; color: #991b1b; }
