/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN GENERAL
   ========================================================================== */
html {
  scroll-behavior: smooth;
  font-size: 100%; /* Base 16px para el manejo uniforme de rems */
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f0f0f0;
  --bg-dark: #000000;
  --text-primary: #111111;
  --text-secondary: #666666;
  --accent-color: linear-gradient(45deg, #8f94fb, #4e54c8);
  --border-radius: 0.875rem; /* 14px */
  --max-width: 93.75rem; /* 1500px */
  --font-titles: "League Spartan", sans-serif;
}

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

body {
  font-family: var(--font-titles);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
}

/* Clases utilitarias extraídas del HTML */
.card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.post-item-link-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Consistencia tipográfica */
h1,
h2,
h3,
h4,
h5,
h6,
.logo-container p,
.logovertical,
.menu-btn,
.language-selector,
.badge,
.search-input,
.overlay-title,
.post-title,
.post-titleblack,
.featured-recent-title,
.post-item-title,
.shoutbox-title {
  font-family: var(--font-titles);
  font-optical-sizing: auto;
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

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

/* ==========================================================================
   2. ENCABEZADO (HEADER)
   ========================================================================== */
header.main-header {
  background-color: var(--bg-primary);
  max-width: var(--max-width);
  margin: 2.5rem auto 1.875rem; /* 40px 30px */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.625rem 0; /* 10px */
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1.25rem; /* 20px */

  .logo {
    width: 11.875rem; /* 190px */
  }

  .eslogan {
    margin-top: 1.5625rem; /* 25px */
    width: 8.75rem; /* 140px */
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.8125rem; /* 45px */

  a {
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--text-primary);
    text-decoration: none;
    transition:
      color 0.3s ease,
      text-decoration 0.3s ease;

    &:hover {
      text-decoration: underline;
    }
  }

  .menu-btn {
    background-color: var(--bg-dark);
    color: var(--bg-primary);
    border: none;
    padding: 0.625rem 1.875rem 0.5rem; /* 10px 30px 8px */
    font-family: inherit;
    font-weight: 600;
    border-radius: 0 0.375rem 0 0; /* 6px */
    font-size: 1.6rem;
    cursor: pointer;
    transition:
      background-color 0.3s ease,
      color 0.3s ease;

    &:hover {
      background-color: var(--bg-secondary);
      color: var(--text-primary);
    }
  }
}

/* Banda */
.marquee-container {
  background-color: var(--bg-dark);
  color: var(--bg-primary);
  overflow: hidden;
  width: 100%;
  padding: 0.75rem 0; /* 12px */
  font-family: "open sans", sans-serif;
  font-size: 0.875rem; /* 14px */
  box-sizing: border-box;
  position: relative;
  letter-spacing: 0.00625rem; /* 0.1px */
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 50s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2.5rem; /* 40px */
  padding-right: 2.5rem; /* 40px */
  white-space: nowrap;
}

.dot {
  font-size: 1.25rem; /* 20px */
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

/* ==========================================================================
   3. SECCIÓN HERO Y CARROUSEL
   ========================================================================== */
.hero-banner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto 2.5rem; /* 40px */
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  flex-grow: 1;
}

.carousel-slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease-in-out,
    visibility 0.5s ease-in-out;
  width: 100%;
  height: 26rem; /* 340px */
  box-sizing: border-box;
  z-index: 1;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0.75rem; /* 12px */

  &.slide-1 {
    background-image: url("assets/wide_cta/cta1.webp");
  }
  &.slide-2 {
    background-image: url("assets/wide_cta/cta2.webp");
  }
  &.slide-3 {
    background-image: url("assets/wide_cta/cta3.webp");
  }
  &.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
  }
}

.hero-content {
  padding-left: 3.75rem; /* 60px */

  h2 {
    color: var(--bg-primary);
    font-size: 5rem;
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.0625rem; /* -1px */
    margin-bottom: 0.6rem; /* 5px */
    padding-left: 3.125rem; /* 50px */
  }

  p {
    color: #f0f0f0;
    font-size: 1.3rem;
    cursor: pointer;
    padding-left: 3.125rem; /* 50px */
  }
}

.hero-btn {
  display: inline-block;
  background-color: var(--bg-primary);
  color: #0e0d0d;
  font-family: var(--font-titles);
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.625rem 1.5625rem; /* 10px 25px */
  border-radius: 3.125rem; /* 50px */
  margin-top: 1.25rem; /* 20px */
  margin-left: 3.125rem; /* 50px */
  transition:
    background-color 0.6s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;

  &:hover {
    background-color: #292929;
    color: var(--bg-primary);
  }
}

.circle-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-right: 15.625rem; /* 250px */

  .sello {
    width: 8.125rem; /* 130px */
    height: 8.125rem; /* 130px */
    will-change: transform;
    animation: rotarSello 20s linear infinite;
  }
}

@keyframes rotarSello {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
  color: var(--bg-primary);
  border: none;
  font-size: 1.2rem;
  padding: 0.5rem 0.75rem; /* 8px 12px */
  cursor: pointer;
  border-radius: 0.25rem; /* 4px */
  transition: background-color 0.3s ease;
  z-index: 6;

  &:hover {
    background: rgba(0, 0, 0, 0.7);
  }
  &.btn-prev {
    left: 0.625rem; /* 10px */
  }
  &.btn-next {
    right: 0.625rem; /* 10px */
  }
}

