/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 *
 * CSS reorganizado y limpiado para el portfolio.
 * Estructura: base, header, home, footer, entradas, autor, responsive y ajustes finales.
 */

/* ============================= */
/* VARIABLES GENERALES           */
/* ============================= */

/* Extracto en listados de entradas */
/* Extracto en listado de entradas */
.blog .entry-excerpt,
.archive .entry-excerpt,
.search .entry-excerpt,
.blog .entry-excerpt p,
.archive .entry-excerpt p,
.search .entry-excerpt p {
  color: #F9FAFB !important;
}

/* Metadatos: autor, fecha, categorías */
.blog .entry-meta,
.archive .entry-meta,
.search .entry-meta,
.blog .entry-meta a,
.archive .entry-meta a,
.search .entry-meta a,
.blog .entry-meta span,
.archive .entry-meta span,
.search .entry-meta span {
  color: #A3E635 !important;
}

/* Separadores entre autor / fecha / categorías */
.blog .entry-meta,
.archive .entry-meta,
.search .entry-meta {
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}


/* ============================= */
/*  HEADER - IDENTIDAD IZQUIERDA */
/* ============================= */

/* Bloque foto + nombre */
#header .site-branding[data-id="logo"] {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  transition: transform 0.2s ease !important;
  transform-origin: left center !important;
}

#header .site-branding[data-id="logo"]:hover {
  transform: scale(1.04) !important;
}

/* Foto de perfil */
#header .site-branding[data-id="logo"] .site-logo-container img {
  width: 58px !important;
  height: 58px !important;

  border-radius: 999px !important;
  object-fit: contain !important;
  object-position: center !important;

  background-color: #ffffff !important;
  padding: 4px !important;
  box-sizing: border-box !important;

  border: 2px solid #1E293B !important;
}

/* Contenedor del nombre */
#header .site-title-container {
  display: flex !important;
  align-items: center !important;
}

/* Nombre */
#header .site-title,
#header .site-title a {
  display: inline-flex !important;
  align-items: center !important;

  color: #F9FAFB !important;
  font-size: 25px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  text-decoration: none !important;
}

/* Verificado estilo Twitter/X */
#header .site-title::after {
  content: "" !important;
  display: inline-block !important;

  width: 23px !important;
  height: 23px !important;
  margin-left: 9px !important;

  background-color: #1D9BF0 !important;

  clip-path: polygon(
    50% 0%,
    61% 12%,
    78% 7%,
    84% 24%,
    100% 35%,
    91% 51%,
    100% 67%,
    82% 76%,
    77% 94%,
    60% 88%,
    50% 100%,
    39% 88%,
    22% 94%,
    17% 76%,
    0% 67%,
    9% 51%,
    0% 35%,
    16% 24%,
    22% 7%,
    39% 12%
  );

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M9.55 16.6 4.95 12l1.45-1.45 3.15 3.15 8.05-8.05L19.05 7.1z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 17px 17px !important;
}

/* Ocultar descripción si aparece */
#header .site-description {
  display: none !important;
}


/* ============================= */
/* 			HOME - Hero 		 */
/* ============================= */

.home-hero {
  max-width: 1200px !important;
  margin: 32px auto 56px !important;
  padding: 52px 64px 52px 64px !important;

  background: linear-gradient(135deg, #111827 0%, #0B1020 70%) !important;
  border: 1px solid #1E293B !important;
  border-radius: 32px !important;

  position: relative !important;
  overflow: hidden !important;
  text-align: center !important;
}

.home-hero::before,
.home-hero::after {
  content: "" !important;
  position: absolute !important;
  pointer-events: none !important;
}

.home-hero::before {
  top: -120px !important;
  right: -120px !important;
  width: 320px !important;
  height: 320px !important;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 65%) !important;
}

.home-hero::after {
  bottom: -140px !important;
  left: -120px !important;
  width: 300px !important;
  height: 300px !important;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.18), transparent 65%) !important;
}

.home-hero > * {
  position: relative !important;
  z-index: 1 !important;
}

.home-hero h1,
.home-hero h2 {
  max-width: 900px !important;
  margin: 0 auto 24px !important;

  color: #A3E635 !important;
  font-size: clamp(36px, 5vw, 58px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.04em !important;
}

.home-hero p {
  max-width: 950px !important;
  margin-left: auto !important;
  margin-right: auto !important;

  color: #CBD5E1 !important;
  font-size: clamp(18px, 2vw, 24px) !important;
  line-height: 1.6 !important;
}

/* Palabras destacadas en blanco, sin añadir negrita ni cursiva */
/* Palabras destacadas en blanco */
.home-hero b,
.home-hero strong {
  color: #F9FAFB !important;
  font-weight: inherit !important;
}

.home-hero em,
.home-hero i {
  color: #F9FAFB !important;
  font-weight: inherit !important;
  font-style: italic !important;
}

/* Botones del hero */
.home-hero .wp-block-buttons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  margin-top: 32px !important;
}

