/*
Theme Name: Identidad Cultural DDHH
Theme URI: http://localhost/identidadculturalddhh/
Author: OpenFaundes
Author URI: http://localhost/
Description: Tema custom HTML/CSS para Identidad Cultural y Derechos Humanos. Liviano, sin dependencias.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: icddhh
Tags: custom, lightweight, html, css
*/

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

/* === VARIABLES === */
:root {
  --color-primary: #082c56;
  --color-primary-light: #0a3a72;
  --color-accent: #20bc2f;
  --color-text: #3a3a3a;
  --color-text-light: #666;
  --color-bg: #ffffff;
  --color-bg-light: #f5f5f5;
  --color-border: #e0e0e0;
  --font-heading: 'Alegreya', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --spacing: 1.5rem;
  --transition: 0.3s ease;
}

/* === BASE === */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none !important;
  transition: color var(--transition);
}

a:hover {
  color: #0c71c3;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

/* === LAYOUT === */
.container {
  width: 90%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === TOP BAR === */
.top-bar {
  background: #7ec8e3;
  height: 32px;
  position: sticky;
  top: 0;
  z-index: 1002;
  width: 100%;
}

.top-bar-inner {
  width: 100%;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.top-bar-nav ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.top-bar-nav a {
  color: #0d2b4e;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity var(--transition);
}

.top-bar-nav a:hover {
  opacity: 0.7;
  color: #0d2b4e;
}

/* === HEADER === */
.site-header {
  background: #0d2b4e;
  position: relative;
  position: sticky;
  top: 32px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 2rem;
  height: 66px;
}

.site-logo a {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 48px;
  width: auto;
}

/* === NAVIGATION === */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  color: #fff;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus {
  opacity: 0.8;
  color: #fff;
}

/* Dropdown */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0d2b4e;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 100;
}

.main-nav li:hover > .sub-menu {
  display: block;
}

.main-nav .sub-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Search toggle */
.search-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 0.5rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.search-toggle:hover {
  opacity: 1;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* === HERO SLIDER === */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 400px;
  overflow: hidden;
  background: transparent;
  margin-bottom: 2rem;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider .slide.active {
  opacity: 1;
  position: absolute;
  z-index: 2;
}

.hero-slider .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-slider .slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.hero-slider .slide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.hero-slider .slide-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 800px;
}

.hero-slider .slide-content h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-slider .slide-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-slider .slide-content .btn {
  display: none;
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.slider-dots .dot.active {
  background: #fff;
}

/* === MAIN CONTENT === */
.site-main {
  padding: 2rem 0;
  min-height: 60vh;
}

.page-header {
  margin-bottom: 2rem;
  padding: 1.5rem 0 1rem;
  border-bottom: 2px solid var(--color-primary);
  background: var(--color-bg);
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin-bottom: 0;
  color: var(--color-primary);
}

.page-content {
  font-size: 1rem;
}

.page-content h2 {
  margin-top: 2rem;
}

.page-content h3 {
  margin-top: 1.5rem;
}

.page-content a {
  text-decoration: none !important;
}

.page-content span {
  text-decoration: none !important;
}

/* === INVESTIGADOR PROFILES === */
.investigadores-section {
  margin: 2rem 0;
}

.investigadores-section h2,
.investigadores-section h3 {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.investigadores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.investigador {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.investigador-foto {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.investigador-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.investigador-info {
  padding: 1rem;
}

.investigador-info h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.investigador-info p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* === BLOG GRID === */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.post-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.post-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.post-card .post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.single-post .post-thumbnail {
  margin-bottom: 1.5rem;
}

.single-post .post-thumbnail img {
  display: block;
  max-width: 100%;
  height: auto;
}

.single-post .post-thumbnail.align-left img {
  margin-left: 0;
  margin-right: auto;
}

.single-post .post-thumbnail.align-center img {
  margin-left: auto;
  margin-right: auto;
}

.single-post .post-thumbnail.align-right img {
  margin-left: auto;
  margin-right: 0;
}

.page-content .post-thumbnail {
  margin-bottom: 1.5rem;
}

.post-card .post-content {
  padding: 1.25rem;
}

.post-card .post-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.post-card .post-title a {
  color: var(--color-primary);
}

.post-card .post-title a:hover {
  color: #0c71c3;
}

.post-card .post-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.post-card .post-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* === SINGLE POST === */
.single-post .entry-header {
  margin-bottom: 1.5rem;
}

.single-post .entry-meta {
  display: none;
}

.single-post .entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Two-column layout */
.single-post .post-layout-two-columns {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.single-post .post-layout-two-columns .post-thumbnail {
  flex: 0 0 40%;
  max-width: 40%;
  margin-bottom: 0;
}

.single-post .post-layout-two-columns .post-thumbnail img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.single-post .post-layout-two-columns .post-thumbnail img:last-child {
  margin-bottom: 0;
}

.single-post .post-layout-two-columns .entry-content {
  flex: 1;
}

/* Swap: imagen derecha */
.single-post .post-layout-two-columns.swap .post-thumbnail {
  order: 2;
}

.single-post .post-layout-two-columns.swap .entry-content {
  order: 1;
}

/* Imagen debajo del texto */
.single-post .post-thumbnail-bottom {
  margin-top: 2rem;
}

.single-post .post-thumbnail-bottom img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.single-post .post-thumbnail-bottom img:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .single-post .post-layout-two-columns {
    flex-direction: column;
  }
  .single-post .post-layout-two-columns .post-thumbnail {
    flex: none;
    max-width: 100%;
  }
}

.single-post .entry-content img {
  margin: 1.5rem 0;
}

/* === RESEARCHER PROFILE === */
.researcher-profile {
  margin: 0 auto;
}

.researcher-lines {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
}

.researcher-lines-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

.researcher-line-badge {
  display: inline-block;
  padding: 0.25em 0.85em;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
}

.researcher-header {
  margin-bottom: 1.5rem;
}

.researcher-header h1 {
  margin-bottom: 0;
}

.researcher-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.researcher-photo {
  flex: 0 0 35%;
  max-width: 35%;
}

.researcher-photo img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.researcher-links {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
}

.researcher-links li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.researcher-links a {
  text-decoration: none !important;
  font-weight: 600;
  color: var(--color-primary);
}

.researcher-links a:hover {
  color: #0c71c3;
}

.researcher-bio {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.8;
}

.researcher-bio ul {
  margin: 1rem 0;
}

.researcher-bio li {
  margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
  .researcher-content {
    flex-direction: column;
  }
  .researcher-photo {
    flex: none;
    max-width: 100%;
    order: -1;
  }
}

/* === SIDEBAR === */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.sidebar {
  padding: 1rem;
  background: var(--color-bg-light);
  border-radius: 8px;
}

.sidebar h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

/* === NOTICIAS SECCIONES === */
.destacadas-section,
.recientes-section {
  margin: 3rem 0 2rem;
}

.section-title {
  font-family: 'Alegreya', serif;
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.noticia-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.noticia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.noticia-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.noticia-card h3 {
  padding: 0.75rem 1rem 0;
  font-size: 1rem;
  margin: 0;
  line-height: 1.3;
}

.noticia-card h3 a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.noticia-card h3 a:hover {
  color: #0c71c3;
}

.noticia-card .noticia-excerpt {
  padding: 0.5rem 1rem 1rem;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.ver-mas-wrapper {
  text-align: center;
  margin: 2rem 0 3rem;
}

.ver-mas-wrapper .btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.ver-mas-wrapper .btn:hover {
  background: #0c71c3;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .noticias-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .noticias-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 1.4rem;
  }
}

/* === FOOTER === */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding: 4rem 0 2rem;
  margin-top: 3rem;
}

.footer-inner {
  width: 100%;
  padding: 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-left img {
  height: 100px;
  width: auto;
  transition: opacity 0.2s;
}

.footer-left img:hover {
  opacity: 0.85;
}

.footer-financiamiento {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s;
}

.footer-social a svg {
  width: 24px;
  height: 24px;
}

.footer-social a:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-left {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.pagination .current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* === 404 === */
.error-404 {
  text-align: center;
  padding: 4rem 0;
}

.error-404 h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider .slide-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .header-inner {
    height: 60px;
  }

  .site-logo img {
    height: 40px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .hero-slider {
    min-height: 300px;
  }
}
C:\xampp\htdocs\identidadculturalddhh\wp-content\themes\identidad-cultural-ddhh\style.cssC:\xampp\htdocs\identidadculturalddhh\wp-content\themes\identidad-cultural-ddhhstyle.cssArrayArray1