
/* === Fuentes === */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&family=Raleway:wght@700&display=swap');

/* === Ajustes globales === */
body {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.25em;
  margin: 0;
  padding: 20px;
  background-color: #121212;
  color: #fff;
  overflow-x: hidden;
}
body.light-mode {
  background-color: #ffffff;
  color: #000000;
}

/* Contenedor */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
h1 { font-size: 2.5rem; margin-top: 0.5em; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 2rem; margin-top: 1.5em; }

p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #d3d3d3;
}
body.light-mode p {
  color: #222;
}

/* Enlaces */
a {
  color: #ff4444;
  text-decoration: none;
}
a:hover {
  color: #ff7777;
  text-decoration: underline;
}
body.light-mode a {
  color: #cc0000;
}
body.light-mode a:hover {
  color: #990000;
}

/* Header */
header {
  background: url('/images/cabecera.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.logo {
  height: 100px;
  margin-bottom: 20px;
}

/* Secciones */
.main-section, .cuadernos-section, .latest-publications {
  padding: 70px 0;
}
.service-block {
  text-align: center;
  margin-bottom: 45px;
}
.service-block img {
  object-fit: cover;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-bottom: 25px;
}
.service-block h3 {
  color: #ff9f43;
  margin-bottom: 18px;
}
body.light-mode .service-block h3 {
  color: #e36d00;
}
.service-block p {
  font-size: 1rem;
}

.principles-section h2 {
  color: #17a2b8;
}
body.light-mode .principles-section h2 {
  color: #105b70;
}

/* Imagen centrada y escalable */
.thumbnail-container {
  text-align: center;
}
.thumbnail-container img,
.cuadernos-section .thumbnail {
  max-width: 100%;
  height: auto;
  display: inline-block;
  margin: 0 auto;
}

/* Citas */
.masonry {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.quote {
  flex: 1 1 calc(50% - 1.5rem);
  background-color: #2b2b2b;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
}
body.light-mode .quote {
  background-color: #f2f2f2;
}
.quote img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin-right: 15px;
}
.quote p {
  margin-bottom: 0;
}
.quote span {
  float: right;
  font-weight: 800;
}
@media (max-width: 768px) {
  .quote {
    flex: 1 1 100%;
  }
}
@media (max-width: 576px) {
  .quote img {
    width: 80px;
    height: 80px;
    margin-right: 10px;
  }
  .quote p {
    font-size: 0.9rem;
  }
}

/* Tarjetas */
.card {
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 16px;
  color: #fff;
}
body.light-mode .card {
  background-color: #ffffff;
  border: 1px solid #ccc;
  color: #000;
}
.card-header {
  background-color: #17a2b8;
  color: #fff;
  font-size: 1.5rem;
}
body.light-mode .card-header {
  background-color: #105b70;
  color: #fff;
}
.card-header a {
  color: #fff;
}
body.light-mode .card-header a {
  color: #fff;
  text-decoration: underline;
}
.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.card li {
  font-size: 1rem;
  color: #d3d3d3;
  padding: 16px;
  background-color: #1e1e1e;
}
body.light-mode .card li {
  color: #222;
  background-color: #ffffff;
}

/* Footer */
.footer {
  background-color: #121212;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}
.footer a {
  color: #ffc107;
}
.footer a:hover {
  text-decoration: underline;
}
body.light-mode .footer {
  background-color: #f0f0f0;
  color: #000;
}
body.light-mode .footer a {
  color: #aa0000;
}

/* Botón cambio de tema */
#toggle-theme {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  padding: 8px 12px;
  border: 2px solid #ff4444;
  background-color: rgba(0, 0, 0, 0.85);
  color: #ff4444;
  font: 1em Arial, sans-serif;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}
#toggle-theme:hover {
  background-color: #ff4444;
  color: #ffffff;
}
body.light-mode #toggle-theme {
  border-color: #cc0000;
  background-color: rgba(255, 255, 255, 0.85);
  color: #cc0000;
}
body.light-mode #toggle-theme:hover {
  background-color: #cc0000;
  color: #ffffff;
}

/* Citas rotativas */
.grupo-cita { display: none; }
.grupo-cita.activa { display: block; }


/* Botones personalizados */
.btn-outline-light {
  border: 2px solid #ffffff;
  color: #ffffff;
}
.btn-outline-light:hover {
  background-color: #ffffff;
  color: #000000;
}
body.light-mode .btn-outline-light {
  border-color: #555555;
  color: #333333;
}
body.light-mode .btn-outline-light:hover {
  background-color: #555555;
  color: #ffffff;
}


header h2 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  margin-top: 0.5rem;
  color: #dddddd;
}
body.light-mode header h2 {
  color: #666666;
}

.telegram-post {
  padding: 16px;
  padding-bottom:0px;
  overflow: hidden;
}

.telegram-content h3 {
  font-size: 1.5rem;
  margin-top: 8px;
  margin-bottom:2px;
}

.telegram-content h3 a {
  color: #1b8eed;
  text-decoration: none;
  text-transform: none;
}

.telegram-content h3 a:hover {
  text-decoration: underline;
}

.telegram-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 12px;
  display: block;
}

.telegram-text {
  font-size:1rem;
}

.telegram-text p {
  font-size:1rem;
  margin-bottom: 0.5rem;
}

.list-group-item {border:none!important;}