.carousel-dots {
  position: absolute;
  bottom: 0.75rem; /* 12px */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.375rem; /* 6px */
  z-index: 6;

  .dot {
    width: 0.5rem; /* 8px */
    height: 0.5rem; /* 8px */
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;

    &.active,
    &:hover {
      background-color: var(--bg-primary);
    }
  }
}

/* ==========================================================================
   4. GRILLA DE DESTACADOS (FEATURED GRID)
   ========================================================================== */
.featured-grid {
  max-width: var(--max-width);
  margin: 0 auto 1.25rem; /* 20px */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem; /* 20px */
  grid-auto-rows: minmax(23.75rem, auto); /* 380px */
}

.grid-card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.75rem; /* 60px */
  height: 24.5rem; /* 392px */
  position: relative;

  &.image-card,
  &.visual-hover-card {
    padding: 0;
    cursor: pointer;
  }

  &.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  }
}

.badge {
  background: linear-gradient(135deg, #8f94fb, #4e54c8, #8f94fb);
  background-size: 200% auto;
  color: var(--bg-primary);
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.5rem 0.875rem 0.25rem; /* 8px 14px 4px */
  border-radius: 0.5rem; /* 8px */
  align-self: flex-start;
  margin-bottom: 0.9375rem; /* 15px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: background-position, transform, box-shadow;
  animation:
    moverGradiente 4s linear infinite,
    pulsoGlow 2.5s ease-in-out infinite;
}

@keyframes moverGradiente {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulsoGlow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(143, 148, 251, 0.6);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0.75rem 0.375rem rgba(143, 148, 251, 0); /* 12px 6px */
  }
}

/* VARIANTE: TARJETA CON DOS IMÁGENES Y TEXTO FIJO */
.double-image-card {
  padding: 0;
  cursor: pointer;
}

.double-image-card .card-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: opacity, transform;
  transition:
    opacity 0.4s ease-in-out,
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.double-image-card .img-main {
  filter: brightness(0.4);
  opacity: 1;
}

.double-image-card .img-hover {
  filter: brightness(0.4);
  opacity: 0;
  transform: scale(1.05);
}

.double-image-card .persistent-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 3.75rem; /* 60px */
  pointer-events: none;
}

.double-image-card .persistent-content a {
  pointer-events: auto;
}

.double-image-card .text-light,
.double-image-card .text-light a {
  color: var(--bg-primary);
}

.double-image-card .post-meta.text-light {
  color: #dddddd;
}

.double-image-card:hover .img-main {
  opacity: 0;
  transform: scale(1.03);
}

.double-image-card:hover .img-hover {
  opacity: 1;
  transform: scale(1);
}

.post-title {
  font-size: 3.4rem;
  font-weight: 500;
  line-height: 1.04;
  margin-bottom: 1.25rem; /* 20px */
  letter-spacing: -0.03125rem; /* -0.5px */

  span {
    font-weight: 700;
  }
}

.post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  color: var(--text-secondary);
  width: 100%;
  margin-top: auto;
}

.black-card {
  background-color: var(--bg-dark);
  color: var(--bg-primary);

  .card-default-content {
    background: var(--bg-dark);
    padding: 3.75rem; /* 60px */
  }

  &.visual-hover-card {
    &:hover .card-default-content {
      opacity: 0;
    }

    .card-hover-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition:
        opacity 0.4s ease-in-out,
        transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
      z-index: 1;
    }

    .text-card-overlay,
    .overlay-title,
    .overlay-subtitle,
    .overlay-text,
    .overlay-year,
    .overlay-views {
      color: var(--bg-primary);
      text-shadow: 0 0.3rem 0.3rem rgba(0, 0, 0, 0.1);
    }

    .overlay-title {
      font-size: 5.4rem;
      font-weight: 600;
      line-height: 0.8;
      letter-spacing: -0.03125rem; /* -0.5px */
    }

    .overlay-text {
      font-size: 1.4rem;
      font-weight: 400;
      margin: 0;
      padding-left: 0.625rem; /* 10px */
    }

    &:hover {
      .card-hover-bg {
        filter: none;
      }
      .text-card-overlay {
        opacity: 1;
      }
      .text-card-overlay .overlay-content {
        transform: translateY(0);
      }
    }
  }
}

.post-titleblack {
  font-size: 5.4rem;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03125rem; /* -0.5px */
  margin-top: 0.625rem; /* 10px */
}

.badgeblack {
  color: var(--bg-primary);
  font-size: 1.4rem;
  align-self: flex-start;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3.125rem; /* 50px */
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 2;
}

.project-indica .project-overlay {
  background-color: rgba(89, 138, 94, 0.9);
}
.project-casagrande .project-overlay {
  background-color: rgba(214, 133, 75, 0.9);
}
.project-vestigio .project-overlay {
  background-color: rgba(184, 61, 57, 0.9);
}
.project-manantial .project-overlay {
  background-color: rgba(62, 87, 199, 0.9);
}
.project-glenlivet .project-overlay {
  background-color: rgba(53, 168, 143, 0.9);
}
.project-plazamexico .project-overlay {
  background-color: rgba(168, 97, 147, 0.9);
}
.project-corona .project-overlay {
  background-color: rgba(40, 45, 121, 0.9);
}