.home-hero .wp-block-button__link {
  padding: 13px 22px !important;

  background-color: #2563EB !important;
  color: #F9FAFB !important;
  border: 1px solid #2563EB !important;
  border-radius: 999px !important;

  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;

  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.home-hero .wp-block-button__link:hover,
.home-hero .wp-block-button__link:hover *,
.home-hero .wp-block-button:hover .wp-block-button__link,
.home-hero .wp-block-button:hover .wp-block-button__link *,
.home-hero .wp-block-button__link:focus,
.home-hero .wp-block-button__link:focus *,
.home-hero .wp-block-button__link:active,
.home-hero .wp-block-button__link:active * {
  background-color: #A3E635 !important;
  border-color: #A3E635 !important;
  color: #0B1020 !important;
  transform: translateY(-2px) !important;

  --theme-button-text-initial-color: #0B1020 !important;
  --theme-button-text-hover-color: #0B1020 !important;
}


/* ============================= */
/* HOME - PRESENTACIÓN           */
/* ============================= */

/* Subrayado del nombre */
.name-underline {
  text-decoration-line: underline !important;
  text-underline-offset: 12px !important;
}

/* Presentación desplegable */
.home-intro-toggle {
  max-width: 1200px !important;
  margin: 40px auto 10px !important;
  padding: 0 !important;

  color: #CBD5E1 !important;
}

/* Botón de desplegar */
.home-intro-toggle summary {
  width: fit-content !important;
  min-height: 48px !important;
  margin: 0 auto !important;
  padding: 0 48px 0 20px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  position: relative !important;

  background-color: #111827 !important;
  border: 1px solid #1E293B !important;
  border-radius: 999px !important;

  color: #F9FAFB !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  cursor: pointer !important;
  list-style: none !important;

  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.home-intro-toggle summary::-webkit-details-marker {
  display: none !important;
}

.home-intro-toggle summary::after {
  content: "" !important;

  width: 18px !important;
  height: 18px !important;

  position: absolute !important;
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  background-color: #A3E635 !important;

  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  mask-repeat: no-repeat !important;
  mask-position: center !important;
  mask-size: 18px 18px !important;

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  -webkit-mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  -webkit-mask-size: 18px 18px !important;
}

.home-intro-toggle[open] summary::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E") !important;

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E") !important;
}

.home-intro-toggle summary:hover {
  background-color: #131C2E !important;
  border-color: #2563EB !important;
  color: #A3E635 !important;
  transform: translateY(-2px) !important;
}

/* Texto desplegado */
.home-intro-toggle p {
  max-width: 980px !important;
  margin: 28px auto 0 !important;
  padding: 0 0 0 28px !important;

  border-left: 3px solid #2563EB !important;

  color: #CBD5E1 !important;
  font-size: 17px !important;
  line-height: 1.9 !important;
}


/* ============================= */
/* HOME - ÁREAS DE INTERÉS       */
/* ============================= */

.home-interests-section {
  max-width: 1200px !important;
  margin: 0 auto 56px !important;
  padding-top: 0 !important;

  border-top: none !important;
}

.home-interests-section > h2,
.home-interests-section > h3 {
  width: 100% !important;
  margin: 0 0 12px !important;

  color: #A3E635 !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.home-interests-section > h2::after,
.home-interests-section > h3::after {
  content: "" !important;
  display: block !important;
  width: 72px !important;
  height: 3px !important;
  margin-top: 14px !important;

  background: linear-gradient(90deg, #2563EB, #A3E635) !important;
  border-radius: 999px !important;
}

.home-interests-section > p {
  max-width: 980px !important;
  margin: 0 0 36px !important;

  color: #CBD5E1 !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

/* Igualar altura de las columnas de áreas */
.home-interests-section .wp-block-columns {
  align-items: stretch !important;
}

.home-interests-section .wp-block-column {
  display: flex !important;
}

/* Card de área de interés */
.home-interest-card {
  width: 100% !important;
  height: 100% !important;
  min-height: 225px !important;
  padding: 28px !important;

  background-color: #111827 !important;
  border: 1px solid #1E293B !important;
  border-radius: 24px !important;

  display: flex !important;
  flex-direction: column !important;
  grid-template-rows: 86px 1fr !important;
  align-items: start !important;

  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease !important;
}

.home-interest-card:hover {
  transform: translateY(-4px) !important;
  border-color: #2563EB !important;
  background-color: #131C2E !important;
}

/* Título de cada área */
.home-interest-card h3,
.home-interest-card h4 {
  margin: 0 !important;

  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;

  color: #A3E635 !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

/* Texto descriptivo alineado */
.home-interest-card p {
  margin: 0 !important;

  color: #CBD5E1 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}


/* ============================= */
/* HOME - PROYECTOS DESTACADOS   */
/* ============================= */

.featured-projects-section {
  max-width: 1200px !important;
  margin: 0 auto 56px !important;
  padding-top: 0 !important;

  border-top: none !important;
}

.featured-projects-section > h2,
.featured-projects-section > h3 {
  width: 100% !important;
  margin: 0 0 12px !important;

  color: #A3E635 !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.featured-projects-section > h2::after,
.featured-projects-section > h3::after {
  content: "" !important;
  display: block !important;
  width: 72px !important;
  height: 3px !important;
  margin-top: 14px !important;

  background: linear-gradient(90deg, #2563EB, #A3E635) !important;
  border-radius: 999px !important;
}

.featured-projects-section > p {
  max-width: 980px !important;
  margin: 0 0 36px !important;

  color: #CBD5E1 !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

/* Igualar altura de las tarjetas de proyectos */
.featured-projects-section .wp-block-columns {
  align-items: stretch !important;
}

.featured-projects-section .wp-block-column {
  display: flex !important;
}

/* Card de proyecto */
.project-card {
  width: 100% !important;
  height: 100% !important;
  padding: 32px !important;

  background-color: #111827 !important;
  border: 1px solid #1E293B !important;
  border-radius: 24px !important;

  display: flex !important;
  flex-direction: column !important;

  transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.project-card:hover {
  transform: translateY(-4px) !important;
  border-color: #2563EB !important;
}

.project-card h3,
.project-card h4 {
  margin: 0 0 18px !important;

  min-height: 32px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  color: #A3E635 !important;
  text-align: center !important;
}

.project-card p {
  color: #CBD5E1 !important;
  line-height: 1.7 !important;
}

/* Descripción de proyecto con altura mínima común */
.project-card > p,
.project-card > .wp-block-paragraph {
  min-height: 120px !important;
  margin-bottom: 24px !important;
}

/* Contenedor de tecnologías */
.project-tech-list {
  min-height: 82px !important;

  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;

  margin-top: auto !important;
  margin-bottom: 24px !important;
}

/* Si usas columnas de WordPress para tecnologías */
.project-tech-list.wp-block-columns {
  display: flex !important;
  flex-wrap: wrap !important;
}

.project-tech-list .wp-block-column {
  flex-basis: auto !important;
  flex-grow: 0 !important;

  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  padding: 0 !important;
  margin: 0 !important;

  background: transparent !important;
  border: none !important;
}

/* La píldora visual es solo el badge */
.project-tech-badge {
  min-width: 92px !important;
  max-width: 130px !important;
  height: 34px !important;
  padding: 0 14px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background-color: #A3E635 !important;
  border: 1px solid rgba(163, 230, 53, 0.35) !important;
  border-radius: 999px !important;

  text-align: center !important;
}

/* Texto de tecnologías */
.project-tech-badge,
.project-tech-badge p {
  margin: 0 !important;

  color: #0B1020 !important;
  font-size: clamp(10px, 0.8vw, 13px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.03em !important;
  text-align: center !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Animación hover de las pills */
.project-tech-badge {
  transition: transform 0.2s ease,
              background-color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease !important;
  transform-origin: center !important;
}

.project-tech-badge:hover {
  transform: scale(1.08) !important;
  background-color: #A3E635 !important;
  border-color: rgba(163, 230, 53, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.08) !important;
}

/* ============================= */
/*    BOTONES PROYECTOS HOME     */
/* ============================= */

/* Contenedores */
.repo-button-wrapper,
.wp-block-button:has(a[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"]),
.wp-block-button:has(a[href*="github.com/GasparB-21/AppAtajosIA"]) {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  margin: 32px auto 16px !important;
}

/* Botón personalizado y botón de WordPress */
.repo-button,
a.repo-button,
.wp-block-button__link[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"],
.wp-block-button__link[href*="github.com/GasparB-21/AppAtajosIA"],
.project-card a[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"],
.project-card a[href*="github.com/GasparB-21/AppAtajosIA"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;

  width: fit-content !important;
  padding: 13px 22px !important;

  background-color: #8B5CF6 !important;
  border: 1px solid #8B5CF6 !important;
  border-radius: 999px !important;

  color: #F9FAFB !important;
  fill: #F9FAFB !important;

  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;

  cursor: pointer !important;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    fill 0.2s ease !important;
}

/* Forzar color del texto e icono */
.repo-button *,
.repo-button svg,
.repo-button path,
.wp-block-button__link[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"] *,
.wp-block-button__link[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"] svg,
.wp-block-button__link[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"] path,
.wp-block-button__link[href*="github.com/GasparB-21/AppAtajosIA"] *,
.wp-block-button__link[href*="github.com/GasparB-21/AppAtajosIA"] svg,
.wp-block-button__link[href*="github.com/GasparB-21/AppAtajosIA"] path,
.project-card a[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"] *,
.project-card a[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"] svg,
.project-card a[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"] path,
.project-card a[href*="github.com/GasparB-21/AppAtajosIA"] *,
.project-card a[href*="github.com/GasparB-21/AppAtajosIA"] svg,
.project-card a[href*="github.com/GasparB-21/AppAtajosIA"] path {
  color: inherit !important;
  fill: currentColor !important;
}

/* Hover */
.repo-button:hover,
a.repo-button:hover,
.wp-block-button__link[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"]:hover,
.wp-block-button__link[href*="github.com/GasparB-21/AppAtajosIA"]:hover,
.project-card a[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"]:hover,
.project-card a[href*="github.com/GasparB-21/AppAtajosIA"]:hover {
  transform: translateY(-3px) !important;

  background-color: #A3E635 !important;
  border-color: #A3E635 !important;

  color: #0B1020 !important;
  fill: #0B1020 !important;
}

/* Forzar negro en hover para texto e icono */
.repo-button:hover *,
.repo-button:hover svg,
.repo-button:hover path,
.wp-block-button__link[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"]:hover *,
.wp-block-button__link[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"]:hover svg,
.wp-block-button__link[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"]:hover path,
.wp-block-button__link[href*="github.com/GasparB-21/AppAtajosIA"]:hover *,
.wp-block-button__link[href*="github.com/GasparB-21/AppAtajosIA"]:hover svg,
.wp-block-button__link[href*="github.com/GasparB-21/AppAtajosIA"]:hover path,
.project-card a[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"]:hover *,
.project-card a[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"]:hover svg,
.project-card a[href*="github.com/GasparB-21/Servidor_ToroTour_Angular"]:hover path,
.project-card a[href*="github.com/GasparB-21/AppAtajosIA"]:hover *,
.project-card a[href*="github.com/GasparB-21/AppAtajosIA"]:hover svg,
.project-card a[href*="github.com/GasparB-21/AppAtajosIA"]:hover path {
  color: #0B1020 !important;
  fill: #0B1020 !important;
}

/* Icono GitHub */
.repo-button-icon {
  width: 19px !important;
  height: 19px !important;

  flex: 0 0 auto !important;
  fill: currentColor !important;
}

/* ============================= */
/* FOOTER                        */
/* ============================= */

footer,
.site-footer,
.ct-footer {
  background-color: #0B1020 !important;
}

/* Fila superior */
footer [data-row="top"] {
  background-color: #0B1020 !important;
  padding: 0 24px 24px !important;
}

/* Línea separadora antes de la card */
footer [data-row="top"]::before {
  content: "" !important;
  display: block !important;

  max-width: 1200px !important;
  height: 1px !important;
  margin: 0 auto 32px !important;

  background-color: #1E293B !important;
}

/* Card principal */
footer [data-row="top"] > .ct-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 24px 64px 32px !important;

  background-color: #111827 !important;
  border: 1px solid #1E293B !important;
  border-radius: 24px !important;

  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  grid-template-areas:
    "brand menu"
    "brand socials" !important;

  align-items: center !important;
  column-gap: 96px !important;
  row-gap: 26px !important;
}

/**** Footer - info ****/

footer [data-column="widget-area-1"] {
  grid-area: brand !important;
  justify-self: start !important;

  color: #CBD5E1 !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

footer [data-column="widget-area-1"] strong {
  display: block !important;
  margin-bottom: 8px !important;

  color: #F9FAFB !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

footer [data-column="widget-area-1"] p {
  max-width: 520px !important;
  margin: 0 !important;
  color: #CBD5E1 !important;
}

/**** Footer - menú ****/

footer [data-column="menu"] {
  grid-area: menu !important;
  justify-self: center !important;
}

footer [data-column="menu"] nav ul {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 24px !important;

  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;

  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

footer [data-column="menu"] a {
  color: #F9FAFB !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

footer [data-column="menu"] a:hover {
  color: #A3E635 !important;
}

/**** Footer - redes ****/

footer [data-column="socials"] {
  grid-area: socials !important;
  justify-self: center !important;
}

footer [data-column="socials"] .ct-social-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 50px !important;
}

footer [data-column="socials"] a {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;

  color: #2563EB !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

footer [data-column="socials"] a:hover {
  color: #A3E635 !important;
  transform: translateY(-2px) !important;
}

footer [data-column="socials"] svg {
  width: 34px !important;
  height: 34px !important;
}

/**** Footer - copyright ****/

footer [data-row="bottom"] {
  background-color: #0B1020 !important;
  padding: 0 24px 32px !important;
}

footer [data-row="bottom"] > .ct-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-top: 18px !important;
  border-top: none !important;
}

footer [data-id="copyright"],
footer .ct-footer-copyright {
  color: #CBD5E1 !important;
  font-size: 14px !important;
  text-align: left !important;
}

footer [data-id="copyright"] a,
footer .ct-footer-copyright a {
  color: #2563EB !important;
  text-decoration: none !important;
}


/* ============================= */
/*   ESTILO ENTRADA INDIVIDUAL   */
/* ============================= */

/* Marcar Proyectos como activo cuando se está dentro de una entrada */


.single-post .entry-content,
.single-post .entry-content p,
.single-post .entry-content li,
.single-post .entry-content figcaption {
  color: #F9FAFB !important;
}

.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
  color: #A3E635 !important;
}

.single-post .entry-content a,
.single-post .post-navigation a,
.single-post .ct-related-posts a,
.single-post .entry-tags a,
.single-post .tagcloud a {
  color: #A3E635 !important;
  text-decoration: none !important;
}

.single-post .entry-tags a,
.single-post .tagcloud a {
  display: inline-flex !important;
  align-items: center !important;

  margin: 6px 8px 6px 0 !important;
  padding: 9px 14px !important;

  border: 1px solid rgba(163, 230, 53, 0.45) !important;
  border-radius: 999px !important;

  background-color: rgba(163, 230, 53, 0.08) !important;
  color: #A3E635 !important;

  font-size: 14px !important;
  font-weight: 700 !important;
}

.single-post .entry-tags a:hover,
.single-post .tagcloud a:hover,
.single-post .post-navigation a:hover {
  color: #0B1020 !important;
  background-color: #A3E635 !important;
  border-color: #A3E635 !important;
}

.single-post .post-navigation {
  border-color: #1E293B !important;
}

.single-post .post-navigation .item-label,
.single-post .post-navigation span {
  color: #CBD5E1 !important;
}

/* Hover autor/metadatos en entradas individuales y listado de blog */
.single-post [class*="meta"] a:hover *,
.single-post [class*="author"] a:hover *,
.single-post [class*="dynamic"] a:hover *,
.blog [class*="meta"] a:hover *,
.blog [class*="author"] a:hover *,
.blog [class*="dynamic"] a:hover *,
.archive [class*="meta"] a:hover *,
.archive [class*="author"] a:hover *,
.archive [class*="dynamic"] a:hover * {
  color: #F9FAFB !important;
}


/* Hacer toda la card clicable usando el enlace del título */
.entries article,
.entries .entry-card {
  position: relative !important;
}

.entries article .entry-title a,
.entries .entry-card .entry-title a {
  position: static !important;
}

.entries article .entry-title a::after,
.entries .entry-card .entry-title a::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 5 !important;
}

.entries article .entry-meta,
.entries article .entry-meta a,
.entries article .entry-categories,
.entries article .entry-categories a,
.entries .entry-card .entry-meta,
.entries .entry-card .entry-meta a,
.entries .entry-card .entry-categories,
.entries .entry-card .entry-categories a {
  position: relative !important;
  z-index: 10 !important;
}


/* ========================================== */
/* PÁGINA ENTRADA INDIVIDUAL - ESTILO GENERAL */
/* ========================================== */

/* Extracto dentro de la entrada */
.single-post .entry-excerpt,
.single-post .entry-excerpt *,
.single-post .ct-entry-excerpt,
.single-post .ct-entry-excerpt *,
.single-post .hero-section .page-description,
.single-post .hero-section .page-description *,
.single-post [class*="excerpt"],
.single-post [class*="excerpt"] * {
  color: #F9FAFB !important;

  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;

  text-align: justify !important;
  text-wrap: pretty !important;
}

/* Metadatos bajo el extracto: autor, fecha, categorías */
.single-post .entry-meta,
.single-post .entry-meta a,
.single-post .entry-meta span,
.single-post .ct-dynamic-data,
.single-post .ct-dynamic-data a,
.single-post .ct-dynamic-data span {
  color: #A3E635 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  text-decoration: none !important;
}

.single-post .entry-meta a:hover,
.single-post .ct-dynamic-data a:hover {
  color: #F9FAFB !important;
}


/* ============================= */
/*  IMAGEN DESTACADA MÁS PEQUEÑA */
/* ============================= */

.single-post .ct-featured-image,
.single-post .entry-header .wp-post-image,
.single-post .post-thumbnail {
  max-width: 760px !important;
  margin: 42px auto 56px !important;
}

.single-post .ct-featured-image img,
.single-post .entry-header .wp-post-image,
.single-post .post-thumbnail img {
  max-height: 420px !important;
  width: 100% !important;
  object-fit: contain !important;
  border-radius: 24px !important;
  display: block !important;
}


/* ============================= */
/*     ETIQUETAS EN ENTRADA      */
/* ============================= */

/* Título "Etiquetas" */
.single-post .entry-tags-label,
.single-post .ct-tags-label,
.single-post .tags-links::before,
.single-post .entry-tags::before {
  color: #A3E635 !important;
  font-weight: 800 !important;
}

/* Contenedor de etiquetas */
.single-post .entry-tags,
.single-post .tags-links,
.single-post .tagcloud {
  color: #A3E635 !important;
}

/* Botones de etiquetas */
.single-post .entry-tags a,
.single-post .tags-links a,
.single-post .tagcloud a {
  display: inline-flex !important;
  align-items: center !important;

  margin: 6px 10px 6px 0 !important;
  padding: 10px 18px !important;

  background-color: rgba(163, 230, 53, 0.08) !important;
  border: 1px solid rgba(163, 230, 53, 0.55) !important;
  border-radius: 999px !important;

  color: #A3E635 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-decoration: none !important;

  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

.single-post .entry-tags a:hover,
.single-post .tags-links a:hover,
.single-post .tagcloud a:hover {
  background-color: #A3E635 !important;
  border-color: #A3E635 !important;
  color: #0B1020 !important;
  transform: translateY(-2px) !important;
}


/* ============================= */
/*           COMENTARIOS         */
/* ============================= */

.single-post #comments,
.single-post .comments-area,
.single-post .comment-respond {
  color: #CBD5E1 !important;
}

/* Títulos de comentarios */
.single-post #comments h2,
.single-post #comments h3,
.single-post .comments-title,
.single-post .comment-reply-title {
  color: #A3E635 !important;
  font-weight: 800 !important;
}

/* Texto descriptivo */
.single-post .comment-notes,
.single-post .logged-in-as,
.single-post .comment-form p,
.single-post .comment-form label {
  color: #CBD5E1 !important;
}

/* Asteriscos obligatorios */
.single-post .required {
  color: #F97316 !important;
}

/* Inputs y textarea */
.single-post .comment-form input[type="text"],
.single-post .comment-form input[type="email"],
.single-post .comment-form input[type="url"],
.single-post .comment-form textarea {
  background-color: #0B1020 !important;
  border: 1px solid rgba(163, 230, 53, 0.45) !important;
  border-radius: 10px !important;

  color: #F9FAFB !important;
  padding: 12px 14px !important;

  outline: none !important;
}

.single-post .comment-form input:focus,
.single-post .comment-form textarea:focus {
  border-color: #A3E635 !important;
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.14) !important;
}

/* Checkbox */
.single-post .comment-form input[type="checkbox"] {
  accent-color: #A3E635 !important;
  border-color: #A3E635 !important;
}

.single-post .comment-form input[type="checkbox"]::before,
.single-post .comment-form .ct-checkbox::before {
  border-color: #A3E635 !important;
  background-color: transparent !important;
}

.single-post .comment-form input[type="checkbox"]:checked {
  background-color: #A3E635 !important;
  border-color: #A3E635 !important;
}


/* Botón publicar comentario */
.single-post #respond .form-submit .submit,
.single-post #respond input#submit,
.single-post .comment-respond .form-submit input,
.single-post .comment-form .submit,
.single-post .ct-comment-form .submit {
  background-color: #2563EB !important;
  border-color: #A3E635 !important;
  color: #F9FAFB !important;

  border-radius: 999px !important;
  font-weight: 800 !important;
}

.single-post #respond .form-submit .submit:hover,
.single-post #respond input#submit:hover,
.single-post .comment-respond .form-submit input:hover,
.single-post .comment-form .submit:hover,
.single-post .ct-comment-form .submit:hover {
  background-color: #A3E635 !important;
  border-color: #2563EB !important;
  color: #0B1020 !important;
}


/* ============================= */
/*  NAVEGACIÓN POR LAS ENTRADAS  */
/* ============================= */
/* Línea vertical siempre en verde */
.ct-post-navigation::before,
.ct-post-navigation::after,
.post-navigation::before,
.post-navigation::after,
nav[class*="post"]::before,
nav[class*="post"]::after {
  background-color: #A7F32B !important;
  border-color: #A7F32B !important;
}

/* Por si la línea es un border-left del bloque */
.ct-post-navigation,
.post-navigation,
nav[class*="post"] {
  border-left-color: #A7F32B !important;
}

/* Por si la línea es un elemento interno */
.ct-post-navigation [class*="divider"],
.ct-post-navigation [class*="separator"],
.ct-post-navigation [class*="line"],
.post-navigation [class*="divider"],
.post-navigation [class*="separator"],
.post-navigation [class*="line"] {
  background-color: #A7F32B !important;
  border-color: #A7F32B !important;
}

/* Texto completo negro al pasar el ratón */
.ct-post-navigation a:hover,
.ct-post-navigation a:hover *,
.post-navigation a:hover,
.post-navigation a:hover *,
nav[class*="post"] a:hover,
nav[class*="post"] a:hover * {
  color: #000000 !important;
}

/* Corrección específica para "SIGUIENTE ENTRADA" */
.ct-post-navigation a:hover [class*="label"],
.ct-post-navigation a:hover [class*="label"] *,
.ct-post-navigation a:hover [class*="meta"],
.ct-post-navigation a:hover [class*="meta"] *,
.ct-post-navigation a:hover .item-label,
.ct-post-navigation a:hover .item-label *,
.post-navigation a:hover [class*="label"],
.post-navigation a:hover [class*="label"] *,
.post-navigation a:hover [class*="meta"],
.post-navigation a:hover [class*="meta"] *,
.post-navigation a:hover .item-label,
.post-navigation a:hover .item-label * {
  color: #000000 !important;
}


/* ============================= */
/* ENLACES GENERALES EN ENTRADAS */
/* ============================= */

.single-post a {
  color: #A3E635 !important;
}

.single-post a:hover {
  color: #F9FAFB !important;
}


/* ============================= */
/*     PÁGINA AUTOR - CABECERA   */
/* ============================= */

/* Fondo de la zona superior del perfil */
.author .hero-section,
.author [class*="author-box"],
.author [class*="profile"],
.author .ct-author-box {
  background: linear-gradient(135deg, #0B1020 0%, #111827 55%, #131C2E 100%) !important;
  color: #F9FAFB !important;
}

/* Contenedor interior del perfil: menos ancho */
.author .hero-section .ct-container,
.author .ct-author-box,
.author [class*="author"] [class*="box"] {
  max-width: 680px !important;
  margin: 0 auto !important;
  padding: 52px 24px !important;
  text-align: center !important;
}

/* Imagen/avatar */
.author .hero-section img,
.author .ct-author-box img,
.author .avatar {
  width: 92px !important;
  height: 92px !important;

  border-radius: 999px !important;
  object-fit: cover !important;

  border: 3px solid #A3E635 !important;
  box-shadow: 0 0 0 6px rgba(163, 230, 53, 0.14) !important;
}

/* Nombre del autor */
.author .hero-section h1,
.author .page-title,
.author .ct-author-box h1,
.author .ct-author-box h2 {
  margin: 24px 0 14px !important;

  color: #A3E635 !important;
  font-size: clamp(38px, 5vw, 58px) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
}

/* Biografía/contacto */
.author .hero-section .page-description,
.author .hero-section .page-description *,
.author .ct-author-box .author-bio,
.author .ct-author-box .author-bio *,
.author [class*="author"] [class*="description"],
.author [class*="author"] [class*="description"] * {
  max-width: 620px !important;
  margin: 0 auto 22px !important;

  color: #F9FAFB !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  font-weight: 800 !important;
}

/* Si el email sale como enlace */
.author .hero-section .page-description a,
.author .ct-author-box .author-bio a,
.author [class*="author"] [class*="description"] a {
  color: #F9FAFB !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

/* Metadatos: Unido / Artículos */
.author .entry-meta,
.author .ct-dynamic-data,
.author [class*="meta"] {
  color: #A3E635 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* Eliminar/ocultar rectángulo degradado detrás de redes */
body.author .hero-section .ct-social-box,
body.author .hero-section [class*="social"] {
  margin-top: 22px !important;

  display: flex !important;
  justify-content: center !important;
  gap: 14px !important;

  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Por si el rectángulo lo crea un pseudo-elemento */
body.author .hero-section .ct-social-box::before,
body.author .hero-section .ct-social-box::after,
body.author .hero-section [class*="social"]::before,
body.author .hero-section [class*="social"]::after {
  content: none !important;
  display: none !important;
}

/* Botones sociales */
body.author .hero-section .ct-social-box a,
body.author .hero-section [class*="social"] a {
  width: 46px !important;
  height: 46px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background-color: #0B1020 !important;
  border: 1px solid #1E293B !important;
  border-radius: 999px !important;

  color: #F9FAFB !important;

  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important;
}

/* Hover botones sociales */
body.author .hero-section .ct-social-box a:hover,
body.author .hero-section [class*="social"] a:hover {
  transform: translateY(-3px) !important;
  background-color: #131C2E !important;
  border-color: #A3E635 !important;
  color: #A3E635 !important;
}

/* Separación entre cabecera de autor y cards */
.author .entries {
  margin-top: 56px !important;
}


/* ============================= */
/* RESPONSIVE                    */
/* ============================= */

/**** HOME - Responsive superior ****/

@media (max-width: 900px) {
  .home-hero {
    margin: 24px 16px 32px !important;
    padding: 40px 28px !important;
    border-radius: 24px !important;
  }

  .home-hero h1,
  .home-hero h2 {
    font-size: 36px !important;
  }

  .home-hero p {
    font-size: 18px !important;
  }

  .home-hero .wp-block-buttons {
    justify-content: center !important;
  }

  .home-intro-toggle,
  .home-interests-section,
  .featured-projects-section {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  .home-intro-toggle p {
    padding-left: 22px !important;
  }

  .home-interest-card,
  .project-card {
    padding: 24px !important;
  }

  .home-interests-section > h2,
  .home-interests-section > h3,
  .home-interests-section > p,
  .featured-projects-section > h2,
  .featured-projects-section > h3,
  .featured-projects-section > p {
    text-align: left !important;
  }

  .home-interest-card {
    grid-template-rows: auto auto !important;
    min-height: auto !important;
  }

  .project-tech-list {
    justify-content: center !important;
  }
}


/**** FOOTER ****/

@media (max-width: 900px) {
  footer [data-row="top"] {
    padding: 8px 16px 20px !important;
  }

  footer [data-row="top"]::before {
    margin-bottom: 24px !important;
  }

  footer [data-row="top"] > .ct-container {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "brand"
      "menu"
      "socials" !important;

    padding: 28px 24px !important;
    text-align: center !important;
    row-gap: 24px !important;
  }

  footer [data-column="widget-area-1"],
  footer [data-column="menu"],
  footer [data-column="socials"] {
    justify-self: center !important;
  }

  footer [data-column="widget-area-1"] p {
    max-width: 100% !important;
  }

  footer [data-column="menu"] nav ul {
    flex-wrap: wrap !important;
    gap: 20px !important;
  }

  footer [data-id="copyright"],
  footer .ct-footer-copyright {
    text-align: center !important;
  }
}

/* ===================================================== */
/* AJUSTES FINALES - HOME, FORMACIÓN, BLOG Y ARCHIVOS     */
/* ===================================================== */

/* Textos <p> en la página de inicio en blanco */
.home-hero p,
.home-intro-toggle p,
.home-interests-section > p,
.home-interest-card p,
.featured-projects-section > p,
.project-card p,
.project-card > p,
.project-card > .wp-block-paragraph {
  color: #F9FAFB !important;
}

/* Texto negro dentro de las pills de tecnologías */
.project-tech-badge,
.project-tech-badge p,
.project-tech-badge span,
.project-tech-badge strong,
.project-tech-badge * {
  color: #0B1020 !important;
}

/* Textos <p> en la página de formación en blanco */
.formation-page p,
.formation-page li,
.formation-hero p,
.formation-section > p,
.academic-item p,
.credentials-card li,
.soft-skill-card p,
.tech-section p {
  color: #F9FAFB !important;
}

/* Mantener nombres/lugares destacados con su color propio en formación */
.academic-place,
.credentials-card strong {
  color: #F9FAFB !important;
}

/* Hover de los botones principales del hero: texto negro */
.home-hero .wp-block-buttons .wp-block-button .wp-block-button__link:hover,
.home-hero .wp-block-buttons .wp-block-button:hover .wp-block-button__link,
.home-hero a.wp-block-button__link:hover {
  background-color: #A3E635 !important;
  border-color: #A3E635 !important;
  color: #0B1020 !important;

  --theme-button-text-initial-color: #0B1020 !important;
  --theme-button-text-hover-color: #0B1020 !important;
}

/* Solo cambia el color del texto interno, no su fondo */
.home-hero .wp-block-buttons .wp-block-button .wp-block-button__link:hover *,
.home-hero .wp-block-buttons .wp-block-button:hover .wp-block-button__link *,
.home-hero a.wp-block-button__link:hover * {
  color: #0B1020 !important;
  background-color: transparent !important;
}

/* Descripción de categorías y archivos en blanco */
.archive .page-description,
.archive .page-description p,
.archive .archive-description,
.archive .archive-description p,
.category .page-description,
.category .page-description p,
.category .archive-description,
.category .archive-description p {
  color: #F9FAFB !important;
}

/* Título de entrada en blanco al pasar el ratón en blog, categorías y archivos */
.blog .entry-title a:hover,
.archive .entry-title a:hover,
.category .entry-title a:hover,
.search .entry-title a:hover,
.blog article .entry-title a:hover,
.archive article .entry-title a:hover,
.category article .entry-title a:hover,
.search article .entry-title a:hover {
  color: #F9FAFB !important;
}

/* Título de entrada en blanco al pasar por cualquier zona de la tarjeta */
.blog article:hover .entry-title,
.blog article:hover .entry-title a,
.blog article:hover .entry-title a *,
.archive article:hover .entry-title,
.archive article:hover .entry-title a,
.archive article:hover .entry-title a *,
.category article:hover .entry-title,
.category article:hover .entry-title a,
.category article:hover .entry-title a *,
.search article:hover .entry-title,
.search article:hover .entry-title a,
.search article:hover .entry-title a * {
  color: #F9FAFB !important;
}

/* Refuerzo para tarjetas/listados de Blocksy */
.blog [class*="card"]:hover .entry-title,
.blog [class*="card"]:hover .entry-title a,
.blog [class*="card"]:hover .entry-title a *,
.archive [class*="card"]:hover .entry-title,
.archive [class*="card"]:hover .entry-title a,
.archive [class*="card"]:hover .entry-title a *,
.category [class*="card"]:hover .entry-title,
.category [class*="card"]:hover .entry-title a,
.category [class*="card"]:hover .entry-title a *,
.search [class*="card"]:hover .entry-title,
.search [class*="card"]:hover .entry-title a,
.search [class*="card"]:hover .entry-title a * {
  color: #F9FAFB !important;
}

/* Categorías/metadatos en blanco al pasar el ratón */
.blog .entry-meta a:hover,
.archive .entry-meta a:hover,
.category .entry-meta a:hover,
.search .entry-meta a:hover,
.blog .ct-dynamic-data a:hover,
.archive .ct-dynamic-data a:hover,
.category .ct-dynamic-data a:hover,
.search .ct-dynamic-data a:hover,
.blog [class*="meta"] a:hover,
.archive [class*="meta"] a:hover,
.category [class*="meta"] a:hover,
.search [class*="meta"] a:hover,
.blog [class*="dynamic"] a:hover,
.archive [class*="dynamic"] a:hover,
.category [class*="dynamic"] a:hover,
.search [class*="dynamic"] a:hover {
  color: #F9FAFB !important;
}

/* Por si Blocksy mete spans dentro de los enlaces */
.blog .entry-title a:hover *,
.archive .entry-title a:hover *,
.category .entry-title a:hover *,
.search .entry-title a:hover *,
.blog .entry-meta a:hover *,
.archive .entry-meta a:hover *,
.category .entry-meta a:hover *,
.search .entry-meta a:hover *,
.blog .ct-dynamic-data a:hover *,
.archive .ct-dynamic-data a:hover *,
.category .ct-dynamic-data a:hover *,
.search .ct-dynamic-data a:hover * {
  color: #F9FAFB !important;
}

.featured-projects-section .project-card .project-tech-list .project-tech-badge,
.featured-projects-section .project-card .project-tech-list .project-tech-badge *,
.featured-projects-section .project-card .project-tech-list .project-tech-badge p,
.featured-projects-section .project-card .project-tech-list .project-tech-badge span,
.featured-projects-section .project-card .project-tech-list .project-tech-badge strong,
.project-card .project-tech-badge,
.project-card .project-tech-badge *,
.project-card .project-tech-badge p,
.project-card .project-tech-badge span,
.project-card .project-tech-badge strong {
  color: #0B1020 !important;
}

.featured-projects-section .project-card .project-tech-list .project-tech-badge {
  background-color: #A3E635 !important;
  border-color: #A3E635 !important;
}