/* Centrar vertical y horizontalmente la sección de noticias en X */
.x-section {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* ===== PÁGINAS DE DETALLE (INFLACIÓN, TASAS, ETC.) ===== */

.pagina-detalle {
  min-height: calc(100vh - 200px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 16px 60px;
  background-color: #f5f7fb;
}

.card-detalle {
  max-width: 900px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 32px 40px 32px;
}

/* Títulos y subtítulos */

.card-detalle h1 {
  font-size: 2rem;
  text-align: center;
  color: #003f88;
  margin-bottom: 0.75rem;
  letter-spacing: -1px;
}

.subtitulo-detalle {
  text-align: center;
  color: #4b5563;
  margin-bottom: 1.8rem;
  font-size: 1.08rem;
}

/* Contenido interno */
.card-detalle h2 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #111827;
  text-align: center;
}

.card-detalle p {
  color: #374151;
  line-height: 1.7;
  font-size: 1.01rem;
  text-align: justify;
  margin-bottom: 0.8rem;
}

.card-detalle ul,
.card-detalle ol {
  padding-left: 1.2rem;
  margin-bottom: 0.8rem;
}

.card-detalle li {
  color: #374151;
  line-height: 1.7;
  font-size: 1.01rem;
  text-align: justify;
  margin-bottom: 0.4rem;
}

/* Botón "Volver al inicio" centrado */
.btn-volver {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.55rem 1.9rem;
  border-radius: 999px;
  background-color: #003f88;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
}

.btn-volver:hover {
  background-color: #002b5c;
}

@media (max-width: 768px) {
  .pagina-detalle {
    padding: 72px 12px 40px;
  }

  .card-detalle {
    padding: 24px 18px 24px;
  }

  .card-detalle h1 {
    font-size: 1.6rem;
  }
}
/* ====== Mejora visual para páginas de detalle ====== */
.pagina-detalle {
  max-width: 700px;
  margin: 64px auto 60px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.detalle-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(15,23,42,0.13);
  padding: 40px 36px 32px 36px;
  width: 100%;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-detalle h1 {
  font-size: 2.2rem;
  color: #003f88;
  margin-bottom: 0.7rem;
  text-align: center;
}
.hero-detalle .subtitulo {
  color: #4b5563;
  margin-bottom: 1.7rem;
  text-align: center;
  font-size: 1.15rem;
}
.contenido-detalle {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.contenido-detalle h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #111827;
  font-size: 1.25rem;
  text-align: center;
}
.contenido-detalle p,
.contenido-detalle li {
  color: #374151;
  line-height: 1.7;
  font-size: 1.08rem;
  text-align: center;
}
.contenido-detalle ul,
.contenido-detalle ol {
  margin: 0 auto 1.2rem auto;
  padding-left: 0;
  text-align: center;
  display: table;
}
.contenido-detalle li {
  text-align: left;
  display: list-item;
  margin-bottom: 0.4rem;
}
.btn-volver {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 1.8rem;
  border-radius: 999px;
  background-color: #003f88;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(15,23,42,0.08);
  transition: background 0.15s;
}
.btn-volver:hover {
  background-color: #002b5c;
}
@media (max-width: 700px) {
  .pagina-detalle {
  max-width: 100vw;
  margin: 32px 0 32px 0;
  }
  .detalle-box {
  padding: 18px 6px 18px 6px;
  }
  .contenido-detalle {
  max-width: 98vw;
  }
}
/* ====== Estilo para páginas de detalle ====== */
.pagina-detalle {
  max-width: 900px;
  margin: 80px auto 60px;
  padding: 0 16px;
}
.hero-detalle h1 {
  font-size: 2rem;
  color: #003f88;
  margin-bottom: 0.5rem;
}
.hero-detalle .subtitulo {
  color: #4b5563;
  margin-bottom: 1.5rem;
}
.contenido-detalle h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #111827;
}
.contenido-detalle p,
.contenido-detalle li {
  color: #374151;
  line-height: 1.6;
}
.btn-volver {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 1.8rem;
  border-radius: 999px;
  background-color: #003f88;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.btn-volver:hover {
  background-color: #002b5c;
}
.link-nota {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background-color: #003f88;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s;
}
.link-nota:hover {
  background-color: #002b5c;
}
/* Forzar centrado de la sección de noticias en X y sus elementos */
.x-section, .noticias-x-container, .x-carousel, .x-cards-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
}
.x-card {
  margin: 0 auto !important;
}
.x-arrow {
  align-self: center !important;
}
/* ====== Noticias recientes en X (1 tarjeta, estilo BBVA) ====== */
.x-section {
  background: #f3f4f6;
  padding: 48px 0 40px;
}
.x-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #003f88;
  margin-bottom: 32px;
}
.noticias-x-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.x-carousel {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  gap: 24px;
}
.x-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #003f88;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(15,23,42,0.08);
}
.x-arrow:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}
.x-cards-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}
.x-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 15px 30px rgba(15,23,42,0.18);
  padding: 32px 36px 28px 36px;
  min-width: 340px;
  max-width: 480px;
  margin: 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.x-user {
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  font-size: 1.1rem;
  text-align: center;
}
.x-text {
  font-size: 1.05rem;
  color: #374151;
  margin-bottom: 18px;
  text-align: center;
}
.x-link {
  display: block;
  text-align: center;
  font-size: 1rem;
  color: #003f88;
  text-decoration: none;
  font-weight: 600;
  margin-top: 4px;
}
.x-link:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .x-card {
    min-width: 0;
    width: 100%;
    padding: 20px 10px;
  }
  .noticias-x-container {
    min-height: unset;
    padding: 0 4px;
  }
}
/* Centrar el bloque de noticias de X */
.noticias-x-container {
  max-width: 700px; /* ancho controlado */
  margin: 0 auto;   /* centra horizontalmente */
  text-align: center; /* centra el texto */
}
/* ====== Noticias recientes en X ====== */
.x-section {
  background: #f3f4f6;
  padding: 48px 0 40px;
}

