/*
Theme Name: Portfolio Cartel
Author: Armand
Description: Custom WordPress theme for Portfolio Cartel.
Version: 1.0.0
Text Domain: portfolio_cartel
*/

/* Fase 1: Body - mismos colores del sitio de referencia (tanshcreative.com/mellow-st-demo) */
:root {
  --tc-base-color-dark: #0a0a0a;
  --tc-base-color-semidark: #171717;
  --tc-base-color-light: #ffffff;
  --tc-text-color-body: #a3a3a3;
  --tc-border-color-main: rgba(255, 255, 255, 0.1);
  --tc-radius-round: 9999px;
}

/* Etapa 10 - Fase 3: evita que el header fijo tape la seccion al saltar a un ancla del menu */
html {
  scroll-padding-top: 90px;
}

body {
  background-color: var(--tc-base-color-dark);
  color: var(--tc-text-color-body);
  font-family: "Mona Sans", sans-serif;
}

/* Fase 2: Header - copia del sitio de referencia (tc-header-global) */
.tc-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 50px;
  z-index: 1030;
  background-color: var(--tc-base-color-dark);
  box-sizing: border-box;
}

.tc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.tc-header__logo {
  flex: 0 0 auto;
  color: var(--tc-base-color-light);
  font-weight: 700;
  text-decoration: none;
}

.tc-header__logo img {
  display: block;
  height: auto;
  max-height: 40px;
  width: auto;
}

.tc-header__nav {
  flex: 1 1 auto;
  min-width: 0;
}

.tc-header__menu-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-header__menu-list a {
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tc-menu-link-color, var(--tc-base-color-light));
  text-decoration: none;
  transition: color 0.3s ease;
}

.tc-header__menu-list a:hover {
  color: var(--tc-text-color-body);
}

/* Compensa el header fijo para que no tape el contenido */
.site-main {
  padding-top: 90px;
}

/* Etapa 3 - Fase 1: Home - copia visual de la seccion #home del sitio de referencia. Botones removidos segun spec. */
.tc-home {
  padding: 160px 50px 100px;
  background-color: var(--tc-base-color-semidark);
}

.tc-home__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.tc-home__intro {
  flex: 1 1 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tc-home__row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tc-home__photo {
  display: inline-flex;
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  border-radius: var(--tc-radius-round);
  overflow: hidden;
}

.tc-home__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-home__arrow {
  display: inline-flex;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: var(--tc-base-color-light);
}

.tc-home__arrow svg {
  width: 100%;
  height: 100%;
}

.tc-home__title {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--tc-base-color-light);
}

.tc-home__emoji {
  display: inline-flex;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
}

.tc-home__emoji img {
  width: 100%;
  height: 100%;
}

.tc-home__description {
  flex: 1 1 300px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--tc-base-color-light);
  text-align: left;
}

@media (min-width: 992px) {
  .tc-home__description {
    text-align: right;
  }
}

/* Etapa 4 - Fase 1: Services - copia visual de la seccion #services del sitio de referencia */
.tc-services {
  padding: 100px 50px;
  background-color: var(--tc-base-color-dark);
}

.tc-services__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tc-services__intro {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 60px;
}

.tc-services__subheading {
  flex: 0 0 200px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  color: var(--tc-base-color-light);
}

.tc-services__heading {
  flex: 1 1 400px;
}

.tc-services__heading h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--tc-base-color-light);
}

.tc-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .tc-services__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tc-service-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  border: 1px solid var(--tc-border-color-main);
  border-radius: 16px;
}

.tc-service-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tc-service-card__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--tc-base-color-light);
  font-size: 36px;
}

.tc-service-card__title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--tc-base-color-light);
}

.tc-service-card__cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--tc-border-color-main);
  border-radius: var(--tc-radius-round);
  color: var(--tc-base-color-light);
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.tc-service-card__cta svg {
  width: 16px;
  height: 16px;
}

.tc-service-card__cta:hover {
  border-color: var(--tc-base-color-light);
  transform: translateY(-2px);
}

.tc-service-card__body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tc-text-color-body);
}

.tc-service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tc-service-card__tag {
  padding: 6px 14px;
  border: 1px solid var(--tc-border-color-main);
  border-radius: var(--tc-radius-round);
  font-size: 13px;
  color: var(--tc-base-color-light);
}

