/*
Theme Name:  Sin Tapujos Col
Theme URI:   https://sintapujoscol.com
Description: Tema personalizado para Sin Tapujos Col — Hechos, no cuentos.
Author:      Sin Tapujos Col
Version:     1.0
Template:    twentytwentyone
Text Domain: sin-tapujos-col
*/

/* ================================================
   FUENTES
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@400;500&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  color: #111;
  font-size: 16px;
  line-height: 1.6;
}

a { color: #111; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ================================================
   BARRA DE FECHA (encima del header)
   ================================================ */
.stc-date-strip {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #888;
  background: #f7f7f7;
  border-bottom: 0.5px solid #ddd;
  padding: 4px 24px;
  letter-spacing: 0.3px;
}

/* ================================================
   HEADER — STICKY
   ================================================ */
.stc-header {
  background: #fff;
  border-bottom: 2px solid #111;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.stc-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 0.5px solid #ddd;
}

/* Nombre y eslogan */
.stc-brand a {
  text-decoration: none;
}
.stc-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #111;
  line-height: 1.1;
}
.stc-brand-tagline {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 12px;
  color: #555;
  margin-top: 2px;
}

/* Búsqueda simple */
.stc-header-search input {
  border: 0.5px solid #ddd;
  padding: 6px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #111;
  background: #f9f9f9;
  border-radius: 3px;
  width: 180px;
  outline: none;
}
.stc-header-search input:focus {
  border-color: #111;
  background: #fff;
}

/* ================================================
   NAVEGACIÓN DESKTOP
   ================================================ */
.stc-nav-desktop {
  display: flex;
  padding: 0 24px;
  border-bottom: none;
}
.stc-nav-desktop ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.stc-nav-desktop ul li a {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  padding: 10px 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-right: 0.5px solid #ddd;
  transition: background 0.15s, color 0.15s;
}
.stc-nav-desktop ul li:first-child a {
  border-left: 0.5px solid #ddd;
}
.stc-nav-desktop ul li a:hover,
.stc-nav-desktop ul li.current-menu-item a {
  background: #111;
  color: #fff;
}

/* ================================================
   MENÚ HAMBURGUESA (MÓVIL)
   ================================================ */
.stc-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.stc-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
  transition: all 0.2s;
}

/* Menú móvil desplegable */
.stc-nav-mobile {
  display: none;
  background: #fff;
  border-top: 1px solid #111;
}
.stc-nav-mobile.is-open {
  display: block;
}
.stc-nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stc-nav-mobile ul li a {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #111;
  padding: 14px 20px;
  border-bottom: 0.5px solid #ddd;
  transition: background 0.15s;
}
.stc-nav-mobile ul li a:hover {
  background: #111;
  color: #fff;
}

/* ================================================
   CONTENEDOR PRINCIPAL
   ================================================ */
.stc-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================
   BANNERS DE PUBLICIDAD
   ================================================ */
.stc-ad {
  border: 0.5px dashed #ccc;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #bbb;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.5;
}
.stc-ad-banner-top    { height: 90px;  margin: 20px 0; }
.stc-ad-banner-bottom { height: 90px;  margin: 20px 0; }
.stc-ad-sidebar       { height: 250px; margin-bottom: 20px; }
.stc-ad-mid-article   { height: 60px;  margin: 24px 0; }

/* ================================================
   PÁGINA DE INICIO — NOTICIA DESTACADA
   ================================================ */
.stc-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 0.5px solid #ddd;
  margin-bottom: 28px;
}
.stc-featured-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.stc-featured-label {
  display: inline-block;
  background: #111;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  margin-bottom: 10px;
}

/* ================================================
   ETIQUETA DE CATEGORÍA
   ================================================ */
.stc-cat-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111;
  border-bottom: 2px solid #111;
  padding-bottom: 2px;
  margin-bottom: 10px;
}

/* ================================================
   TÍTULOS DE ARTÍCULOS
   ================================================ */
.stc-title-xl {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  color: #111;
  margin-bottom: 10px;
}
.stc-title-lg {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
  margin-bottom: 8px;
}
.stc-title-md {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  margin-bottom: 6px;
}
.stc-title-xl a,
.stc-title-lg a,
.stc-title-md a {
  color: #111;
  text-decoration: none;
}
.stc-title-xl a:hover,
.stc-title-lg a:hover,
.stc-title-md a:hover {
  text-decoration: underline;
}

/* Extracto */
.stc-excerpt {
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  color: #444;
  line-height: 1.65;
  margin-bottom: 10px;
}

/* Meta (autor, fecha) */
.stc-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #888;
}

