/* ============================================================
   articulo.css – Plantilla de Artículos del Blog | aidalorena.com
   ============================================================ */

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #000;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: #0c71c3; text-decoration: none; }
a:hover { opacity: 0.8; }

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

strong { font-weight: 700; }
em, i { font-style: italic; }

/* ===========================
   HEADER
=========================== */
#main-header {
  background-color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.1);
  position: relative;
  z-index: 99999;
  font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
  font-weight: 600;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 98px;
  padding: 10px 0;
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
}

#logo {
  max-height: 84px;
  width: auto;
}

#top-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  list-style: none;
}

#top-menu li { display: inline-block; padding-right: 22px; }
#top-menu li:last-child { padding-right: 0; }

#top-menu a {
  color: rgba(0,0,0,0.6);
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  display: block;
  transition: opacity .3s ease;
}
#top-menu a:hover,
#top-menu li.active a { color: #0c71c3; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 32px;
  color: #0c71c3;
  line-height: 1;
}

/* ===========================
   TÍTULO DEL SITIO (banner)
=========================== */
.article-site-title {
  padding: 26px 0 0;
  text-align: center;
}

.article-site-title p {
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-variant: small-caps;
  font-size: 37px;
  text-align: center;
  color: #000;
}

/* ===========================
   BREADCRUMB DE CATEGORÍA
=========================== */
.article-breadcrumb {
  padding: 10px 0 0;
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
}

.article-breadcrumb p {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 1.5em;
  padding-bottom: 0;
}

