/* ==========================================================================
   NON STATE · CATEGORY
   CSS optimizado, ordenado y responsive
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN GENERAL
   ========================================================================== */

: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;
  --max-width: 93.75rem;

  --space-xs: 0.3125rem;
  --space-sm: 0.625rem;
  --space-md: 1.25rem;
  --space-lg: 1.875rem;
  --space-xl: 2.5rem;
  --space-2xl: 3.75rem;
  --space-3xl: 5rem;

  --font-titles: "League Spartan", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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;
  display: inline-block;
  text-decoration: none;
}

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

/* ==========================================================================
   2. BANDA SUPERIOR
   ========================================================================== */

.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.75rem 0;
  box-sizing: border-box;
  background-color: #000000;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.00625rem;
}

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

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

.dot {
  font-size: 1.25rem;
}

@keyframes scrollMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-33.333%);
  }
}

/* ==========================================================================
   3. HEADER Y NAVEGACIÓN
   ========================================================================== */

header.main-header {
  width: min(var(--max-width), calc(100% - 3rem));
  margin: 2.5rem auto 1.875rem;
  padding: 0.625rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  background-color: var(--bg-primary);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo-container .logo {
  width: 11.875rem;
}

.logo-container .eslogan {
  width: 8.75rem;
  margin-top: 1.5625rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.8125rem;
}

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

.main-nav a:hover {
  text-decoration: underline;
}

.main-nav .menu-btn {
  padding: 0.625rem 1.875rem 0.5rem;
  border: 0;
  border-radius: 0 0.375rem 0 0;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.main-nav .menu-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

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

.circle-graphic .sello {
  width: 8.125rem;
  height: 8.125rem;
  will-change: transform;
  animation: rotarSello 20s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   4. TÍTULOS DE SECCIÓN
   ========================================================================== */

.section-title-container {
  width: min(var(--max-width), calc(100% - 3rem));
  margin: 3.125rem auto 1.875rem;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

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

.negrita {
  font-weight: 600;
}

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

/* ==========================================================================
   5. GRILLA INTERIOR · BANNER ANCHO
   ========================================================================== */

.interior-grid {
  width: min(var(--max-width), calc(100% - 3rem));
  margin: 0 auto 3.125rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.interior-grid .grid-card {
  position: relative;
  width: 100%;
  height: 21.25rem;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  color: #ffffff;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   6. GRILLAS RETAIL Y 3D
   ========================================================================== */

.retail-grid {
  width: min(var(--max-width), calc(100% - 3rem));
  margin: 0 auto 3.125rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.retail-grid .grid-card {
  position: relative;
  width: 100%;
  height: 25rem;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  color: #ffffff;
}

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

.grid-card.image-card .card-link {
  display: block;
  width: 100%;
  height: 100%;
}

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

/* ==========================================================================
   7. OVERLAYS DE PROYECTOS
   ========================================================================== */

.project-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 3.125rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  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: #ffffff;
  transform: translateY(1.25rem);
  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 {
  margin-bottom: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.8rem;
  font-weight: 300;
}

.overlay-year {
  font-weight: 600;
}

.overlay-views {
  font-weight: 400;
}

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

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

.grid-card.image-card:hover .project-overlay {
  opacity: 1;
}

.grid-card.image-card:hover .overlay-content {
  transform: translateY(0);
}

.grid-card.image-card:hover > img,
.grid-card.image-card:hover .card-link > img {
  transform: scale(1.03);
}

/* ==========================================================================
   8. TARJETAS VISUALES ADICIONALES
   ========================================================================== */

.card-default-content {
  width: 100%;
  height: 100%;
  padding: 3.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  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% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.card-hover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.35);
  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;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 3.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  z-index: 3;
}

.text-card-overlay .overlay-content {
  color: #ffffff;
  transform: translateY(1.25rem);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.visual-hover-card:hover .card-hover-bg {
  opacity: 1;
  transform: scale(1.03);
}

.visual-hover-card:hover .text-card-overlay {
  opacity: 1;
}

.visual-hover-card:hover .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);
}

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

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

.smart-hover-card .card-divider {
  width: 100%;
  height: 0.125rem;
  border: 0;
  background-color: rgba(255, 255, 255, 0.15);
  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;
}

.smart-hover-card: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);
}

.smart-hover-card:hover .post-titleblack {
  transform: translateY(-0.3125rem) scale(1.02);
}

.smart-hover-card:hover .card-divider {
  background-color: rgba(255, 255, 255, 0.7);
  transform: scaleX(1);
}

/* ==========================================================================
   9. BANNER ANCHO
   ========================================================================== */

.wide-banner {
  position: relative;
  width: min(var(--max-width), calc(100% - 3rem));
  height: 20rem;
  margin: 0 auto 1.25rem;
  padding: 3.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--border-radius);
  color: #ffffff;
}

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

.wide-banner .banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition:
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.6s ease,
    opacity 0.5s ease;
}

.wide-banner .banner-img:first-of-type {
  z-index: 1;
  opacity: 1;
}

.wide-banner .banner-img.hover-img {
  z-index: 0;
  opacity: 0;
}

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

.wide-banner p {
  max-width: 40.625rem;
  padding-right: 3.75rem;
  color: #dddddd;
  font-size: 1.3rem;
  line-height: 1.4;
}

.wide-banner h2 {
  margin-bottom: 0.625rem;
  font-size: 4.6rem;
  font-weight: 300;
  line-height: 1;
}

.wide-banner h2 span {
  font-weight: 600;
}

.wide-banner:hover .banner-img:first-of-type {
  opacity: 0;
  transform: scale(1.02);
  filter: brightness(0.4);
}

.wide-banner:hover .banner-img.hover-img {
  opacity: 1;
  z-index: 2;
  transform: scale(1.02);
  filter: brightness(0.4);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.main-footer {
  width: 100%;
  padding: 5rem 0 2.5rem;
  background-color: #000000;
  color: #ffffff;
  font-family: inherit;
}

.footer-container {
  width: min(var(--max-width), calc(100% - 3rem));
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 3.75rem;
}

.footer-brand-nav {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}

.footer-logo {
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: minmax(11.25rem, auto) minmax(11.25rem, auto);
  gap: 3.75rem;
}

.footer-column h3 {
  margin-bottom: 0.9375rem;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 600;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column ul li a {
  display: inline-block;
  color: #e0e0e0;
  font-size: 1.6rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: var(--text-primary);
}

.footer-column ul li a span {
  margin-right: 0.125rem;
  opacity: 0.7;
  font-weight: 400;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.125rem;
}

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

.social-icon:hover {
  background-color: #1a1a1a;
  transform: translateY(-0.1875rem);
}

.footer-seal-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-seal-wrapper .sello {
  width: 8.125rem;
  height: 8.125rem;
  will-change: transform;
  animation: rotarSello 20s linear infinite;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-top: 1.875rem;
  border-top: 0.0625rem solid #1a1a1a;
}

.copyright {
  margin: 0;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03125rem;
}

.legal-text {
  max-width: 56.25rem;
  margin: 0;
  color: #888888;
  font-size: 1.1rem;
  line-height: 1.3;
}

/* ==========================================================================
   11. MENÚ FULLSCREEN
   ========================================================================== */

.fullscreen-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: var(--bg-dark);
  color: var(--bg-primary);
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

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

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

.menu-left-pane {
  height: 100%;
  min-height: 46.875rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-header-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-btn {
  padding: 0.625rem 1.5rem 0.4375rem;
  border: 0;
  border-radius: 3.125rem;
  background: var(--bg-primary);
  color: var(--bg-dark);
  font-family: var(--font-titles);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01875rem;
  cursor: pointer;
  transition: background 0.2s;
}

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

.menu-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.875rem 0;
}

.menu-nav-links a {
  color: var(--bg-primary);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.0625rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

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

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

.menu-tagline {
  font-size: 1.4rem;
  letter-spacing: 0.03125rem;
}

.menu-socials {
  display: flex;
  gap: 1.5625rem;
  flex-wrap: wrap;
}

.menu-socials a,
.menu-contact-details p,
.menu-contact-details a {
  color: var(--bg-primary);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
}

.menu-socials a:hover,
.menu-contact-details a:hover {
  text-decoration: underline;
}

.menu-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
}

.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;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.5);
}

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

/* ==========================================================================
   12. BOTÓN VOLVER ARRIBA
   ========================================================================== */

#scrollTopBtn {
  position: fixed;
  right: 1.875rem;
  bottom: 1.875rem;
  display: none;
  width: 4rem;
  height: 4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: none;
  background-color: #111111;
  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;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 99;
  transition:
    opacity 0.3s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

#scrollTopBtn:hover {
  background-color: #333333;
  transform: translateY(-0.1875rem);
}

