/* ===== Global ===== */
:root {
  --nav: #002855;
  --accent: #0a6bd6;
  --muted: #6b6b6b;
  --bg: #f4f7fa;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: #111;
  line-height: 1.7;
}

/* ===== Header ===== */
.site-header {
  background: var(--nav);
  color: white;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
}

.brand__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.brand__title {
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.brand__subtitle {
  font-size: 0.85rem;
  color: #b8d6ff;
  margin-top: 4px;
}

/* ===== Nav ===== */
.main-nav {
  display: flex;
  gap: 1.4rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--accent);
}
.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===== Banner ===== */
.banner {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.banner ins {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* ===== Intro ===== */
.intro {
  max-width: 900px;
  margin: 2.5rem auto;
  text-align: center;
  padding: 0 1rem;
}

.intro h2 {
  color: var(--nav);
  margin-bottom: 0.6rem;
  font-size: 1.9rem;
  font-weight: 700;
}

.intro .muted {
  color: var(--muted);
  font-size: 1rem;
}

/* ===== Gallery (index) ===== */
.gallery {
  max-width: 1100px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  padding: 0 1rem;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 20, 60, 0.06);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 20, 60, 0.1);
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
}

.card__title {
  margin-top: 0.9rem;
  text-align: center;
  color: var(--nav);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0 0.6rem;
}

/* One-column variants for small screens */
@media(max-width:900px){
  .gallery{grid-template-columns:repeat(1,1fr)}
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
  max-width: 1000px;
  margin: auto;
}
.post-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.post-card:hover {
  transform: translateY(-4px);
}
.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.post-card h2 {
  font-size: 1.1rem;
  padding: 10px;
  color: #001f3f;
}


/* Article / post view */
/* 🎯 ====== Contenedor general del artículo ====== */
.article {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px;
  font-family: "Inter", sans-serif;
  color: #1a1a1a;
  line-height: 1.8;
  background-color: #fff;
}

/* 🖼️ ====== Imagen principal ====== */
.article__figure {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.article__figure img {
  width: 85%;
  max-width: 800px;
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.article__figure img:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

/* 📰 ====== Encabezado del artículo ====== */
.article__header {
  text-align: center;
  margin-bottom: 40px;
}

#article-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #111;
  margin: 12px 0;
  line-height: 1.3;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

#article-title::after {
  content: "";
  display: block;
  width: 70%;
  height: 3px;
  background: linear-gradient(90deg, #000, #666);
  margin: 12px auto 0;
  border-radius: 3px;
}

#article-sub {
  font-size: 1.05rem;
  color: #555;
  margin-top: 8px;
  font-style: italic;
}

/* 📄 ====== Contenido ====== */
.article__content {
  text-align: left;
  font-size: 18px;
  color: #2a2a2a;
  margin-top: 10px;
}

/* 📌 Títulos internos */
.article__content h2,
.article__content h3 {
  color: #111;
  margin-top: 45px;
  margin-bottom: 18px;
  font-weight: 700;
}

.article__content h2 {
  font-size: 1.7rem;
  border-left: 5px solid #000;
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(0,0,0,0.03), transparent);
  border-radius: 4px;
}

.article__content h3 {
  font-size: 1.3rem;
  color: #333;
}

/* 🖼️ ====== Imágenes dentro del contenido ====== */
.article__content img {
  width: 85%;
  max-width: 780px;
  border-radius: 18px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.article__content img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* 💬 ====== Citas ====== */
.article__content blockquote {
  background: #f7f7f7;
  border-left: 5px solid #000;
  margin: 35px 0;
  padding: 24px;
  font-style: italic;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  color: #333;
  position: relative;
}

.article__content blockquote::before {
  content: "“";
  font-size: 3rem;
  color: #000;
  position: absolute;
  left: 15px;
  top: 5px;
  opacity: 0.2;
}

/* 🗂️ ====== Listas ====== */
.article__content ul, 
.article__content ol {
  margin: 25px 0;
  padding-left: 28px;
}

.article__content li {
  margin-bottom: 10px;
  position: relative;
}

.article__content ul li::before {
  content: "▹";
  color: #000;
  position: absolute;
  left: -18px;
  font-size: 1.1rem;
  line-height: 1;
}

/* 📱 ====== Responsivo ====== */
@media (max-width: 768px) {
  #article-title {
    font-size: 2rem;
  }

  .article {
    padding: 16px;
  }

  .article__figure img,
  .article__content img {
    width: 95%;
    border-radius: 16px;
  }

  .article__content {
    font-size: 16.5px;
  }
}

/* ===== Educación / Cards ===== */
.educacion {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.card--text {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 20, 60, 0.06);
  margin-bottom: 1.4rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card--text:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 20, 60, 0.1);
}