/* Etapa 5 - Fase 1: Works - copia visual de la seccion #works del sitio de referencia */
.tc-works {
  padding: 100px 50px;
  background-color: var(--tc-base-color-semidark);
}

.tc-works__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tc-works__intro {
  margin-bottom: 40px;
  text-align: center;
}

.tc-works__subheading {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  color: var(--tc-base-color-light);
}

.tc-works__heading {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--tc-base-color-light);
}

.tc-works__filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 50px;
  padding: 0;
  list-style: none;
}

.tc-works__filter a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: var(--tc-radius-round);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tc-text-color-body);
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.tc-works__filter a:hover,
.tc-works__filter a.active {
  border-color: var(--tc-border-color-main);
  color: var(--tc-base-color-light);
}

.tc-works__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .tc-works__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .tc-works__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Etapa 5 - Fase 3 / Etapa 14: tarjetas ocultadas por el filtro o por el limite de 6 iniciales */
.tc-work-card.is-hidden {
  display: none;
}

/* Etapa 14: boton "Ver mas" de Works (assets/js/works-more.js) */
.tc-works__more {
  margin-top: 50px;
  text-align: center;
}

.tc-works__more.is-hidden {
  display: none;
}

.tc-works__more-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  border: 1px solid var(--tc-border-color-main);
  border-radius: var(--tc-radius-round);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tc-base-color-light);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tc-works__more-btn:hover {
  background-color: var(--tc-base-color-light);
  border-color: var(--tc-base-color-light);
  color: var(--tc-base-color-dark);
}

.tc-work-card__img {
  position: relative;
  aspect-ratio: 7 / 6;
  overflow: hidden;
  border-radius: 16px;
}

.tc-work-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.tc-work-card:hover .tc-work-card__img img {
  transform: scale(1.1);
  filter: blur(3px);
}

/* Oscurece la imagen en hover (transparente por defecto) */
.tc-work-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
}

.tc-work-card:hover .tc-work-card__overlay {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Categoria + titulo: siempre visibles, fijos arriba */
.tc-work-card__content {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  box-sizing: border-box;
  padding: 30px;
}

.tc-work-card__category {
  display: inline-block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tc-base-color-light);
}

.tc-work-card__heading {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.tc-work-card__heading a {
  color: var(--tc-base-color-light);
  text-decoration: none;
}

/* "View Case Study": oculto por defecto, sube y aparece en hover */
.tc-work-card__link {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 30px;
  bottom: 25px;
  z-index: 3;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tc-base-color-light);
  text-decoration: none;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.tc-work-card:hover .tc-work-card__link {
  opacity: 1;
  transform: translateY(0);
}

.tc-work-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s ease;
}

.tc-work-card:hover .tc-work-card__link svg {
  transform: rotate(45deg);
}

/* Etapa 11 - Fase 1: Portafolio - un proyecto a la vez, con carrusel de fotos (scroll-snap
   nativo) y navegacion Previo/Next entre proyectos (assets/js/portfolio-nav.js). */
.tc-portfolio {
  padding: 160px 50px 100px;
  background-color: var(--tc-base-color-dark);
}

.tc-portfolio__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.tc-portfolio__title {
  margin: 0 0 30px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--tc-base-color-light);
}

.tc-portfolio__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 600px) {
  .tc-portfolio__gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .tc-portfolio__gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tc-portfolio__gallery-item {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
}

.tc-portfolio__gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tc-portfolio__gallery-item:hover img {
  transform: scale(1.05);
}

.tc-portfolio__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 30px 0;
  margin-bottom: 30px;
  border-top: 1px solid var(--tc-border-color-main);
  border-bottom: 1px solid var(--tc-border-color-main);
}

.tc-portfolio__meta-col {
  flex: 1 1 200px;
}

.tc-portfolio__meta-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tc-text-color-body);
}

.tc-portfolio__meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-portfolio__meta-tag {
  padding: 6px 14px;
  border: 1px solid var(--tc-border-color-main);
  border-radius: var(--tc-radius-round);
  font-size: 13px;
  color: var(--tc-base-color-light);
}

.tc-portfolio__description {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--tc-text-color-body);
}

.tc-portfolio__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}

.tc-portfolio__nav-btn {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid var(--tc-border-color-main);
  border-radius: var(--tc-radius-round);
  background: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tc-base-color-light);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tc-portfolio__nav-btn:hover {
  background-color: var(--tc-base-color-light);
  border-color: var(--tc-base-color-light);
  color: var(--tc-base-color-dark);
}