.x-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #003f88;
  margin-bottom: 24px;
}

.x-carousel {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.x-cards-wrapper {
  flex: 1;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.18);
  padding: 28px 32px;
  display: flex;
  justify-content: center;
}

.x-card {
  width: 100%;
}

.x-user {
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  text-align: center;
}

.x-text {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 16px;
  text-align: center;
}

.x-link {
  display: block;
  text-align: center;
  font-size: 0.95rem;
  color: #003f88;
  text-decoration: none;
  font-weight: 600;
}

.x-link:hover {
  text-decoration: underline;
}

.x-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.15s ease, transform 0.1s ease;
}

.x-arrow:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}
/* ====== Noticias recientes en X ====== */
.x-section {
  background: #f3f4f6; /* gris clarito tipo BBVA */
  padding: 48px 0 40px;
}

.x-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #003f88;
  margin-bottom: 24px;
}

.x-carousel {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.x-cards-wrapper {
  flex: 1;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.18);
  padding: 24px 28px;
  display: flex;
  justify-content: center;
}

.x-cards {
  display: flex;
  gap: 24px;
  width: 100%;
}

.x-card {
  flex: 1;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 16px 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.x-user {
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.x-text {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 16px;
}

.x-link {
  font-size: 0.9rem;
  color: #003f88;
  text-decoration: none;
  font-weight: 600;
}

.x-link:hover {
  text-decoration: underline;
}

.x-arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.15s ease, transform 0.1s ease;
}

.x-arrow:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* Responsive: en móvil se ponen una debajo de la otra */
@media (max-width: 768px) {
  .x-cards {
    flex-direction: column;
  }
}
/* ==== Carrusel de una sola tarjeta centrada ==== */
.x-single {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}
.x-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2.2rem;
  color: #003f88;
}
.x-single-outer {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 32px rgba(15,23,42,0.10);
  padding: 0.5rem 0.5rem;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.x-single-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  font-size: 1.5rem;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #003f88;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin: 0 0.5rem;
}
.x-single-btn:hover {
  background: #003f88;
  color: #fff;
}
.x-single-window {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.x-single-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(.77,0,.18,1);
  width: 100%;
}
.x-single-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.10);
  padding: 2.2rem 2.5rem 2.2rem 2.5rem;
  margin: 0 auto;
  min-width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.x-single-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #003f88;
}
.x-single-card p {
  font-size: 0.97rem;
  margin-bottom: 0.75rem;
  color: #222;
}
.x-single-card a {
  color: #003f88;
  font-weight: 600;
  font-size: 0.87rem;
  text-decoration: underline;
}
/* Fondo blanco, centrado y con sombra para el carrusel X */
.x-dual-outer {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(15,23,42,0.10);
  padding: 2.2rem 1.5rem 2.2rem 1.5rem;
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.x-dual-carousel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.x-dual-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  font-size: 1.5rem;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #003f88;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.x-dual-btn:hover {
  background: #003f88;
  color: #fff;
}
.x-dual-window {
  background: transparent;
  flex: 1;
  min-width: 0;
}
.x-dual-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(.77,0,.18,1);
}
.x-dual-pair {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  min-width: 100%;
  gap: 2rem;
}
.x-card {
  flex: 1 1 0;
  background: #fff;
  padding: 1.5rem 1.7rem;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  margin: 0 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}
