/*
Theme Name: CREO Reynosa Social OG Child
Theme URI: https://creoreynosa.org/
Description: Tema hijo oscuro y LGBT+ de Kadence para CREO Reynosa. Revista web comunitaria con diseño editorial, moderno y visualmente fuerte.
Author: CREO Reynosa
Template: kadence
Version: 1.0.5
Text Domain: creo-reynosa-social-og-child
*/

:root {
  --creo-red: #d71920;
  --creo-red-dark: #ff3b42;
  --creo-black: #111111;
  --creo-text: #f4f1ed;
  --creo-muted: #b8b2ad;
  --creo-white: #ffffff;
  --creo-soft: #151515;
  --creo-surface: #0d0d0f;
  --creo-surface-2: #171719;
  --creo-border: rgba(255, 255, 255, 0.14);
  --creo-radius: 22px;
  --creo-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
  --creo-rainbow: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(215, 25, 32, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(117, 7, 135, 0.18), transparent 32rem),
    #050505;
  color: var(--creo-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

html,
body,
#page,
.site,
.site-main,
.content-area,
.content-bg,
.entry-content-wrap,
.site-container,
.content-container,
.wp-site-blocks,
main,
#primary {
  background:
    radial-gradient(circle at top left, rgba(215, 25, 32, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(117, 7, 135, 0.18), transparent 32rem),
    #050505 !important;
  color: var(--creo-text) !important;
}

.site .content-bg,
.site .entry-content-wrap,
.site .content-container,
.site-main .content-container {
  box-shadow: none !important;
}

body::before {
  content: "";
  display: block;
  height: 5px;
  background: var(--creo-rainbow);
}

a {
  color: var(--creo-red);
  text-underline-offset: 4px;
}

a:hover {
  color: #ff7479;
}

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

.creo-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.creo-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid var(--creo-border);
  backdrop-filter: blur(14px);
}

.creo-header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.creo-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--creo-white);
  text-decoration: none;
}

.creo-logo {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--creo-white);
  background: var(--creo-rainbow);
  font-weight: 950;
  letter-spacing: -0.08em;
}