.overlay-content {
  color: var(--bg-primary);
  transform: translateY(1.25rem); /* 20px */
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.overlay-title {
  font-size: 4.2rem;
  font-weight: 500;
  line-height: 0.9;
}
.overlay-subtitle {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 0.9375rem; /* 15px */
  color: rgba(255, 255, 255, 0.9);
}
.overlay-year {
  font-weight: 600;
}
.overlay-views {
  font-weight: 400;
}

.overlay-text {
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 300;
  margin-bottom: 1.5625rem; /* 25px */
  color: rgba(255, 255, 255, 0.85);
}

.overlay-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 300;
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.2); /* 1px */
  padding-top: 0.9375rem; /* 15px */
  color: rgba(255, 255, 255, 0.8);
}

.grid-card.image-card:hover {
  .project-overlay {
    opacity: 1;
  }
  .overlay-content {
    transform: translateY(0);
  }
  img {
    transform: scale(1.03);
  }
}

.card-default-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.75rem; /* 60px */
  background: linear-gradient(135deg, #f0f0f0, #e4e4e4, #f5f5f5, #f0f0f0);
  background-size: 300% 300%;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
  animation: moverGradienteFondo 8s ease-in-out infinite;
}

@keyframes moverGradienteFondo {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.card-hover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.35);
  will-change: opacity, transform;
  transition:
    opacity 0.4s ease-in-out,
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.text-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3.75rem; /* 60px */
  box-sizing: border-box;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;

  .overlay-content {
    color: var(--bg-primary);
    transform: translateY(1.25rem); /* 20px */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }
}

.visual-hover-card:hover {
  .card-default-content {
    opacity: 0;
  }
  .card-hover-bg {
    opacity: 1;
    transform: scale(1.03);
  }
  .text-card-overlay {
    opacity: 1;
  }
  .text-card-overlay .overlay-content {
    transform: translateY(0);
  }
}

.smart-hover-card {
  cursor: pointer;
  box-shadow: inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.1); /* 1px */

  .badgeblack,
  .post-titleblack {
    transition:
      transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
      color 0.4s ease;
    transform-origin: left center;
  }

  .card-divider {
    border: 0;
    height: 0.125rem; /* 2px */
    background-color: rgba(255, 255, 255, 0.15);
    width: 100%;
    transform: scaleX(0.4);
    transform-origin: left center;
    transition:
      transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
      background-color 0.4s ease;
  }

  &:hover {
    background-color: #080808;
    box-shadow:
      inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.25),
      0 0.625rem 1.875rem rgba(0, 0, 0, 0.3); /* 10px 30px */

    .post-titleblack {
      transform: translateY(-0.3125rem) scale(1.02); /* -5px */
    }
    .card-divider {
      transform: scaleX(1);
      background-color: rgba(255, 255, 255, 0.7);
    }
  }
}

.black-card-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
}

/* ==========================================================================
   5. BANNER ANCHO (WIDE BANNER)
   ========================================================================== */
.wide-banner {
  max-width: var(--max-width);
  margin: 0 auto 1.25rem; /* 20px */
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.75rem; /* 60px */
  height: 24.5rem; /* 392px */

  .banner-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
  }

  .banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform, opacity, filter;
    transition:
      transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
      filter 0.6s ease,
      opacity 0.5s ease;

    &:first-of-type {
      z-index: 1;
      opacity: 1;
    }
    &.hover-img {
      z-index: 0;
      opacity: 0;
    }
  }

  h2,
  p {
    position: relative;
    z-index: 3;
    pointer-events: none;
  }

  p {
    padding-right: 3.75rem; /* 60px */
    font-size: 1.3rem;
    line-height: 1.4;
    max-width: 40.625rem; /* 650px */
    color: #dddddd;
  }

  h2 {
    font-size: 4.6rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.625rem; /* 10px */

    span {
      font-weight: 600;
    }
  }

  &:hover {
    .banner-img:first-of-type {
      opacity: 0;
      transform: scale(1.02);
    }
    .banner-img.hover-img {
      opacity: 1;
      z-index: 2;
      transform: scale(1.02);
    }
  }
}

/* ==========================================================================
   6. SECCIÓN DE RECIENTES Y SHOUTBOX
   ========================================================================== */
.section-title-container {
  max-width: var(--max-width);
  margin: 3.125rem auto 1.5625rem; /* 50px 25px */
  display: flex;
  align-items: baseline;
  gap: 1.25rem; /* 20px */
}

.section-title-inline {
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--bg-dark);
  white-space: nowrap;
  line-height: 1;
}

.negrita {
  font-weight: 600;
}

.section-divider-inline {
  flex-grow: 1;
  border: 0;
  height: 0.0625rem; /* 1px */
  background-color: #0a0a0a;
}

.recent-section-grid {
  max-width: var(--max-width);
  margin: 0 auto 3.75rem; /* 60px */
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.875rem; /* 30px */
  align-items: stretch;
}

.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* 20px */
  min-width: 0;
}