.article-breadcrumb a { color: #000; }
.article-breadcrumb a:hover { color: #0c71c3; opacity: 1; }

/* ===========================
   META BAR: autor + fecha + redes
=========================== */
.article-meta-bar {
  width: 80%;
  max-width: 1080px;
  margin: 5px auto;
  border-top: 1px solid #E09900;
  border-bottom: 1px solid #E09900;
  padding: 5px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.article-meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Abel', Helvetica, Arial, sans-serif;
  font-size: 17px;
  color: #000;
}

.article-meta-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.article-meta-date {
  font-family: 'Abel', Helvetica, Arial, sans-serif;
  font-size: 17px;
  color: #000;
  line-height: 1.8em;
}

.article-meta-social {
  display: flex;
  gap: 8px;
  align-items: center;
}

.meta-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  transition: opacity .3s ease;
  box-shadow: 0 2px 18px rgba(0,0,0,0.3);
}
.meta-social-icon:hover { opacity: 0.8; }
.meta-social-icon svg { width: 16px; height: 16px; fill: #fff; }

.si-whatsapp  { background-color: #25D366; }
.si-instagram { background-color: #ea2c59; }
.si-facebook  { background-color: #3b5998; }
.si-linkedin  { background-color: #007bb6; }
.si-youtube   { background-color: #E02B20; }

/* ===========================
   CUERPO DEL ARTÍCULO (H1 + intro)
=========================== */
.article-body {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 0 20px;
}

/* H1 del artículo */
.article-body h1 {
  font-family: 'Abel', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 65px;
  line-height: 1.2em;
  text-align: left;
  color: #000;
  margin-bottom: 24px;
}

/* Párrafos de introducción (antes de la imagen destacada) */
.article-intro-text p {
  font-family: 'Abel', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.5em;
  text-align: left;
  color: #000;
  margin-bottom: 16px;
}

/* ===========================
   IMAGEN DESTACADA
=========================== */
.article-featured-image {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto 30px;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   TABLA DE CONTENIDOS (TOC)
=========================== */
.article-toc {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto 30px;
  background-color: #f9efd9;
  border-left: 3px solid #E09900;
  padding: 20px 24px;
}

.article-toc p.toc-title {
  font-family: 'Abel', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #000;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-toc ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0;
}

.article-toc ul li {
  margin-bottom: 8px;
  line-height: 1.3em;
}

.article-toc ul li a {
  font-family: 'Abel', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #000;
  line-height: 1.3em;
}
.article-toc ul li a:hover { color: #0c71c3; opacity: 1; }

/* ===========================
   CONTENIDO PRINCIPAL
=========================== */
.article-content {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
}

/* H2 de sección */
.article-content h2 {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 35px;
  letter-spacing: 2px;
  line-height: 1.3em;
  text-align: left;
  color: #000;
  margin-top: 40px;
  margin-bottom: 16px;
}

/* Párrafos del contenido */
.article-content p {
  font-family: 'Abel', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5em;
  text-align: left;
  color: #000;
  margin-bottom: 12px;
}

/* Listas dentro del contenido */
.article-content ul,
.article-content ol {
  font-family: 'Abel', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2em;
  text-align: left;
  color: #000;
  padding-left: 1.6em;
  margin-bottom: 16px;
}

.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }
.article-content li { margin-bottom: 4px; }

/* Nota al pie dentro del contenido (texto con asterisco) */
.article-content p.nota {
  font-size: 18px;
  line-height: 1.6em;
  color: #555;
  font-style: italic;
  margin-top: -8px;
}

/* ===========================
   FUENTES / BIBLIOGRAFÍA
=========================== */
.article-sources {
  width: 80%;
  max-width: 1080px;
  margin: 36px auto 10px;
  border-top: 2px solid #0055e8;
  border-bottom: 2px solid #0055e8;
  padding-top: 20px;
  padding-bottom: 20px;
}

.article-sources p {
  font-family: 'Abel', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2em;
  text-align: left;
  color: #444;
  margin-bottom: 10px;
}

.article-sources p.sources-title {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 14px;
  color: #000;
}

.article-sources a { color: #0c71c3; }

/* ===========================
   TAMBIÉN TE PUEDE INTERESAR
=========================== */
.article-related {
  width: 80%;
  max-width: 1080px;
  margin: 36px auto 10px;
  border-top: 1px solid #E09900;
  border-bottom: 1px solid #E09900;
  padding: 24px 0;
}

.article-related h4.related-title {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #000;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.related-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 12px;
}

.related-card:hover img { opacity: 0.85; }

.related-card h3 {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 23px;
  line-height: 1.2em;
  text-align: left;
  color: #e09900;
  margin: 0;
}

/* ===========================
   AVISO / DISCLAIMER
=========================== */
.article-disclaimer {
  width: 80%;
  max-width: 1080px;
  margin: 24px auto 40px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 16px 24px;
  background-color: #fafafa;
}

.article-disclaimer p {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7em;
  text-align: center;
  color: #555;
}

/* ===========================
   FOOTER
=========================== */
#main-footer {
  background-color: #0333a1;
  padding: 40px 0 0;
}

.footer-grid {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-col { flex: 1; min-width: 180px; }

.footer-logo { max-width: 160px; margin: 0 auto 10px; }

.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}
.footer-col a:hover { color: #fdca4a; opacity: 1; }

.footer-heading {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
  display: block;
}

.footer-email { text-align: center; margin-bottom: 14px; }
.footer-email a { color: rgba(255,255,255,0.8); font-size: 14px; }

.footer-social {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: opacity .3s;
}
.footer-social a:hover { opacity: 0.75; }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links li::before { content: '* '; color: #fff; }
.footer-links a { color: rgba(255,255,255,0.8); font-size: 14px; }
.footer-links a:hover { color: #fdca4a; opacity: 1; }


/* ===========================
   COOKIE BANNER
=========================== */
#cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: #212b46;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 99999;
  font-size: 14px;
}
#cookie-bar a { color: #fdca4a; }

.cookie-btn {
  padding: 7px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.cookie-btn-accept { background-color: #4b8ee6; color: #fff; }
.cookie-btn-reject { background-color: transparent; color: #fff; border: 1px solid #fff; }
.cookie-btn:hover { opacity: 0.85; }

/* ===========================
   WHATSAPP FLOTANTE
=========================== */
#whatsapp-float {
  position: fixed;
  bottom: 15px; right: 15px;
  z-index: 99999;
  display: none;
}
#whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
}
#whatsapp-float svg { width: 50px; height: 50px; }

/* ===========================
   SCROLL TO TOP
=========================== */
#scroll-top {
  position: fixed;
  bottom: 80px; right: 0;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  width: 36px; height: 40px;
  font-size: 22px;
  cursor: pointer;
  display: none;
  z-index: 99999;
}
#scroll-top:hover { background: rgba(0,0,0,0.7); }


/* ===========================
   ZONA DE CONTACTO BLOG
=========================== */
/* Overrides .article-content p { text-align: left } (specificity 0,1,1)
   with higher specificity (0,2,1) so country list stays centered */
.article-content .blog-contacto p {
  text-align: center;
}

/* ===========================
   RESPONSIVE – TABLET (≤980px)
=========================== */
@media (max-width: 980px) {
  #top-menu { display: none; flex-direction: column; width: 100%; background: #fff; padding: 10px 0; }
  #top-menu.open { display: flex; }
  #top-menu li { padding: 8px 20px; }
  .mobile-menu-btn { display: block; }
  .header-inner { flex-wrap: wrap; }

  .article-breadcrumb,
  .article-meta-bar,
  .article-body,
  .article-featured-image,
  .article-toc,
  .article-content,
  .article-sources,
  .article-related,
  .article-disclaimer { width: 95%; }

  .article-body h1 { font-size: 46px; }
  .article-content h2 { font-size: 28px; }
  .article-content p,
  .article-content ul,
  .article-content ol { font-size: 20px; }
  .article-intro-text p { font-size: 21px; }

  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { flex-direction: column; }
}

/* ===========================
   RESPONSIVE – MOBILE (≤767px)
=========================== */
@media (max-width: 767px) {
  .article-breadcrumb,
  .article-meta-bar,
  .article-body,
  .article-featured-image,
  .article-toc,
  .article-content,
  .article-sources,
  .article-related,
  .article-disclaimer { width: 95%; }

  .article-body h1 { font-size: 34px; }
  .article-content h2 { font-size: 24px; letter-spacing: 1px; }
  .article-content p,
  .article-content ul,
  .article-content ol { font-size: 18px; line-height: 1.2em; }
  .article-intro-text p { font-size: 19px; }
  .article-toc ul li a { font-size: 16px; }
  .article-meta-bar { flex-direction: column; align-items: flex-start; }
  .related-grid { grid-template-columns: 1fr; }
  .article-site-title p { font-size: 28px; }
  .related-card h3 { font-size: 20px; }
}

/* ===========================
   RESPONSIVE – SMALL (≤479px)
=========================== */
@media (max-width: 479px) {
  .article-body h1 { font-size: 28px; }
  .article-content h2 { font-size: 21px; }
  .article-site-title p { font-size: 22px; }
}