.x-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #003f88;
}
.x-card p {
  font-size: 0.97rem;
  margin-bottom: 0.75rem;
  color: #222;
}
.x-card a {
  color: #003f88;
  font-weight: 600;
  font-size: 0.87rem;
  text-decoration: underline;
}
.x-title {
  margin-bottom: 2.2rem;
}
/* ==== CARRUSEL DE DOS COLUMNAS IZQUIERDA - DERECHA ==== */
.x-dual {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.x-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #003f88;
}

.x-dual-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.x-dual-btn {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 1.4rem;
}

.x-dual-window {
  overflow: hidden;
  flex: 1;
}

.x-dual-track {
  display: flex;
  transition: transform 0.6s ease;
}

.x-dual-pair {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-width: 100%;
  gap: 2rem;
}

.x-card {
  flex: 1;
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.x-card.left {
  margin-right: auto;
}

.x-card.right {
  margin-left: auto;
}

.x-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.x-card p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.x-card a {
  color: #003f88;
  font-weight: 600;
  font-size: 0.85rem;
}
/* ==== Carrusel horizontal de X ==== */
.x-section {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.x-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #003f88;
}

.x-section-subtitle {
  color: #4b5563;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

/* Layout del carrusel */
.x-carousel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.x-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}

.x-track-wrapper {
  overflow: hidden;
  flex: 1;
}

.x-track {
  display: flex;
  transition: transform 0.5s ease;
}

/* Tarjetas */
.x-card {
  width: 50%;               /* <-- dos tarjetas visibles */
  min-width: 50%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-right: 1rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.x-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.x-avatar {
  width: 40px;
  height: 40px;
  background: #002b5c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

.x-name {
  font-weight: 700;
}

.x-handle {
  color: #6b7280;
  font-size: 0.8rem;
}

.x-logo {
  margin-left: auto;
  font-size: 1.2rem;
}

.x-text {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.x-footer a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d4ed8;
}
/* ==== Carrusel X / Noticias financieras en X ==== */
.x-section {
  max-width: 1100px;
  margin: 0 auto 3rem auto;
  padding: 2rem 1.5rem 0;
}

.x-section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #002b5c;
  text-align: left;
  margin-bottom: 0.25rem;
}

.x-section-subtitle {
  margin: 0 0 1.5rem 0;
  color: #4b5563;
  font-size: 0.95rem;
}

/* carrusel base */
.x-carousel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.x-track-wrapper {
  overflow: hidden;
  flex: 1;
}

.x-track {
  display: flex;
  transition: transform 0.4s ease;
}

/* Tarjeta tipo tweet */
.x-card {
  min-width: 100%;
  max-width: 100%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
}

.x-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.x-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.x-handle {
  font-size: 0.78rem;
  color: #6b7280;
}

.x-logo {
  margin-left: auto;
  font-size: 1.2rem;
  color: #111827;
}

.x-text {
  font-size: 0.93rem;
  line-height: 1.5;
  color: #111827;
  margin-bottom: 0.85rem;
}

.x-footer a {
  font-size: 0.82rem;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}

.x-footer a:hover {
  text-decoration: underline;
}

/* flechas */
.x-nav {
  border-radius: 999px;
  width: 32px;
  height: 32px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-nav:hover {
  background: #f3f4f6;
}

/* puntos */
.x-dots {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.x-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: #d1d5db;
  cursor: pointer;
}

.x-dot-active {
  background: #003f88;
}

/* Responsive: en móviles el carrusel ocupa todo el ancho */
@media (max-width: 768px) {
  .x-section {
    padding-inline: 1rem;
  }
}
/* Carrusel de tweets tipo X (estilo tarjeta profesional) */
.tweet-carrusel-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem 0;
}
.tweet-carrusel {
  min-width: 320px;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 1.5rem 1.7rem 1.2rem 1.7rem;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.tweet-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.tweet-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}
.tweet-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.tweet-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #222;
}
.tweet-username {
  font-size: 0.97rem;
  color: #555;
}
.tweet-date {
  font-size: 0.93rem;
  color: #888;
}
.tweet-text {
  font-size: 1.08rem;
  color: #222;
  margin: 0.2rem 0 0.5rem 0;
}
.tweet-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  background: #f5f7fa;
}
.tweet-carrusel-btn {
  background: #fff;
  color: #003f88;
  border: 1.5px solid #e5e7eb;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tweet-carrusel-btn:hover {
  background: #003f88;
  color: #fff;
}
.tweet-link {
  color: #003f88;
  text-decoration: underline;
  font-size: 0.97rem;
  margin-top: 0.2rem;
}
/* Carruseles de X (Secretaría de Finanzas y SAT) */
.carrusel-section {
  margin: 2.5rem 0 1.5rem 0;
  text-align: center;
}
.carrusel-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: #003f88;
}
.carrusel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.carrusel {
  min-width: 220px;
  max-width: 350px;
  background: #f5f7fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1.1rem 1.2rem;
  text-align: left;
}
.tweet-card blockquote {
  font-size: 1rem;
  color: #222;
  margin: 0 0 0.5rem 0;
  font-style: italic;
}
.tweet-card a {
  color: #003f88;
  text-decoration: underline;
  font-size: 0.97rem;
}
.carrusel-btn {
  background: #003f88;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s;
}
.carrusel-btn:hover {
  background: #002b5c;
}
.hidden {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-panel {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
  padding: 24px 28px 20px;
  width: 100%;
  max-width: 420px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #111827;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 18px;
}

.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.modal-actions {
  margin-top: 1rem;
  text-align: center;
}

.btn-primary {
  border-radius: 999px;
  border: none;
  padding: 0.5rem 1.8rem;
  background: #003f88;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: #002b5c;
}
/* === MODAL EDITAR USUARIO (ADMIN) === */
.hidden {
  display: none !important;
}

/* FONDO OSCURO DEL MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

/* TARJETA CENTRAL */
.modal-panel {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
  padding: 24px 28px 20px;
  width: 100%;
  max-width: 420px;
  position: relative;
}

/* TÍTULO */
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #111827;
}