.featured-recent {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;

  .featured-recent-image-wrapper {
    position: relative;
    width: 100%;
    height: 23.75rem; /* 380px */
    overflow: hidden;

    .badge {
      position: absolute;
      top: 1.875rem; /* 30px */
      left: 1.875rem; /* 30px */
      z-index: 3;
    }
  }

  .featured-recent-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
      transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
      opacity 0.4s ease;

    &:first-of-type {
      z-index: 2;
      opacity: 1;
    }
    &.hover-img {
      z-index: 1;
      opacity: 0;
    }
  }

  .featured-recent-body {
    padding: 2.5rem 2.8125rem; /* 40px 45px */
    display: flex;
    flex-direction: column;
  }

  .featured-recent-title {
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.03125rem; /* -0.5px */
    margin-bottom: 0.9375rem; /* 15px */

    strong {
      font-weight: 700;
    }
  }

  .featured-recent-desc {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 2.1875rem; /* 35px */
    opacity: 0.85;
  }

  .featured-recent-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
  }

  &:hover {
    .featured-recent-img:first-of-type {
      opacity: 0;
      transform: scale(1.02);
    }
    .featured-recent-img.hover-img {
      opacity: 1;
      z-index: 2;
      transform: scale(1.02);
    }
  }
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* 12px */

  .author-avatar {
    width: 2.75rem; /* 44px */
    height: 2.75rem; /* 44px */
    border-radius: 50%;
    object-fit: cover;
  }
}

.author-name,
.featured-recent-date {
  font-size: 1.15rem;
  font-weight: 500;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem; /* 15px */
}

.post-item {
  display: flex;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  align-items: center;
  transition: background-color 0.3s ease;
  height: 15rem; /* 240px */
  min-width: 0;
  gap: 1.5625rem; /* 25px */

  &:hover {
    background-color: #e8e8e8;

    .post-item-image {
      width: 25.5rem; /* 360px */
      img:first-child {
        opacity: 0;
      }
      img:nth-child(2) {
        opacity: 1;
        z-index: 3;
      }
    }
  }

  .post-item-image {
    width: 19.375rem; /* 310px */
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: absolute;
      top: 0;
      left: 0;
      transition: opacity 0.4s ease;

      &:first-child {
        z-index: 2;
        opacity: 1;
      }
      &:nth-child(2) {
        z-index: 1;
        opacity: 0;
      }
    }
  }

  .post-item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    min-width: 0;
    padding: 0 1.875rem 0 1.25rem; /* 0 30px 0 20px */
  }

  .post-item-title {
    font-size: 2.7rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0.5rem; /* 8px */
    color: var(--text-primary);
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .post-item-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.9375rem; /* 15px */
    font-size: 1.1rem;
    color: var(--text-secondary);
  }
}

.shoutbox-container {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 2.1875rem 1.875rem; /* 35px 30px */
  display: flex;
  flex-direction: column;
  gap: 1.5625rem; /* 25px */
  height: 100%;
}

.shoutbox-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem; /* 4px */

  .shoutbox-title {
    font-size: 3.1rem;
    font-weight: 700;
    line-height: 1.1;
  }
  .shoutbox-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
  }
}

.shoutbox-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* 20px */
  justify-content: flex-start;
  height: 100%;
}

.shoutbox-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.875rem; /* 14px */
  overflow: hidden;
  background-color: var(--bg-primary);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  flex: 1 1 0;
  min-height: 0;

  &:hover {
    transform: translateY(-0.1875rem); /* -3px */
  }

  .shoutbox-gif-wrapper {
    width: 100%;
    height: 18.75rem; /* 300px */
    overflow: hidden;
    flex-grow: 1;
    min-height: 7.5rem; /* 120px */
    position: relative;

    .shoutbox-gif {
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: absolute;
      top: 0;
      left: 0;
    }
  }

  .shoutbox-card-footer {
    background-color: #e2e2e2;
    padding: 0.75rem 1.25rem; /* 12px 20px */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.875rem; /* 30px */
    flex-shrink: 0;
  }
}

.shoutbox-action {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
  font-size: 1.2rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  transition: color 0.2s ease;

  svg {
    width: 1.125rem; /* 18px */
    height: 1.125rem; /* 18px */
    fill: none;
    stroke: currentColor;
    stroke-width: 0.15625rem; /* 2.5px */
    transition:
      transform 0.2s ease,
      fill 0.2s ease;
  }

  &.btn-like:hover {
    color: #e0245e;
    svg {
      fill: #e0245e;
      transform: scale(1.1);
    }
  }

  &.btn-comment:hover {
    color: #4e54c8;
    svg {
      fill: rgba(78, 84, 200, 0.1);
      transform: scale(1.1);
    }
  }
}

.spotify-grid {
  max-width: var(--max-width);
  justify-content: center;
  margin: 1.875rem auto 3.75rem; /* 30px 60px */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem; /* 20px */

  .spotify-playlist {
    width: 100%;
    display: flex;
  }
}

/* ==========================================================================
   7. SERVICIOS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); /* 300px */
  gap: 1.25rem; /* 20px */
  max-width: var(--max-width);
  margin: 2.5rem auto; /* 40px */
}