/* Etapa 6 - Fase 1: About Me - copia visual de la seccion #about del sitio de referencia
   (sin la fila "The Numbers", excluida a pedido del spec) */
.tc-about {
  padding: 100px 50px;
  background-color: var(--tc-base-color-dark);
}

.tc-about__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tc-about__intro {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.tc-about__subheading {
  flex: 0 0 200px;
  margin: 0;
  text-transform: uppercase;
  font-size: 28px;
  font-weight: 700;
  color: var(--tc-base-color-light);
}

.tc-about__heading {
  flex: 1 1 400px;
}

.tc-about__heading h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--tc-base-color-light);
}

.tc-about__connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
}

.tc-about__connect-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--tc-text-color-body);
}

.tc-contact-chip {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
  padding: 16px 24px 16px 16px;
  border: 1px solid var(--tc-border-color-main);
  border-radius: var(--tc-radius-round);
  transition: border-color 0.3s ease;
}

.tc-contact-chip:hover {
  border-color: var(--tc-base-color-light);
}

.tc-contact-chip__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.tc-contact-chip__img {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: var(--tc-radius-round);
  overflow: hidden;
  background-color: var(--tc-base-color-semidark);
  color: var(--tc-base-color-light);
  font-size: 18px;
}

.tc-contact-chip__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-contact-chip__label {
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--tc-text-color-body);
}

.tc-contact-chip__value {
  font-size: 15px;
  font-weight: 700;
  color: var(--tc-base-color-light);
}

.tc-about__resume {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

@media (min-width: 992px) {
  .tc-about__resume {
    grid-template-columns: 1fr 1fr;
  }
}

.tc-about__resume-heading {
  margin: 0 0 24px;
  text-transform: uppercase;
  font-size: 28px;
  font-weight: 700;
  color: var(--tc-base-color-light);
}

/* Caja con borde redondeado que envuelve cada lista de timeline (Experience/Education) */
.tc-box {
  padding: 30px;
  border: 1px solid var(--tc-border-color-main);
  border-radius: 20px;
}

.tc-timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Punto + linea vertical a la izquierda de cada item, se "estira" en hover */
.tc-timeline-item {
  position: relative;
  padding-left: 30px;
}

.tc-timeline-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: var(--tc-radius-round);
  background-color: var(--tc-text-color-body);
  transition: background-color 0.3s ease;
}

.tc-timeline-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 3px;
  width: 1px;
  height: 60px;
  background-color: var(--tc-text-color-body);
  transition: background-color 0.3s ease, height 0.3s ease;
}

.tc-timeline-item:hover::before,
.tc-timeline-item:hover::after {
  background-color: var(--tc-base-color-light);
}

.tc-timeline-item:hover::after {
  height: 100%;
}

.tc-timeline-item__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tc-timeline-item__company {
  font-size: 14px;
  font-weight: 700;
  color: var(--tc-base-color-light);
}

.tc-timeline-item__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--tc-base-color-semidark);
}

.tc-timeline-item__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-timeline-item__period {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--tc-text-color-body);
}

.tc-timeline-item__role {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--tc-base-color-light);
}

.tc-timeline-item__description {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tc-text-color-body);
}

/* Etapa 7 - Fase 1: Tools - copia visual de la seccion #tools del sitio de referencia.
   Cambios pedidos en el spec: grid uniforme de 4 columnas (todas las tarjetas del mismo
   tamano) y logo + nombre centrados dentro de cada tarjeta. */
.tc-tools-section {
  padding: 100px 50px;
  background-color: var(--tc-base-color-semidark);
}

.tc-tools-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tc-tools-section__intro {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.tc-tools-section__subheading {
  flex: 0 0 200px;
  margin: 0;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 700;
  color: var(--tc-base-color-light);
}

.tc-tools-section__heading {
  flex: 1 1 400px;
  text-align: right;
}

.tc-tools-section__heading h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--tc-base-color-light);
}

.tc-tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .tc-tools {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tc-tools__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 150px;
  padding: 30px;
  border: 1px solid var(--tc-border-color-main);
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.3s ease;
}

.tc-tools__card:hover {
  border-color: var(--tc-base-color-light);
}

.tc-tools__card img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}