/* BOTÓN CERRAR (X) */
.modal-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 18px;
}

/* GRUPOS DE FORMULARIO */
.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

/* BOTÓN GUARDAR */
.modal-actions {
  margin-top: 1rem;
  text-align: center;
}

.btn-primary {
  border-radius: 999px;
  border: none;
  padding: 0.5rem 1.8rem;
  background: #003f88;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: #002b5c;
}
/* === MODAL EDITAR USUARIO (ADMIN) === */
.hidden {
  display: none !important;
}

/* FONDO OSCURO DEL MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

/* TARJETA CENTRAL */
.modal-panel {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
  padding: 24px 28px 20px;
  width: 100%;
  max-width: 420px;
  position: relative;
}

/* TÍTULO */
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #111827;
}

/* BOTÓN CERRAR (X) */
.modal-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 18px;
}

/* GRUPOS DE FORMULARIO */
.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

/* BOTÓN GUARDAR */
.modal-actions {
  margin-top: 1rem;
  text-align: center;
}

.btn-primary {
  border-radius: 999px;
  border: none;
  padding: 0.5rem 1.8rem;
  background: #003f88;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: #002b5c;
}
/* === MODAL EDITAR USUARIO (ADMIN) === */
.hidden {
  display: none !important;
}

/* FONDO OSCURO DEL MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

/* TARJETA CENTRAL */
.modal-panel {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
  padding: 24px 28px 20px;
  width: 100%;
  max-width: 420px;
  position: relative;
}