@media (max-width: 60.5rem) {
  /* 968px */
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: linear-gradient(135deg, #f0f0f0, #e4e4e4, #f5f5f5, #f0f0f0);
  border-radius: 1.5rem; /* 24px */
  padding: 1.25rem; /* 20px */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.card-image-box {
  height: 18.75rem; /* 300px */
  border-radius: 1rem; /* 16px */
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem; /* 24px */
}

.card-1 .card-image-box,
.card-2 .card-image-box,
.card-3 .card-image-box {
  background-image: url("assets/plano1.png");
  background-size: cover;
  background-position: center;
}

.card-image-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 30%,
    transparent 60%
  );
  pointer-events: none;
}

.service-content h3 {
  font-size: 2.5rem; /* 40px */
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1rem; /* 16px */
  letter-spacing: -0.03125rem; /* -0.5px */
}

.service-content ul {
  font-size: 1.125rem; /* 18px */
  line-height: 1.4;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1.75rem; /* 28px */
}

.btn-learn-more {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.625rem 1.25rem; /* 10px 20px */
  border-radius: 3.125rem; /* 50px */
  font-size: 1.125rem; /* 18px */
  font-weight: 500;
  cursor: pointer;
  width: fit-content;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.btn-learn-more:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   8. BARRA FLOTANTE
   ========================================================================== */
.scroll-floating-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(7, 7, 7, 0.95);
  backdrop-filter: blur(0.625rem); /* 10px */
  color: var(--bg-primary);
  padding: 0.75rem 2.5rem; /* 12px 40px */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transform: translateY(-100%);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.4s ease;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.2); /* 4px 20px */
}

.scroll-floating-bar.visible {
  transform: translateY(0);
  opacity: 1;
}

.floating-logo-link {
  display: flex;
  align-items: center;
}

.scroll-floating-bar .floating-logo {
  height: 1.625rem; /* 26px */
  width: auto;
  display: block;
}

.floating-nav-links {
  display: flex;
  gap: 2.1875rem; /* 35px */
}

.floating-nav-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.floating-nav-links a:hover {
  color: var(--bg-primary);
}

.scroll-floating-bar .floating-btn {
  background-color: var(--bg-primary);
  color: #1a1a1a;
  padding: 0.5rem 1.25rem; /* 8px 20px */
  border-radius: 0.375rem; /* 6px */
  font-weight: 600;
  font-size: 1.4rem;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.scroll-floating-bar .floating-btn:hover {
  background-color: rgba(7, 7, 7, 0.95);
  color: var(--bg-primary);
  transform: translateY(-0.0625rem); /* -1px */
}

/* Nota: el ajuste responsivo de .scroll-floating-bar y .floating-nav-links
   se consolidó en la media query general de la sección 15 (evita reglas
   @media (max-width: 48rem) duplicadas). */

/* ==========================================================================
   9. BARRA DE PROGRESO DE LECTURA
   ========================================================================== */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.1875rem; /* 3px */
  background: transparent;
  z-index: 1002;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--bg-primary);
  transition: width 0.05s ease-out;
}

/* ==========================================================================
   10. PIE DE PÁGINA (FOOTER) Y ELEMENTOS FLOTANTES
   ========================================================================== */
.main-footer {
  background-color: var(--bg-dark);
  color: var(--bg-primary);
  padding: 5rem 0 2.5rem; /* 80px 0 40px */
  width: 100%;
  font-family: inherit;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3.75rem; /* 60px */
  position: relative;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1.875rem; /* 30px */
}

.footer-seal-wrapper .sello {
  width: 10.625rem; /* 170px */
  height: 10.625rem; /* 170px */
  will-change: transform;
  animation: rotarSello 20s linear infinite;
}

.footer-brand-nav {
  display: flex;
  flex-direction: column;
  gap: 1.875rem; /* 30px */
}
.footer-logo {
  color: var(--bg-primary);
  margin-bottom: 1.25rem; /* 20px */
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(11.25rem, auto)); /* 180px */
  gap: 3.75rem; /* 60px */
}

.footer-column {
  h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.9375rem; /* 15px */
    color: var(--bg-primary);
  }
  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    li a {
      color: #e0e0e0;
      text-decoration: none;
      font-size: 1.6rem;
      font-weight: 400;
      transition: color 0.2s ease;
      display: inline-block;

      &:hover {
        color: var(--text-primary);
      }
      span {
        font-weight: 400;
        opacity: 0.7;
        margin-right: 0.125rem; /* 2px */
      }
    }
  }
}

.footer-socials {
  display: flex;
  gap: 1rem; /* 16px */
  margin-bottom: 3.125rem; /* 50px */

  .social-icon {
    width: 3.25rem; /* 52px */
    height: 3.25rem; /* 52px */
    background-color: #121212;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-primary);
    font-size: 2rem;
    text-decoration: none;
    transition:
      transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
      background-color 0.2s;

    &:hover {
      background-color: #1a1a1a;
      transform: translateY(-0.1875rem); /* -3px */
    }
  }
}

.footer-bottom {
  border-top: 0.0625rem solid #1a1a1a; /* 1px */
  padding-top: 1.875rem; /* 30px */
  display: flex;
  flex-direction: column;
  gap: 0.625rem; /* 10px */

  .copyright {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03125rem; /* 0.5px */
    margin: 0;
    color: var(--bg-primary);
  }
  .legal-text {
    font-size: 1.1rem;
    line-height: 1.3;
    color: #888888;
    max-width: 56.25rem; /* 900px */
    margin: 0;
  }
}