.creo-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.creo-logo .custom-logo-link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.creo-logo .custom-logo {
  max-width: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.creo-name {
  display: block;
  color: var(--creo-white);
  font-size: clamp(1.28rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.creo-tagline {
  display: block;
  margin-top: 4px;
  color: var(--creo-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.creo-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.creo-menu a {
  color: var(--creo-white);
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
}

.creo-menu a:hover,
.creo-menu .current-menu-item > a,
.creo-menu .current_page_item > a {
  color: #ff5b61;
}

.creo-hero {
  padding: clamp(56px, 9vw, 110px) 0 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    #050505;
}

.creo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: end;
}

.creo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--creo-red);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.creo-kicker::before {
  content: "";
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: var(--creo-rainbow);
}

.creo-hero h1,
.creo-page-title,
.creo-single-title {
  margin: 0;
  color: var(--creo-white);
  font-size: clamp(3.2rem, 10vw, 7.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.creo-hero-subtitle {
  max-width: 820px;
  margin: 26px 0 0;
  color: var(--creo-white);
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 720;
  line-height: 1.16;
  letter-spacing: 0;
}

.creo-hero-text {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--creo-muted);
  font-size: 1.08rem;
}

.creo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.creo-button,
.creo-button-alt,
.creo-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.creo-button,
.creo-more {
  background: var(--creo-red);
  color: var(--creo-white);
  box-shadow: 0 16px 34px rgba(215, 25, 32, 0.38);
}

.creo-button:hover,
.creo-more:hover {
  transform: translateY(-2px);
  background: #ff3138;
  color: var(--creo-white);
}

.creo-button-alt {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--creo-white);
  background: transparent;
}

.creo-button-alt:hover {
  transform: translateY(-2px);
  background: var(--creo-white);
  color: #050505;
}

.creo-panel {
  position: relative;
  padding: 28px;
  border: 1px solid var(--creo-border);
  border-radius: var(--creo-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  overflow: hidden;
  box-shadow: var(--creo-shadow);
}

.creo-panel::before {
  content: "";
  display: block;
  height: 5px;
  margin: -28px -28px 24px;
  background: var(--creo-rainbow);
}

.creo-panel strong {
  display: block;
  color: var(--creo-white);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.creo-panel p {
  margin: 16px 0 0;
  color: var(--creo-muted);
  font-weight: 700;
}

.creo-section {
  padding: 54px 0;
  background: transparent;
}

.creo-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.creo-section-title {
  margin: 0;
  color: var(--creo-white);
  font-size: clamp(1.9rem, 4.5vw, 3.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.creo-note {
  max-width: 430px;
  margin: 0;
  color: var(--creo-muted);
}

.creo-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  border: 1px solid var(--creo-border);
  border-radius: 28px;
  overflow: hidden;
  background: var(--creo-surface);
  box-shadow: var(--creo-shadow);
}

.creo-featured-image {
  display: block;
  background: var(--creo-surface-2);
}

.creo-featured-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.creo-featured-content {
  padding: clamp(26px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.creo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
  color: var(--creo-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creo-cat {
  color: #ff5b61;
}

.creo-featured-title,
.creo-card-title {
  margin: 0;
  color: var(--creo-white);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: 0;
}

.creo-featured-title {
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.creo-card-title {
  font-size: clamp(1.3rem, 2.25vw, 1.8rem);
}

.creo-featured-title a,
.creo-card-title a {
  color: inherit;
  text-decoration: none;
}

.creo-featured-title a:hover,
.creo-card-title a:hover {
  color: #ff5b61;
}

.creo-excerpt {
  margin: 18px 0 0;
  color: var(--creo-muted);
}

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

.creo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--creo-border);
  border-radius: var(--creo-radius);
  background: var(--creo-surface);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

.creo-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--creo-surface-2);
}

.creo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creo-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.creo-more {
  align-self: flex-start;
  margin-top: auto;
}

.creo-areas {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    #090909;
  border-top: 1px solid var(--creo-border);
  border-bottom: 1px solid var(--creo-border);
}

.creo-area {
  min-height: 185px;
  padding: 24px;
  border: 1px solid var(--creo-border);
  border-radius: var(--creo-radius);
  background: var(--creo-surface);
  color: var(--creo-white);
  text-decoration: none;
}

.creo-area::before {
  content: "";
  display: block;
  width: 58px;
  height: 5px;
  margin-bottom: 22px;
  border-radius: 99px;
  background: var(--creo-rainbow);
}

.creo-area h3 {
  margin: 0;
  color: var(--creo-white);
  font-size: clamp(1.3rem, 2.25vw, 1.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.creo-area p {
  margin: 14px 0 0;
  color: var(--creo-muted);
  font-size: 0.96rem;
}

.creo-page-header {
  padding: 58px 0 30px;
  border-bottom: 1px solid var(--creo-border);
}

.creo-page-title {
  font-size: clamp(3rem, 8vw, 7rem);
}

.creo-archive-loop {
  padding: 42px 0 70px;
}

.creo-single {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 74px;
}

.creo-single-title {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
}

.creo-single-image {
  margin: 34px 0;
}

.creo-single-image img {
  width: 100%;
  border-radius: 28px;
}

.creo-content {
  color: var(--creo-text);
  font-size: 1.1rem;
}

.creo-content p {
  margin: 0 0 1.45em;
}

.creo-content h2 {
  margin: 1.45em 0 0.55em;
  color: var(--creo-white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.creo-content blockquote {
  margin: 34px 0;
  padding: 8px 0 8px 24px;
  border-left: 5px solid var(--creo-red);
  color: var(--creo-white);
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0;
}

.creo-empty {
  padding: 32px;
  border: 1px dashed var(--creo-border);
  border-radius: var(--creo-radius);
  background: var(--creo-surface);
  color: var(--creo-muted);
}

.creo-pagination {
  margin-top: 34px;
}

.creo-footer {
  background: #020202;
  color: rgba(255, 255, 255, 0.82);
}

.creo-footer-line {
  height: 5px;
  background: var(--creo-rainbow);
}

.creo-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 42px 0;
}

.creo-footer-title {
  display: block;
  margin-bottom: 8px;
  color: var(--creo-white);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
}

.creo-footer p {
  max-width: 620px;
  margin: 0;
}

.creo-footer a {
  color: var(--creo-white);
}

.creo-footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.creo-footer-menu a {
  color: var(--creo-white);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .creo-header-inner,
  .creo-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .creo-menu,
  .creo-footer-menu {
    justify-content: flex-start;
  }

  .creo-hero-grid,
  .creo-featured {
    grid-template-columns: 1fr;
  }

  .creo-grid,
  .creo-area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creo-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .creo-container,
  .creo-single {
    width: calc(100% - 28px);
  }

  .creo-header {
    position: relative;
  }

  .creo-header-inner {
    min-height: auto;
    padding: 18px 0;
    gap: 16px;
  }

  .creo-logo {
    width: 44px;
    height: 44px;
  }

  .creo-tagline {
    display: none;
  }

  .creo-menu {
    gap: 10px 14px;
  }

  .creo-menu a {
    font-size: 0.88rem;
  }

  .creo-hero {
    padding-top: 42px;
  }

  .creo-hero h1 {
    font-size: clamp(2.8rem, 18vw, 4.8rem);
  }

  .creo-featured-image img {
    min-height: 260px;
  }

  .creo-grid,
  .creo-area-grid {
    grid-template-columns: 1fr;
  }

  .creo-card-body,
  .creo-panel {
    padding: 20px;
  }
}

body.home,
body.home #page,
body.home .site,
body.home main,
body.home #primary,
body.home .site-main,
body.home .content-bg,
body.home .content-area,
body.home .content-container,
body.home .entry,
body.home .entry-content-wrap,
body.home .creo-hero,
body.home .creo-section {
  background: #050505 !important;
  color: #f4f1ed !important;
}

body.home .creo-hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(215, 25, 32, 0.32), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(117, 7, 135, 0.34), transparent 30rem),
    linear-gradient(180deg, #050505 0%, #090909 100%) !important;
}

body.home .creo-hero h1 {
  color: #ffffff !important;
  text-shadow: 0 4px 32px rgba(215, 25, 32, 0.55);
}

body.home .creo-hero-subtitle,
body.home .creo-section-title,
body.home .creo-featured-title,
body.home .creo-card-title,
body.home .creo-area h3 {
  color: #ffffff !important;
}

body.home .creo-featured,
body.home .creo-card,
body.home .creo-area,
body.home .creo-panel {
  background: #101012 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.creo-share {
  margin-top: 46px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--creo-radius);
  background: #101012;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

.creo-share-under-title {
  margin-top: 24px;
  margin-bottom: 34px;
  padding: 18px;
}

.creo-share::before {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--creo-rainbow);
}

.creo-share-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.creo-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.creo-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.creo-share-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.creo-share-facebook {
  background: rgba(24, 119, 242, 0.16);
}

.creo-share-x {
  background: rgba(255, 255, 255, 0.06);
}

.creo-copy-link {
  background: rgba(215, 25, 32, 0.16);
}

.creo-share-button:hover,
.creo-share-button:focus {
  border-color: var(--creo-red);
  background: var(--creo-red);
  color: #ffffff;
  transform: translateY(-2px);
}

.creo-share-button.is-copied {
  border-color: #008026;
  background: #008026;
  color: #ffffff;
}

.creo-copy-message {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: var(--creo-muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .creo-share {
    padding: 20px;
  }

  .creo-share-buttons {
    display: flex;
  }

  .creo-share-button {
    width: 48px;
  }
}