/* TÍTULO */
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #111827;
}

/* BOTÓN CERRAR (X) */
.modal-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 18px;
}

/* GRUPOS DE FORMULARIO */
.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

/* BOTÓN GUARDAR */
.modal-actions {
  margin-top: 1rem;
  text-align: center;
}

.btn-primary {
  border-radius: 999px;
  border: none;
  padding: 0.5rem 1.8rem;
  background: #003f88;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: #002b5c;
}
/* === MODAL EDITAR USUARIO (ADMIN) === */
.hidden {
  display: none !important;
}

/* FONDO OSCURO DEL MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

/* TARJETA CENTRAL */
.modal-panel {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
  padding: 24px 28px 20px;
  width: 100%;
  max-width: 420px;
  position: relative;
}

/* TÍTULO */
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #111827;
}

/* BOTÓN CERRAR (X) */
.modal-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 18px;
}

/* GRUPOS DE FORMULARIO */
.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

/* BOTÓN GUARDAR */
.modal-actions {
  margin-top: 1rem;
  text-align: center;
}

.btn-primary {
  border-radius: 999px;
  border: none;
  padding: 0.5rem 1.8rem;
  background: #003f88;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: #002b5c;
}
.mov-separator {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1.25rem 0 0.75rem;
}

.mov-list-titulo {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.4rem;
}

.mov-list-contenedor {
  max-height: 180px;
  overflow: auto;
  margin-bottom: 1rem;
}

.mov-table--small {
  font-size: 0.75rem;
}

.mov-table--small th,
.mov-table--small td {
  padding: 0.3rem 0.4rem;
}

.btn-eliminar-mov {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  cursor: pointer;
}

.btn-eliminar-mov:hover {
  background: #fecaca;
}
/* Por defecto, lo que es solo impresión no se ve en pantalla */
.print-only {
  display: none;
}

.estado-print-titulo {
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 1.5cm;
  }

  /* Fondo blanco limpio */
  body {
    background: #ffffff !important;
  }

  /* Ocultar todo lo que no queremos en el PDF */
  .header,
  .footer,
  .mov-modal,
  .mov-modal__overlay,
  #btnVerMovimientos,
  #btnDescargarEstado {
    display: none !important;
  }

  /* Mostrar elementos solo para impresión */
  .print-only {
    display: block !important;
  }

  /* La tarjeta del cliente ocupa el centro y sin tanta sombra */
  .cliente-card {
    box-shadow: none !important;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Quitar margen/padding extra del layout para que quede centrado en la hoja */
  main {
    padding-top: 0 !important;
  }

  /* Si tu tarjeta está dentro de algún contenedor centrado,
     déjalo a ancho automático */
  .cliente-card__wrapper,
  .alguna-clase-del-contenedor {
    max-width: 100% !important;
    margin: 0 !important;
  }
}
.mov-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mov-modal--hidden {
  display: none;
}
.mov-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
}
.mov-modal__panel {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  max-width: 720px;
  width: 95%;
  max-height: 80vh;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mov-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.mov-modal__header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #022b6b;
}
.mov-modal__close {
  border: none;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  color: #6b7280;
}
.mov-modal__body {
  overflow: auto;
}
.mov-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.mov-table thead {
  background: #f3f4f6;
}
.mov-table th,
.mov-table td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.mov-table th {
  font-weight: 600;
  color: #4b5563;
}
.mov-table td {
  color: #111827;
  white-space: nowrap;
}
.mov-table td.mov--cargo {
  color: #b91c1c;
}
.mov-table td.mov--abono {
  color: #047857;
}
.cliente-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 2.75rem;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 35, 95, 0.08);
  background: #ffffff;
}
.cliente-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cliente-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #022b6b, #034f9a);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cliente-card__name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #022b6b;
}
.cliente-card__subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}
.cliente-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}
.badge {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.badge--primary {
  background: rgba(3, 79, 154, 0.08);
  color: #034f9a;
  border-color: rgba(3, 79, 154, 0.25);
}
.badge--success {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
}
.cliente-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem 1.5rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}
@media (min-width: 640px) {
  .cliente-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cliente-card__item .label {
  font-size: 0.8rem;
  color: #9ca3af;
}
.cliente-card__item .value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}
.value--saldo {
  color: #034f9a;
  font-size: 1.05rem;
}
.cliente-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.btn-secondary {
  border-radius: 999px;
  border: 1px solid #022b6b;
  background: #ffffff;
  color: #022b6b;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-secondary:hover {
  background: #022b6b;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 35, 95, 0.18);
}
/*
  SIRAPE - styles.css
  Inspirado en BBVA México, adaptado a marca propia
*/
:root {
  --azul-oscuro: #002e5d;
  --azul-claro: #1976d2;
  --gris-fondo: #f5f6fa;
  --gris-medio: #e5e7eb;
  --gris-oscuro: #6b7280;
  --blanco: #fff;
  --fuente: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--fuente);
  background: var(--gris-fondo);
  color: var(--azul-oscuro);
  min-height: 100vh;
}