#scrollTopBtn {
  position: fixed;
  bottom: 1.875rem; /* 30px */
  right: 1.875rem; /* 30px */
  display: none;
  z-index: 99;
  width: 4rem; /* 64px */
  height: 4rem; /* 64px */
  padding: 0;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;
  background-color: var(--text-primary);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M18 15l-6-6-6 6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.375rem 1.375rem; /* 22px */
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.15); /* 4px 10px */
  transition:
    opacity 0.3s ease,
    transform 0.2s ease,
    background-color 0.2s ease;

  &:hover {
    transform: translateY(-0.1875rem); /* -3px */
    background-color: #333333;
  }
}

/* ==========================================================================
   11. SECCIÓN DE CONTACTO & FORMULARIO FEE DE DISEÑO
   ========================================================================== */
.contact-main {
  max-width: var(--max-width);
  margin: 2.5rem auto 5rem; /* 40px 80px */
  padding: 0 1.25rem; /* 20px */
}

.contact-hero {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 5rem 3.75rem; /* 80px 60px */
  box-sizing: border-box;
}

.contact-container {
  width: 100%;
}

.contact-header-content {
  max-width: 50rem; /* 800px */
  margin-bottom: 3.75rem; /* 60px */

  .contact-tag {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.0625rem; /* 1px */
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.25rem; /* 20px */
  }

  h1 {
    font-size: clamp(3.2rem, 5vw, 5.6rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.09375rem; /* -1.5px */
    margin-bottom: 1.5625rem; /* 25px */
    color: var(--text-primary);

    span {
      font-weight: 300;
      color: #555555;
    }
  }

  p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 40.625rem; /* 650px */
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.75rem; /* 60px */
  align-items: flex-start;
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* 40px */
  background-color: var(--bg-primary);
  padding: 3.125rem; /* 50px */
  border-radius: 0.75rem; /* 12px */
  height: 100%;
}

.info-block {
  h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.625rem; /* 10px */
    color: var(--text-primary);
  }

  p,
  a {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
  }

  a:hover {
    color: var(--text-primary);
    text-decoration: underline;
  }
}

.contact-social-links {
  display: flex;
  gap: 1.25rem; /* 20px */
  flex-wrap: wrap;

  a {
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 0.0625rem solid var(--text-primary); /* 1px */
    padding-bottom: 0.125rem; /* 2px */
  }
}

.contact-form-side {
  background-color: var(--bg-primary);
  padding: 3.125rem; /* 50px */
  border-radius: 0.75rem; /* 12px */
}

.cool-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.875rem; /* 30px */
}

.form-step-title {
  display: flex;
  align-items: center;
  gap: 0.9375rem; /* 15px */
  margin-bottom: -0.9375rem; /* -15px */

  span {
    background-color: var(--bg-dark);
    color: var(--bg-primary);
    font-size: 1.1rem;
    font-weight: 700;
    width: 1.75rem; /* 28px */
    height: 1.75rem; /* 28px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 0rem;
    padding: 1.2rem 1.1rem 1rem 1.1rem; /* 32px */
  }

  label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
  }
}

.input-group {
  width: 100%;

  input,
  textarea,
  select {
    width: 100%;
    padding: 1.125rem 1.25rem; /* 18px 20px */
    background-color: var(--bg-secondary);
    border: 0.0625rem solid transparent; /* 1px */
    border-radius: 0.5rem; /* 8px */
    font-family: var(--font-titles);
    font-size: 1.25rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;

    &::placeholder {
      color: #999999;
    }

    &:focus {
      background-color: var(--bg-primary);
      border-color: var(--text-primary);
      box-shadow: 0 0 0 0.1875rem rgba(0, 0, 0, 0.05); /* 3px */
    }
  }

  textarea {
    resize: vertical;
    min-height: 7.5rem; /* 120px */
  }
}

.service-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem; /* 12px */
}

.chip-card {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem; /* 16px */
  background-color: var(--bg-secondary);
  border: 0.0625rem solid transparent; /* 1px */
  border-radius: 0.5rem; /* 8px */
  text-align: center;
  transition: all 0.25s ease;

  input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
  }

  span {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    user-select: none;
  }

  &:hover {
    background-color: #e4e4e4;
  }

  input[type="checkbox"]:checked + span {
    font-weight: 700;
  }
}

.chip-card:has(input[type="checkbox"]:checked) {
  background-color: var(--text-primary);
  border-color: var(--text-primary);

  span {
    color: var(--bg-primary);
  }
}

.submit-project-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-dark);
  color: var(--bg-primary);
  border: none;
  width: 100%;
  padding: 1.375rem 1.875rem 1rem 1rem; /* 22px 30px */
  border-radius: 0.5rem; /* 8px */
  font-family: var(--font-titles);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03125rem; /* 0.5px */
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  margin-top: 0.625rem; /* 10px */

  .btn-arrow {
    font-size: 1.6rem;
    transition: transform 0.3s ease;
  }

  &:hover {
    background-color: #292929;

    .btn-arrow {
      transform: translateX(0.375rem); /* 6px */
    }
  }
}

/* ==========================================================================
   12. REFORZAMIENTO CORPORATIVO & FILTRO DE CLIENTES GRANDES
   ========================================================================== */