.tc-tools__heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tc-base-color-light);
}

/* Etapa 8 - Fase 1: Articulos (Latest Posts) - copia visual de la seccion #blog del
   sitio de referencia. Solo maqueta por ahora. */
.tc-blog {
  padding: 100px 50px;
  background-color: var(--tc-base-color-dark);
}

.tc-blog__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tc-blog__intro {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.tc-blog__subheading {
  flex: 0 0 200px;
  margin: 0;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 700;
  color: var(--tc-base-color-light);
}

.tc-blog__heading {
  flex: 1 1 400px;
  text-align: right;
}

.tc-blog__heading h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--tc-base-color-light);
}

.tc-blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .tc-blog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Etapa 8 - Fase 1: articulos ocultos hasta hacer clic en "Ver mas" (assets/js/articles-more.js) */
.tc-post-block.is-hidden {
  display: none;
}

.tc-post-block__img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: 20px;
}

.tc-post-block__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-post-block__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tc-post-block__category {
  padding: 4px 12px;
  border: 1px solid var(--tc-border-color-main);
  border-radius: var(--tc-radius-round);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tc-text-color-body);
}

.tc-post-block__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.tc-post-block__title a {
  color: var(--tc-base-color-light);
  text-decoration: none;
}

.tc-post-block__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tc-base-color-light);
  text-decoration: none;
}

.tc-post-block__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.tc-post-block__link:hover svg {
  transform: translate(2px, -2px);
}

.tc-blog__more {
  margin-top: 60px;
  text-align: center;
}

.tc-blog__more.is-hidden {
  display: none;
}

.tc-blog__more-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  border: 1px solid var(--tc-border-color-main);
  border-radius: var(--tc-radius-round);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tc-base-color-light);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tc-blog__more-btn:hover {
  background-color: var(--tc-base-color-light);
  border-color: var(--tc-base-color-light);
  color: var(--tc-base-color-dark);
}

/* Etapa 9 - Fase 1: Contacto - rediseño en 2 columnas del sitio de referencia, sin el
   formulario de contacto (removido a pedido del spec). Reutiliza .tc-contact-chip (Etapa 6). */
.tc-contact {
  padding: 100px 50px;
  background-color: var(--tc-base-color-semidark);
}

.tc-contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .tc-contact__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.tc-contact__subheading {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 700;
  color: var(--tc-base-color-light);
}

.tc-contact__heading {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--tc-base-color-light);
}

.tc-contact__description {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--tc-text-color-body);
}

.tc-contact__chips {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tc-contact__chips .tc-contact-chip {
  width: 100%;
}

/* Fase 3: Footer - copia del sitio de referencia (tc-footer), dividido en 3 columnas */
.tc-footer {
  padding: 100px 50px;
  border-top: 1px solid var(--tc-base-color-semidark);
  background-color: var(--tc-base-color-dark);
}

.tc-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.tc-footer__col {
  flex: 1 1 200px;
}

.tc-footer__col--logo img {
  display: block;
  height: auto;
  max-height: 50px;
  width: auto;
}

.tc-footer__copyright {
  margin-top: 20px;
  font-size: 14px;
}

.tc-footer h6 {
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 28px;
  color: var(--tc-base-color-light);
}

/* Etapa 10 - Fase 1: hasta 2 columnas de items (4 por columna, la 2da solo aparece si hay 5+) */
.tc-footer__menu-columns {
  display: flex;
  gap: 40px;
}

.tc-footer__menu-list,
.tc-footer__social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tc-footer__menu-list li,
.tc-footer__social-list li {
  margin-bottom: 10px;
}

.tc-footer__menu-list a {
  color: var(--tc-menu-link-color, var(--tc-base-color-light));
  text-decoration: none;
  transition: color 0.3s ease;
}

.tc-footer__menu-list a:hover {
  color: var(--tc-text-color-body);
}

/* Iconos de redes sociales encerrados en un circulo (copiado de .tc-social-links__link) */
.tc-footer__social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tc-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--tc-border-color-main);
  border-radius: var(--tc-radius-round);
  color: var(--tc-base-color-light);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.tc-footer__social-link:hover {
  border-color: var(--tc-base-color-light);
  color: var(--tc-text-color-body);
  transform: translateY(-2px);
}

.tc-footer__social-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.tc-footer__social-icon svg {
  width: 100%;
  height: 100%;
}