/* ==========================================================================
   13. BARRA FLOTANTE
   ========================================================================== */

.scroll-floating-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(7, 7, 7, 0.95);
  backdrop-filter: blur(0.625rem);
  color: #ffffff;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.2);
  transform: translateY(-100%);
  opacity: 0;
  z-index: 1000;
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.4s ease;
}

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

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

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

.floating-nav-links {
  display: flex;
  gap: 2.1875rem;
}

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

.floating-nav-links a:hover {
  color: #ffffff;
}

.scroll-floating-bar .floating-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  background-color: #ffffff;
  color: #1a1a1a;
  font-size: 1.4rem;
  font-weight: 600;
  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: #ffffff;
  transform: translateY(-0.0625rem);
}

/* ==========================================================================
   14. BARRA DE PROGRESO
   ========================================================================== */

.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.1875rem;
  background: transparent;
  pointer-events: none;
  z-index: 1002;
}

.reading-progress-bar {
  width: 0%;
  height: 100%;
  background-color: #ffffff;
  transition: width 0.05s ease-out;
}

/* ==========================================================================
   15. RESPONSIVE · TABLET
   ========================================================================== */

@media (max-width: 64rem) {
  header.main-header,
  .section-title-container,
  .interior-grid,
  .retail-grid,
  .wide-banner,
  .footer-container {
    width: min(100% - 3rem, var(--max-width));
  }

  .circle-graphic {
    padding-right: 5rem;
  }

  .main-nav {
    gap: 1.875rem;
  }

  .menu-content-wrapper {
    grid-template-columns: 1fr 0.85fr;
    gap: 2.5rem;
  }

  .menu-image-container {
    height: 70vh;
  }
}