.contact-hero .contact-header-content p::after {
  display: block;
  margin-top: 0.625rem; /* 10px */
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.9;
}

.input-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.25rem center; /* 20px */
  background-size: 1.125rem; /* 18px */
  cursor: pointer;
}

/* ==========================================================================
   13. ESTADO DE ÉXITO DE CONTACTO CORPORATIVO
   ========================================================================== */
.form-success-message {
  background-color: var(--bg-primary);
  padding: 3.75rem; /* 60px */
  border-radius: 0.75rem; /* 12px */
  text-align: center;
  border: 0.0625rem solid var(--text-primary); /* 1px */
  animation: fadeInSuccess 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;

  h3 {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.03125rem; /* -0.5px */
    margin-bottom: 0.9375rem; /* 15px */
    color: var(--text-primary);
  }

  p {
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 31.25rem; /* 500px */
    margin: 0 auto;
  }
}

@keyframes fadeInSuccess {
  from {
    opacity: 0;
    transform: translateY(0.625rem); /* 10px */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   14. FULLSCREEN MENU OVERLAY
   ========================================================================== */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  overflow-y: auto;
}

.fullscreen-menu.is-active {
  opacity: 1;
  visibility: visible;
}

.menu-content-wrapper {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 3.125rem 2.5rem 5rem 2.5rem; /* 50px 40px 80px 40px */
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.75rem; /* 60px */
  min-height: 100%;
  align-items: center;
}

.menu-left-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 46.875rem; /* 750px */
}
.menu-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.close-btn {
  background: var(--bg-primary);
  color: var(--bg-dark);
  border: none;
  font-family: var(--font-titles);
  font-weight: 700;
  padding: 0.625rem 1.5rem 0.4375rem 1.5rem; /* 10px 24px 7px 24px */
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 3.125rem; /* 50px */
  letter-spacing: 0.01875rem; /* 0.3px */
  transition: background 0.2s;
}

.close-btn:hover {
  background: #e0e0e0;
}

.menu-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* 12px */
  margin: 1.875rem 0; /* 30px */
}
.menu-nav-links a {
  color: var(--bg-primary);
  text-decoration: none;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.0625rem; /* -1px */
  transition: opacity 0.2s;
}

.menu-nav-links a:hover {
  opacity: 0.6;
}

.menu-footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* 20px */
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.15); /* 1px */
  padding-top: 1.875rem; /* 30px */
  margin-bottom: 1.25rem; /* 20px */
}

.menu-tagline {
  font-size: 1.4rem;
  letter-spacing: 0.03125rem; /* 0.5px */
}
.menu-socials {
  display: flex;
  gap: 1.5625rem; /* 25px */
  flex-wrap: wrap;
}
.menu-socials a,
.menu-contact-details p,
.menu-contact-details a {
  color: var(--bg-primary);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
}
.menu-socials a:hover,
.menu-contact-details a:hover {
  text-decoration: underline;
}
.menu-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem; /* 5px */
}
.menu-right-pane {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-image-container {
  width: 100%;
  height: 80vh;
  max-height: 43.75rem; /* 700px */
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.5); /* 20px 40px */
}

.menu-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   15. MEDIA QUERIES · HEADER Y FOOTER
   Alineado con la estructura de breakpoints de category.css
   (tablet 64rem · tablet pequeña 48rem · móvil 30rem)
   ========================================================================== */

@media (max-width: 64rem) {
  /* 1024px — Tablet */
  header.main-header,
  .footer-container {
    max-width: min(var(--max-width), calc(100% - 3rem));
  }
  .circle-graphic {
    padding-right: 5rem;
  }
  .main-nav {
    gap: 1.875rem; /* 30px */
  }
  .menu-content-wrapper {
    grid-template-columns: 1fr 0.85fr;
    gap: 2.5rem; /* 40px */
  }
  .menu-image-container {
    height: 70vh;
  }
}

@media (max-width: 48rem) {
  /* 768px — Tablet pequeña */
  header.main-header {
    max-width: calc(100% - 3rem);
    margin: 1.875rem auto; /* 30px */
    flex-direction: column;
    align-items: center;
    gap: 1.5625rem; /* 25px */
  }
  .logo-container {
    justify-content: center;
  }
  .logo-container .logo {
    content: url("assets/header/logoquery.svg");
  }
  .circle-graphic {
    padding-right: 0;
  }
  .circle-graphic .sello {
    width: 7.5rem;
    height: 7.5rem; /* 120px */
  }
  nav.main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem; /* 16px */
  }

  .footer-container {
    max-width: calc(100% - 3rem);
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem; /* 40px */
  }
  .footer-brand-nav {
    align-items: center;
  }
  .footer-links-grid {
    /* grid-template-columns:1fr además de justify-items:center, ya que
       el footer de esta página usa 2 columnas de enlaces (Categorías/General)
       que en category.css no existen — se mantiene el ajuste propio. */
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.875rem; /* 30px */
  }
  .footer-column ul {
    align-items: center;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-bottom {
    text-align: center;
  }
}