.header {
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-medio);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}
.header__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo {
  height: 40px;
  width: 40px;
}
.brand {
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: 1px;
}
.nav {
  display: flex;
  gap: 1.5rem;
}
.nav__link {
  color: var(--azul-oscuro);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__link:hover {
  color: var(--azul-claro);
}
.header__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.menu-text {
  display: none;
  font-size: 1rem;
  color: var(--gris-oscuro);
  margin-left: 1rem;
}
.btn {
  padding: 0.5rem 1.2rem;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  outline: none;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: var(--azul-oscuro);
  color: var(--blanco);
  border: 1.5px solid var(--azul-oscuro);
}
.btn-primary:hover {
  background: var(--azul-claro);
  border-color: var(--azul-claro);
}
.btn-outline {
  background: var(--blanco);
  color: var(--azul-oscuro);
  border: 1.5px solid var(--azul-oscuro);
}
.btn-outline:hover {
  background: var(--gris-medio);
}

/* Hero */
.hero {
  background: var(--blanco);
  padding: 3rem 0 2rem 0;
}
.hero__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero__left {
  flex: 1 1 350px;
  min-width: 300px;
}
.hero__title {
  font-size: 2.5rem;
  color: var(--azul-oscuro);
  margin-bottom: 1rem;
  font-weight: 800;
}
.hero__desc {
  font-size: 1.2rem;
  color: var(--gris-oscuro);
  margin-bottom: 2rem;
}
.hero__btn {
  font-size: 1.1rem;
  padding: 0.7rem 2rem;
}
.hero__right {
  flex: 1 1 350px;
  min-width: 300px;
  display: flex;
  justify-content: center;
}
.hero__image {
  width: 340px;
  max-width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--azul-claro);
  background: var(--gris-medio);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* Noticias */
.noticias {
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  padding: 0 1rem 2rem 1rem;
}
.noticias__title {
  text-align: center;
  font-size: 2rem;
  color: var(--azul-oscuro);
  margin-bottom: 0.2rem;
}
.noticias__subtitle {
  text-align: center;
  color: var(--gris-oscuro);
  margin-bottom: 2rem;
}
.noticias__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.noticia-card {
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.2rem 1rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 320px;
}
.noticia-card__img {
  width: 100%;
  max-width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: var(--gris-medio);
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.noticia-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--azul-oscuro);
}
.noticia-card__desc {
  color: var(--gris-oscuro);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.noticia-card__btn {
  color: var(--azul-claro);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  margin-top: auto;
  transition: color 0.2s;
}
.noticia-card__btn:hover {
  color: var(--azul-oscuro);
}

/* Footer */
.footer {
  background: var(--gris-medio);
  padding: 2rem 0 1rem 0;
  margin-top: 2rem;
}
.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__logo {
  height: 32px;
  width: 32px;
}
.footer__text {
  font-weight: bold;
  font-size: 1.1rem;
}
.footer__links {
  display: flex;
  gap: 2rem;
  margin-bottom: 0.5rem;
}
.footer__links a {
  color: var(--azul-oscuro);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer__links a:hover {
  color: var(--azul-claro);
}
.footer__address {
  color: var(--gris-oscuro);
  font-size: 0.95rem;
  text-align: center;
}

/* Formularios */
.form-container {
  background: var(--blanco);
  max-width: 420px;
  margin: 2.5rem auto;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.form-title {
  text-align: center;
  font-size: 1.6rem;
  color: var(--azul-oscuro);
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--azul-oscuro);
}
.form-group input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--gris-medio);
  font-size: 1rem;
  background: var(--gris-fondo);
  color: var(--azul-oscuro);
  outline: none;
  transition: border 0.2s;
}
.form-group input:focus {
  border-color: var(--azul-claro);
}
.form-actions {
  text-align: center;
  margin-top: 1.5rem;
}
.form-error {
  color: #c62828;
  background: #ffeaea;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1rem;
}
.form-success {
  color: #2e7d32;
  background: #e8f5e9;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1rem;
}