/* ==========================================================================
   16. RESPONSIVE · TABLET PEQUEÑA
   ========================================================================== */

@media (max-width: 48rem) {
  header.main-header {
    width: calc(100% - 3rem);
    margin: 1.875rem auto;
    flex-direction: column;
    align-items: center;
    gap: 1.5625rem;
  }

  .logo-container {
    justify-content: center;
  }

  .logo-container img {
    content: url("assets/header/logoquery.svg");
  }

  .circle-graphic {
    padding-right: 0;
  }

  .circle-graphic .sello {
    width: 7.5rem;
    height: 7.5rem;
  }

  nav.main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .section-title-container {
    width: calc(100% - 3rem);
    margin-top: 2.5rem;
  }

  .section-title-inline {
    font-size: 2rem;
  }

  .interior-grid,
  .retail-grid {
    width: calc(100% - 3rem);
  }

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

  .interior-grid .grid-card {
    height: 20rem;
  }

  .retail-grid .grid-card {
    height: 25rem;
  }

  .project-overlay {
    padding: 1.875rem;
  }

  .overlay-title {
    font-size: 3.2rem;
  }

  .overlay-subtitle {
    font-size: 1.5rem;
  }

  .overlay-text {
    font-size: 1.15rem;
  }

  .overlay-footer {
    font-size: 1rem;
  }

  .wide-banner {
    width: calc(100% - 3rem);
    height: auto;
    min-height: 17.5rem;
    padding: 2.5rem 1.5rem;
  }

  .wide-banner h2 {
    font-size: 3.4rem;
  }

  .wide-banner p {
    padding-right: 0;
    font-size: 1.2rem;
  }

  .card-default-content,
  .text-card-overlay {
    padding: 2.5rem;
  }

  .footer-container {
    width: calc(100% - 3rem);
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
  }

  .footer-brand-nav {
    align-items: center;
  }

  .footer-links-grid {
    justify-items: center;
    gap: 1.875rem;
  }

  .footer-column ul {
    align-items: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-bottom {
    text-align: center;
  }

  .menu-content-wrapper {
    min-height: auto;
    padding: 1.875rem 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
  }

  .menu-left-pane {
    min-height: auto;
    height: auto;
    gap: 1.5rem;
  }

  .menu-nav-links {
    margin: 1.25rem 0;
  }

  .menu-nav-links a {
    font-size: clamp(2.8rem, 11vw, 4.5rem);
  }

  .menu-right-pane {
    height: auto;
  }

  .menu-image-container {
    height: 50vh;
    max-height: 31.25rem;
  }

  .scroll-floating-bar {
    padding: 0.75rem 1.25rem;
  }

  .floating-nav-links {
    display: none;
  }
}

/* ==========================================================================
   17. RESPONSIVE · MÓVIL
   ========================================================================== */

@media (max-width: 30rem) {
  header.main-header,
  .section-title-container,
  .interior-grid,
  .retail-grid,
  .wide-banner,
  .footer-container {
    width: calc(100% - 2rem);
  }

  header.main-header {
    margin: 1.5rem auto;
  }

  .logo-container .logo {
    width: 10rem;
  }

  nav.main-nav {
    gap: 0.625rem;
  }

  .main-nav a {
    font-size: 1.2rem;
  }

  .main-nav .menu-btn {
    padding: 0.5rem 1.25rem;
    font-size: 1.4rem;
  }

  .section-title-container {
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .section-title-inline {
    font-size: 1.7rem;
  }

  .interior-grid .grid-card {
    height: 16rem;
  }

  .retail-grid .grid-card {
    height: 22rem;
  }

  .project-overlay {
    padding: 1.25rem;
  }

  .overlay-title {
    font-size: clamp(2.4rem, 11vw, 2.8rem);
  }

  .overlay-subtitle {
    margin-bottom: 0.625rem;
    font-size: 1.25rem;
  }

  .overlay-text {
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  .overlay-footer {
    flex-wrap: wrap;
    font-size: 0.875rem;
  }

  .wide-banner {
    min-height: 15rem;
    padding: 2rem 1.25rem;
  }

  .wide-banner h2 {
    font-size: 2.8rem;
  }

  .wide-banner p {
    font-size: 1.05rem;
  }

  .card-default-content,
  .text-card-overlay {
    padding: 1.5rem;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-column ul li a {
    font-size: 1.4rem;
  }

  .footer-seal-wrapper .sello {
    width: 6.875rem;
    height: 6.875rem;
  }

  #scrollTopBtn {
    right: 1rem;
    bottom: 1rem;
    width: 3.5rem;
    height: 3.5rem;
  }

  .menu-content-wrapper {
    padding: 1.25rem 1rem 2rem;
    gap: 1.5rem;
  }

  .close-btn {
    font-size: 1.2rem;
  }

  .menu-footer-info {
    gap: 1rem;
  }

  .menu-socials {
    gap: 1rem;
  }

  .menu-socials a,
  .menu-contact-details p,
  .menu-contact-details a {
    font-size: 1rem;
  }

  .menu-image-container {
    height: 38vh;
  }
}

/* ==========================================================================
   18. DISPOSITIVOS TÁCTILES
   Mantiene visible la información de las tarjetas cuando no existe hover.
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
  .grid-card.image-card .project-overlay {
    opacity: 1;
  }

  .grid-card.image-card .overlay-content {
    transform: translateY(0);
  }

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

  .visual-hover-card .card-hover-bg,
  .visual-hover-card .text-card-overlay {
    opacity: 1;
  }

  .visual-hover-card .text-card-overlay .overlay-content {
    transform: translateY(0);
  }
}

/* ==========================================================================
   19. REDUCCIÓN DE MOVIMIENTO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