@media (max-width: 30rem) {
  /* 480px — Móvil */
  header.main-header,
  .footer-container {
    max-width: calc(100% - 2rem);
  }
  header.main-header {
    margin: 1.5rem auto; /* 24px */
  }
  .logo-container .logo {
    width: 10rem; /* 160px */
  }
  nav.main-nav {
    gap: 0.625rem; /* 10px */
  }
  .main-nav a {
    font-size: 1.2rem;
  }
  .main-nav .menu-btn,
  .language-selector {
    padding: 0.5rem 1.25rem; /* 8px 20px */
    font-size: 1.4rem;
  }

  .footer-links-grid {
    gap: 2.5rem; /* 40px */
  }
  .footer-column ul li a {
    font-size: 1.4rem;
  }
  .footer-seal-wrapper .sello {
    width: 6.875rem;
    height: 6.875rem; /* 110px */
  }
}

/* ==========================================================================
   16. MEDIA QUERIES (RESPONSIVE) · RESTO DE SECCIONES
   ========================================================================== */

/* 2. MEDIA QUERY PARA MÓVIL (Consolidación de <1024px, <768px y <480px) */
@media screen and (max-width: 48rem) {
  /* 768px hacia abajo */
  /* Contenedores y Márgenes (header y footer se resuelven en su propio
     bloque de breakpoints, alineado con category.css — ver sección 15) */
  .hero-banner,
  .featured-grid,
  .section-title-container,
  .recent-section-grid,
  .spotify-grid {
    max-width: 100%;
    padding-left: 1rem; /* 16px */
    padding-right: 1rem; /* 16px */
  }

  .wide-banner {
    /* Ancho explícito (igual criterio que category.css) en vez de
       margin-left/right + width:auto, que dejaba el banner con un
       hueco lateral inconsistente frente al resto de secciones. */
    width: calc(100% - 2rem);
    height: auto;
    min-height: 17.5rem; /* 280px */
    padding: 2.5rem 1.5rem; /* 40px 24px */
  }

  /* Grillas Estructurales */
  .featured-grid,
  .recent-section-grid,
  .shoutbox-list,
  .spotify-grid,
  .contact-grid,
  .service-chips-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem; /* 40px */
  }
  .grid-card {
    padding: 2.5rem; /* 40px */
    min-height: 20rem; /* 320px */
  }

  /* Tarjetas de Posts */
  .post-item {
    /* Sin align-items: flex-start. Al pasar a flex-direction:column el eje
       cruzado pasa a ser horizontal; flex-start impedía que .post-item-content
       (que depende de flex-grow:1, pensado para el layout en fila) se
       estirara a todo el ancho de la tarjeta. Con el stretch por defecto,
       el bloque de texto vuelve a ocupar el 100% del ancho, igual que la imagen. */
    height: auto;
    flex-direction: column;
    gap: 0.9375rem; /* 15px */
    padding-bottom: 1.25rem; /* 20px */
  }
  .post-item .post-item-image {
    width: 100% !important;
    height: 12.5rem; /* 200px */
  }
  .post-item-content {
    padding: 0 1.25rem; /* 20px */
  }

  /* Tipografía Adaptativa */
  .hero-content h2 {
    font-size: 3rem;
    text-align: center;
    margin: 0 auto;
  }
  .hero-content p {
    text-align: center;
    margin: 0 auto;
    padding-left: 0;
  }
  .hero-btn {
    margin: 0 auto;
  }
  .post-principaltitle {
    font-size: 5rem;
  }
  .post-title {
    font-size: 2.4rem;
  }
  .overlay-title {
    font-size: 2.8rem;
  }
  .post-titleblack {
    font-size: 4rem;
  }
  .wide-banner h2 {
    font-size: 3.4rem;
  }
  .wide-banner p {
    font-size: 1.2rem;
    padding-right: 0;
  }
  .featured-recent .featured-recent-title,
  .featured-recent-title {
    font-size: 1.8rem;
  }

  /* Detalles Visuales */
  .circle-graphic .sello {
    width: 7.5rem;
    height: 7.5rem; /* 120px */
  }
  .project-overlay {
    padding: 1.875rem; /* 30px */
  }
  .grid-card.text-card.visual-hover-card .overlay-text,
  .grid-card .overlay-text,
  .text-card .overlay-text,
  .visual-hover-card .overlay-text {
    display: block;
  }
  .featured-recent-body {
    padding: 1.5625rem 1.25rem; /* 25px 20px */
  }

  /* Menú Fullscreen */
  .menu-content-wrapper {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem 3.75rem 1.5rem; /* 40px 24px 60px 24px */
  }
  .menu-right-pane {
    display: none;
  }
  .menu-left-pane {
    min-height: auto;
    gap: 2.5rem; /* 40px */
  }
  .menu-nav-links a {
    font-size: 3.5rem;
  }

  /* Elementos de Interfaz / Flotantes */
  .search-input {
    width: 100%;
    font-size: 1.4rem;
    padding: 0.5rem 0.625rem; /* 8px 10px */
  }
  .scroll-floating-bar {
    padding: 0.75rem 1.25rem; /* 12px 20px */
  }
  .floating-nav-links {
    display: none;
  }
  .contact-hero {
    padding: 2.5rem 1.25rem; /* 40px 20px */
  }
  .contact-info-side,
  .contact-form-side {
    padding: 2.1875rem; /* 35px */
  }
  /* El bloque de Footer se resolvió en la sección 15, junto con Header,
     alineado a los breakpoints de category.css. */
}