/* Paneles */
.panel-container {
  max-width: 500px;
  margin: 2.5rem auto;
  background: var(--blanco);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
}
.panel-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--azul-oscuro);
  margin-bottom: 1.2rem;
}
.panel-data {
  margin-bottom: 1.2rem;
}
.panel-data label {
  font-weight: 500;
  color: var(--gris-oscuro);
  margin-right: 0.5rem;
}
.panel-data span {
  color: var(--azul-oscuro);
  font-weight: 600;
}
.panel-logout {
  text-align: right;
  margin-bottom: 1rem;
}
.panel-logout .btn {
  font-size: 0.95rem;
  padding: 0.4rem 1.2rem;
}

/* Panel Admin */
.admin-table-container {
  max-width: 1100px;
  margin: 2.5rem auto;
  background: var(--blanco);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
}
.admin-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--azul-oscuro);
  margin-bottom: 1.2rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.admin-table th, .admin-table td {
  border: 1px solid var(--gris-medio);
  padding: 0.7rem 0.5rem;
  text-align: left;
  font-size: 1rem;
}
.admin-table th {
  background: var(--gris-fondo);
  color: var(--azul-oscuro);
  font-weight: 700;
}
.admin-table td {
  color: var(--azul-oscuro);
}

/* Acciones admin: botones verticales, sin borde, fondo blanco, texto negro, tamaño pequeño */
.admin-table .acciones-admin {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-table .acciones-admin button {
  background: #fff;
  color: #222;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-size: 0.95rem;
  padding: 2px 6px;
  margin: 0;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.admin-table .acciones-admin button:hover {
  background: #f3f4f6;
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-content {
  background: var(--blanco);
  border-radius: 12px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}
.modal-close {
  float: right;
  font-size: 1.3rem;
  color: var(--gris-oscuro);
  cursor: pointer;
  margin-top: -1rem;
  margin-right: -1rem;
}

/* Avisos */
.aviso-container {
  max-width: 700px;
  margin: 2.5rem auto;
  background: var(--blanco);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
}
.aviso-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--azul-oscuro);
  margin-bottom: 1.2rem;
}
.aviso-text {
  color: var(--gris-oscuro);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}

/* Responsive */
@media (max-width: 1024px) {
  .header__container, .noticias, .footer__container, .hero__content, .admin-table-container {
    max-width: 98vw;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .noticias__grid {
    gap: 1.2rem;
  }
}
@media (max-width: 900px) {
  .noticias__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .header__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .nav {
    gap: 1rem;
    margin-bottom: 0.5rem;
  }
  .header__right {
    gap: 0.3rem;
  }
  .hero__content {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }
  .noticias__grid {
    grid-template-columns: 1fr;
  }
  .footer__container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .footer__links {
    gap: 1rem;
  }
}
@media (max-width: 500px) {
  .form-container, .panel-container, .aviso-container {
    padding: 1rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
  }
  .hero__image {
    width: 98vw;
    min-width: 180px;
    height: 120px;
    border-radius: 10px;
  }
  .noticia-card__img {
    height: 80px;
    border-radius: 7px;
  }
  .footer__logo {
    height: 24px;
    width: 24px;
  }
  .logo {
    height: 28px;
    width: 28px;
  }
  .brand {
    font-size: 1rem;
  }
  .footer__text {
    font-size: 0.95rem;
  }
  .footer__address {
    font-size: 0.85rem;
  }
  .menu-text {
    display: inline;
    margin-left: 0.5rem;
  }
}