.card--text h3 {
  margin: 0 0 0.8rem 0;
  color: var(--nav);
  font-size: 1.2rem;
}

/* ===== Related list ===== */
.related__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.related__list .card {
  height: 100%;
}

/* ==== Tarjeta de presentacion Santiago ==== */

.tarjeta-santiago {
  max-width: 900px;
  margin: 50px auto;
  display: flex;
  flex-wrap: wrap;
  background-color: #001f3f;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  overflow: hidden;
  color: #fff;
  font-family: 'Inter', sans-serif;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-in-out;
}

.tarjeta-santiago:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.tarjeta-foto {
  flex: 1 1 220px;
  text-align: center;
  padding: 25px;
  background: linear-gradient(135deg, #003366, #001f3f);
}

.tarjeta-foto img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f0a500;
  transition: transform 0.3s ease;
}

.tarjeta-foto img:hover {
  transform: scale(1.05);
}

.tarjeta-contenido {
  flex: 2 1 400px;
  padding: 30px;
}

.tarjeta-contenido h2 {
  margin-bottom: 15px;
  color: #f0a500;
  font-size: 1.8rem;
}

.tarjeta-contenido p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.tarjeta-contenido ul {
  margin: 15px 0;
  padding-left: 20px;
  line-height: 1.6;
}

.tarjeta-contenido ul li {
  margin-bottom: 8px;
}

.tarjeta-redes {
  margin: 20px 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.tarjeta-redes a {
  color: #f0a500;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.tarjeta-redes a:hover {
  color: #ffd700;
}

.btn-contacto {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 24px;
  background-color: #f0a500;
  color: #001f3f;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.btn-contacto:hover {
  background-color: #ffd700;
  transform: translateY(-2px);
}

/* Responsive */
@media(max-width:768px){
  .tarjeta-santiago {
    flex-direction: column;
    text-align: center;
  }
  .tarjeta-foto, .tarjeta-contenido {
    padding: 20px;
  }
}


/* ==== COMENTARIOS DE POST ==== */
.comentarios {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  background-color: #fdfdfd;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  font-family: "Inter", sans-serif;
}

.comentarios h2 {
  color: #001f3f;
  margin-bottom: 25px;
  font-size: 1.8rem;
  text-align: center;
}

.comentario-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comentario-form input,
.comentario-form textarea {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
  font-size: 1rem;
  transition: border 0.3s, box-shadow 0.3s;
}

.comentario-form input:focus,
.comentario-form textarea:focus {
  outline: none;
  border-color: #001f3f;
  box-shadow: 0 0 8px rgba(0,31,63,0.2);
}

.comentario-form textarea {
  resize: vertical;
  min-height: 100px;
}

.comentario-form button {
  padding: 12px;
  background-color: #001f3f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.comentario-form button:hover {
  background-color: #0a6bd6;
  transform: translateY(-2px);
}

.comentario-lista {
  margin-top: 35px;
}

.comentario-lista h3 {
  color: #001f3f;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* Comentarios individuales */
.comentario-item {
  background: #f5f5f5;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.comentario-item .nombre {
  font-weight: 600;
  color: #001f3f;
  margin-bottom: 5px;
}

.comentario-item .mensaje {
  color: #333;
  font-size: 0.95rem;
}

/* Responsivo */
@media(max-width:768px){
  .comentarios {
    padding: 20px;
    margin: 30px 10px;
  }
}



/* ===== Footer ===== */
/* ===== Footer Pro ===== */
.site-footer {
  background: linear-gradient(180deg, var(--nav) 0%, #001b3d 100%);
  color: #fff;
  padding: 2.5rem 0;
  margin-top: 4rem;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.site-footer__inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  padding: 0 1.5rem;
}

/* === Secciones === */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__brand h2 {
  font-size: 1.4rem;
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.footer__brand p {
  font-size: 0.9rem;
  color: #cfe7ff;
  line-height: 1.5;
  margin: 0;
}

/* === Navegación === */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav a {
  color: #cfe7ff;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.2s ease;
}

.footer-nav a::before {
  content: "›";
  margin-right: 6px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-nav a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-nav a:hover::before {
  opacity: 1;
  transform: translateX(2px);
}

/* === Redes Sociales === */
.footer__social {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer__social a {
  color: white;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.25s ease;
}

.footer__social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(10,107,214,0.3);
}

/* === Línea final === */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #cfe7ff;
  padding-top: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__social {
    justify-content: center;
  }
}


/* ===== Small screens: nav toggle ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    background: var(--nav);
    position: absolute;
    top: 58px;
    left: 0;
    width: 100%;
    padding: 0.8rem 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.show {
    display: flex;
  }
}