/* ================================================
   GRILLA DE NOTICIAS (3 columnas)
   ================================================ */
.stc-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 0.5px solid #ddd;
}
.stc-news-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  margin-bottom: 10px;
}

/* ================================================
   LAYOUT DOS COLUMNAS (contenido + sidebar)
   ================================================ */
.stc-two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  margin-bottom: 28px;
}

/* ================================================
   SIDEBAR
   ================================================ */
.stc-sidebar-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #111;
  border-top: 2px solid #111;
  padding-top: 12px;
  margin-bottom: 14px;
}
.stc-sidebar-post {
  border-bottom: 0.5px solid #ddd;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

/* ================================================
   PLANTILLA DE NOTICIA INDIVIDUAL
   ================================================ */
.stc-article-header {
  border-bottom: 2px solid #111;
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.stc-article-body {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  color: #222;
  line-height: 1.8;
  margin-bottom: 18px;
}
.stc-article-body p { margin-bottom: 1.2em; }
.stc-article-body h2 { font-family: 'Playfair Display', serif; font-size: 22px; margin: 1.5em 0 0.5em; }
.stc-article-body h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin: 1.2em 0 0.4em; }
.stc-article-body blockquote {
  border-left: 3px solid #111;
  padding-left: 16px;
  margin: 1.5em 0;
  font-style: italic;
  color: #444;
}

/* ================================================
   BARRA DE COMPARTIR (solo en noticias)
   ================================================ */
.stc-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 0.5px solid #ddd;
  border-bottom: 0.5px solid #ddd;
  margin: 18px 0;
  flex-wrap: wrap;
}
.stc-share-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #888;
  margin-right: 4px;
}
.stc-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid #ddd;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.stc-share-btn:hover {
  background: #111;
  border-color: #111;
}
.stc-share-btn:hover svg path,
.stc-share-btn:hover svg rect {
  fill: #fff !important;
}
.stc-share-btn svg {
  width: 16px;
  height: 16px;
}

/* ================================================
   EMBEDS SOCIALES (oEmbed nativo de WordPress)
   Se aplican automáticamente a .wp-block-embed
   ================================================ */
.wp-block-embed,
.wp-embedded-content {
  max-width: 550px;
  margin: 24px 0;
}

/* ================================================
   FOOTER
   ================================================ */
.stc-footer {
  background: #111;
  color: #fff;
  padding: 32px 24px 20px;
  margin-top: 40px;
}
.stc-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.stc-footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid #333;
  margin-bottom: 18px;
}
.stc-footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}
.stc-footer-tagline {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 13px;
  color: #888;
  margin-bottom: 18px;
}
.stc-footer-social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stc-footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0.5px solid #444;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.stc-footer-social-btn:hover {
  background: #fff;
  border-color: #fff;
}
.stc-footer-social-btn:hover svg path { fill: #111 !important; }
.stc-footer-social-btn svg { width: 16px; height: 16px; }

.stc-footer-col-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #888;
  margin-bottom: 12px;
}
.stc-footer-link {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.stc-footer-link:hover { color: #fff; }

.stc-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.stc-footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #666;
}

/* ================================================
   RESPONSIVE — TABLET (max 900px)
   ================================================ */
@media (max-width: 900px) {
  .stc-featured { grid-template-columns: 1fr; }
  .stc-news-grid { grid-template-columns: repeat(2, 1fr); }
  .stc-two-col { grid-template-columns: 1fr; }
  .stc-footer-top { grid-template-columns: 1fr 1fr; }
}

/* ================================================
   RESPONSIVE — MÓVIL (max 640px)
   ================================================ */
@media (max-width: 640px) {
  /* Header */
  .stc-brand-name { font-size: 20px; }
  .stc-header-top { padding: 10px 16px; }
  .stc-header-search { display: none; }

  /* Menú */
  .stc-nav-desktop { display: none; }
  .stc-hamburger { display: flex; }

  /* Wrapper */
  .stc-wrapper { padding: 0 16px; }

  /* Grillas */
  .stc-news-grid { grid-template-columns: 1fr; }
  .stc-featured { grid-template-columns: 1fr; }
  .stc-two-col { grid-template-columns: 1fr; }

  /* Títulos */
  .stc-title-xl { font-size: 22px; }
  .stc-title-lg { font-size: 18px; }
  .stc-article-body { font-size: 15px; }

  /* Footer */
  .stc-footer-top { grid-template-columns: 1fr; gap: 20px; }
  .stc-footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Ads */
  .stc-ad-banner-top,
  .stc-ad-banner-bottom { height: 60px; }
  .stc-ad-sidebar { height: 120px; }
}
