/* Custom CSS Design System & Typography for Cecilia Acevedo Website */

/* Reset & Base Preflight */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}

:root {
  /* ==========================================================================
     SISTEMA CROMÁTICO OFICIAL (CANÓNICO 2026)
     ========================================================================== */
  /* Dominantes y Neutros de Superficie */
  --color-background: #111215;             /* Negro Carbón (Vacío 50%) */
  --color-surface: #111215;                /* Penumbra de Galería */
  --color-surface-dim: #0d0e10;
  --color-surface-container: #1b1c20;      /* Tarjetas y módulos */
  --color-surface-container-high: #24262b; /* Grafito Pizarra 3% */
  --color-surface-container-highest: #2d3036;

  /* Textos y Lectura (Lienzo Pedagógico) */
  --color-on-surface: #F3EFEA;             /* Lino Crudo / Hueso 35% */
  --color-on-surface-variant: #827E77;     /* Gris Arcilla 2% */
  --color-muted: #827E77;

  /* La Pastilla Roja (Acento y Conversión 10%) */
  --color-primary: #C4151C;               /* Rojo Italiano Oficial */
  --color-primary-container: #C4151C;     /* Botones de acción y CTA */
  --color-accent-cta: #C4151C;
  --color-outline: rgba(130, 126, 119, 0.25);
  --color-outline-variant: rgba(196, 21, 28, 0.3);
  --color-error: #ffb4ab;

  /* ==========================================================================
     SISTEMA TIPOGRÁFICO DE MARCA
     ========================================================================== */
  /* 1. Titulares y Display (La voz de la Obra) */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;

  /* 2. Cuerpo y UI (La voz de la Maestra - Sustituye a Outfit) */
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* 3. Datos Técnicos, Métricas y Cotas (La Matrix Tejeril) */
  --font-mono-data: "Space Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Aliases para compatibilidad */
  --font-headline-md: var(--font-display);
  --font-headline-lg: var(--font-display);
  --font-body-lg: var(--font-sans);
  --font-body-md: var(--font-sans);
  --font-label-sm: var(--font-sans);

  /* Layout Tokens */
  --margin-mobile: 20px;
  --margin-desktop: 64px;
  --container-max: 1440px;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-on-surface);
  overflow-x: hidden;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr:where([title]) {
  text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
  text-transform: none;
  margin: 0;
}

p {
  font-family: var(--font-sans);
  text-wrap: pretty;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b,
strong {
  font-weight: 600;
}

code,
kbd,
samp,
pre {
  font-family: var(--font-sans);
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea,
nav {
  font-family: var(--font-sans);
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  background: transparent;
}

button,
select {
  text-transform: none;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

:-moz-focusring {
  outline: auto;
}

:-moz-ui-invalid {
  box-shadow: none;
}

progress {
  vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}

[role="button"],
button {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

::selection {
  background-color: var(--color-primary);
  color: #F3EFEA;
}

/* ==========================================================================
   TYPOGRAPHY SYSTEM HIERARCHY
   ========================================================================== */

/* 1. HERO (nombre de la artista) */
.hero-title,
h1.hero-title,
.hero h1 {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: clamp(4.5rem, 14vw, 7.5rem) !important;
  line-height: 0.85 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
}

/* Hero Kicker / Subtítulo ("ARTISTA DE FIBRA" - aumentado en un 30%) */
.hero-kicker,
.hero-subtitle,
.hero .label,
.hero h2.label {
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  /* +30%: de 11px a ~14.3px (0.9rem) */
  font-weight: 500 !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
}

/* 2. H1 de página (Obras, Bio, Proyectos, Contacto, Fichas de Obra) */
h1:not(.hero-title),
.page-title,
.font-headline-lg:not(.hero-title) {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* 3. H2 de sección (aumentado en un 20%) */
h2:not(.label),
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 4.8vw, 4.5rem) !important;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: none;
}

/* 4. H3 (título de obra / item de lista - aumentado en un 30%) */
h3:not(.label),
.card-title,
.font-headline-md:not(.label) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.625rem, 2.6vw, 1.95rem) !important;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* H4 */
h4:not(.label) {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.5vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
}

/* 5. CITAS / FRASES CÉLEBRES / MANIFIESTO (aumentado en un 25%) */
blockquote,
blockquote p,
.quote,
.manifesto,
.project-quote {
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(2.15rem, 3.8vw, 2.85rem) !important;
  /* +25%: de 24px–32px a ~34px–45px */
  line-height: 1.3 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

blockquote cite,
.quote cite,
cite.label {
  font-family: var(--font-sans) !important;
  font-size: 0.85rem !important;
  font-style: normal !important;
  font-weight: 500 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  margin-top: 1.5rem !important;
  /* 24px de aire limpio entre la línea y el autor */
  display: block !important;
}

blockquote .h-\[1px\],
.quote .h-\[1px\] {
  margin-top: 2rem !important;
  margin-bottom: 1.5rem !important;
}

/* Footer Contacto Title (+2px -> 22px = 1.375rem) */
.footer-contact-title,
.footer-title {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: 1.375rem !important;
  /* 22px */
  line-height: 1.25 !important;
  text-transform: none;
}

/* Footer Artist Quote - exactly matches font-size of Contacto heading (1.375rem / 22px) */
.footer-quote {
  font-family: var(--font-display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 1.375rem !important;
  /* 22px */
  line-height: 1.4 !important;
  letter-spacing: normal !important;
}

/* 6. LOGO en header */
.logo,
.site-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  letter-spacing: 0.02em;
}

/* 7. LABEL / KICKER (clase .label general: 11px) */
.label,
.kicker,
.font-label-sm,
.text-label-sm {
  font-family: var(--font-sans);
  font-size: 0.6875rem !important;
  /* 11px */
  font-weight: 500 !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
}

/* Barra de Navegación Superior (Top Navbar Links) - aumentado en un 30% */
nav a.label,
nav .label,
nav button.label,
.nav-link,
.nav-dropdown-toggle,
nav .relative.group a.label,
#side-nav .label {
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  /* ~14.4px (+30% de 11px) */
  font-weight: 500 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
}

/* Hero Kicker / Subtítulo ("ARTISTA DE FIBRA" - aumentado en un 30%) */
.hero-kicker,
.hero-subtitle,
.hero .label,
.hero h2.label,
h2.hero-kicker,
h2.hero-kicker.label {
  font-family: var(--font-sans) !important;
  font-size: 0.95rem !important;
  /* ~15.2px (+30-38% de 11px) */
  font-weight: 500 !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
}

/* ==========================================================================
   FOOTER TYPOGRAPHY (+20% size on highlighted sections)
   ========================================================================== */

/* Círculo 1: Texto descriptivo bajo Contacto (+20% -> 1.05rem / 16.8px) */
footer .body-secondary,
footer p.body-secondary {
  font-family: var(--font-sans) !important;
  font-size: 1.05rem !important;
  /* +20%: de 14px (0.875rem) a 16.8px */
  line-height: 1.6 !important;
}

/* Círculo 2 & 3: Encabezados de columnas ("NAVEGACIÓN" & "¿TIENES UN PROYECTO EN MENTE?" - +20%) */
footer h4.label,
footer h4 {
  font-family: var(--font-sans) !important;
  font-size: 0.825rem !important;
  /* +20%: de 11px a 13.2px */
  font-weight: 500 !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase !important;
}

/* Círculo 2: Lista de enlaces de navegación del footer (+20%) */
footer ul li a,
footer ul a.label,
footer ul a {
  font-family: var(--font-sans) !important;
  font-size: 0.825rem !important;
  /* +20%: de 11px a 13.2px */
  font-weight: 500 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
}

/* Círculo 3: Botón "Cuéntanos tu proyecto" (+20% -> 1.05rem / 16.8px) */
footer .btn,
footer a.btn,
footer a.inline-block.border {
  font-family: var(--font-sans) !important;
  font-size: 1.05rem !important;
  /* +20%: de 14px (0.875rem) a 16.8px */
  letter-spacing: 0.04em !important;
  font-weight: 500 !important;
}

/* Correo y firma de autora en Footer (+20%) */
footer a[href^="mailto"].label,
footer .mt-8 .label {
  font-family: var(--font-sans) !important;
  font-size: 0.825rem !important;
  /* +20%: de 11px a 13.2px */
  letter-spacing: 0.22em !important;
  font-weight: 500 !important;
}

/* 8. CUERPO */
p,
.font-body-lg,
.body-text,
.body-lg {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.6;
}

/* 9. CUERPO SECUNDARIO / META */
.font-body-md,
.meta-text,
.body-secondary,
.text-meta,
.body-md {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Works Carousel Artwork Descriptions (+20% font size: 0.875rem * 1.20 = 1.05rem) */
#works-carousel .body-secondary,
#works-carousel p {
  font-size: 1.05rem !important;
  line-height: 1.55 !important;
}

/* Trayectoria Items (bio.html: Año +20% a 13.2px, Institución/Ubicación +20% a 16.8px) */
#trayectoria .label,
#trayectoria p.label {
  font-family: var(--font-sans) !important;
  font-size: 0.825rem !important;
  /* +20%: de 11px a 13.2px */
  font-weight: 500 !important;
  letter-spacing: 0.22em !important;
}

#trayectoria .body-secondary,
#trayectoria p.body-secondary,
#trayectoria ul li p:not(.label) {
  font-family: var(--font-sans) !important;
  font-size: 1.05rem !important;
  /* +20%: de 14px (0.875rem) a 16.8px */
  line-height: 1.55 !important;
}

/* 10. BOTONES */
button,
.btn,
[type='button'],
[type='reset'],
[type='submit'],
a.btn,
a.inline-block.border {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

/* 11. FOOTER LEGAL */
.footer-legal,
.legal {
  font-family: var(--font-sans);
  font-size: 0.75rem;
}

/* 12. STATS (4°, 50+, Gold, 20) */
.stats,
.stat-number,
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
}

/* Utility Font Families */
.font-display {
  font-family: var(--font-display);
}

.font-sans {
  font-family: var(--font-sans);
}

.font-headline-md {
  font-family: var(--font-display);
}

.font-headline-lg {
  font-family: var(--font-display);
}

.font-body-lg {
  font-family: var(--font-sans);
}

.font-body-md {
  font-family: var(--font-sans);
}

.font-label-sm {
  font-family: var(--font-sans);
}

.font-mono-data {
  font-family: var(--font-mono-data) !important;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 600;
}

.italic {
  font-style: italic;
}

.not-italic {
  font-style: normal;
}

.uppercase {
  text-transform: uppercase;
}

.text-\[10px\] {
  font-size: 10px;
  line-height: 14px;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-7xl {
  font-size: 4.5rem;
  line-height: 1;
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

.leading-none {
  line-height: 1;
}

.leading-tight {
  line-height: 1.25;
}

.leading-snug {
  line-height: 1.375;
}

.leading-normal {
  line-height: 1.5;
}

.leading-relaxed {
  line-height: 1.625;
}

.leading-loose {
  line-height: 2;
}

.tracking-tighter {
  letter-spacing: -0.05em;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-normal {
  letter-spacing: 0em;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.tracking-\[0\.2em\] {
  letter-spacing: 0.2em;
}

.tracking-\[0\.28em\] {
  letter-spacing: 0.28em;
}

.tracking-\[0\.4em\] {
  letter-spacing: 0.4em;
}

/* Colors */
.text-primary {
  color: var(--color-primary);
}

.text-primary-container {
  color: var(--color-primary-container);
}

.text-on-surface {
  color: var(--color-on-surface);
}

.text-on-surface-variant {
  color: var(--color-on-surface-variant);
}

.text-on-surface-variant\/60 {
  color: rgba(130, 126, 119, 0.6);
}

.text-on-surface-variant\/75 {
  color: rgba(130, 126, 119, 0.75);
}

.text-on-surface-variant\/80 {
  color: rgba(130, 126, 119, 0.8);
}

.text-surface {
  color: var(--color-surface);
}

.text-muted {
  color: var(--color-muted);
}

.text-accent-cta {
  color: var(--color-accent-cta);
}

/* Backgrounds */
.bg-background {
  background-color: var(--color-background);
}

.bg-background\/80 {
  background-color: rgba(19, 19, 19, 0.8);
}

.bg-background\/50 {
  background-color: rgba(19, 19, 19, 0.5);
}

.bg-surface {
  background-color: var(--color-surface);
}

.bg-surface-dim {
  background-color: var(--color-surface-dim);
}

.bg-surface-container {
  background-color: var(--color-surface-container);
}

.bg-surface-container-high {
  background-color: var(--color-surface-container-high);
}

.bg-surface-container\/20 {
  background-color: rgba(32, 31, 31, 0.2);
}

.bg-surface-container\/30 {
  background-color: rgba(32, 31, 31, 0.3);
}

.bg-primary {
  background-color: var(--color-primary);
}

.bg-primary-container {
  background-color: var(--color-primary-container);
}

.bg-accent-cta {
  background-color: var(--color-accent-cta);
}

.bg-\[\#070707\] {
  background-color: #070707;
}

.bg-\[\#111\] {
  background-color: #111111;
}

.bg-black {
  background-color: #000000;
}

.bg-black\/60 {
  background-color: rgba(0, 0, 0, 0.6);
}

.bg-black\/70 {
  background-color: rgba(0, 0, 0, 0.7);
}

.bg-black\/80 {
  background-color: rgba(0, 0, 0, 0.8);
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-background {
  --tw-gradient-from: var(--color-background);
  --tw-gradient-to: rgb(19 19 19 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-background\/40 {
  --tw-gradient-to: rgb(19 19 19 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), rgba(19, 19, 19, 0.4), var(--tw-gradient-to);
}

.to-transparent {
  --tw-gradient-to: transparent;
}

/* Custom Utilities */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.grayscale-hover {
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.grayscale-hover:hover {
  filter: grayscale(0%);
}

.pulse {
  animation: pulse-animation 2s infinite;
  will-change: transform, opacity;
}

@keyframes pulse-animation {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.scroll-hide::-webkit-scrollbar {
  display: none;
}

.scroll-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#works-carousel,
#prensa-carousel,
#colab-carousel,
#proceso-carousel,
#florencia-carousel,
#constelacion-carousel,
#registro-desierto-carousel {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Carrouseles de Páginas de Proyectos (Ajuste de altura para evitar sobredimensión: max 66vh) */
#proceso-carousel>div,
#florencia-carousel>div,
#constelacion-carousel>div {
  aspect-ratio: 3 / 4 !important;
  max-height: 66vh !important;
  height: clamp(270px, 46vh, 390px) !important;
  width: auto !important;
  flex-shrink: 0 !important;
}

#registro-desierto-carousel>div {
  aspect-ratio: 4 / 3 !important;
  max-height: 66vh !important;
  height: clamp(240px, 42vh, 350px) !important;
  width: auto !important;
  flex-shrink: 0 !important;
}

#proceso-carousel img,
#proceso-carousel video,
#florencia-carousel img,
#constelacion-carousel img,
#constelacion-carousel video,
#registro-desierto-carousel img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
}

/* Layout & Container Classes */
.container {
  width: 100%;
}

.max-w-container-max {
  max-width: var(--container-max);
}

.max-w-xs {
  max-width: 20rem;
}

.max-w-sm {
  max-width: 24rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Positioning */
.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.-inset-4 {
  top: -1rem;
  right: -1rem;
  bottom: -1rem;
  left: -1rem;
}

.top-0 {
  top: 0;
}

.top-4 {
  top: 1rem;
}

.top-6 {
  top: 1.5rem;
}

.top-1\/2 {
  top: 50%;
}

.top-full {
  top: 100%;
}

.right-2 {
  right: 0.5rem;
}

.right-4 {
  right: 1rem;
}

.right-6 {
  right: 1.5rem;
}

.bottom-4 {
  bottom: 1rem;
}

.bottom-8 {
  bottom: 2rem;
}

.bottom-12 {
  bottom: 3rem;
}

.left-0 {
  left: 0;
}

.left-2 {
  left: 0.5rem;
}

.left-4 {
  left: 1rem;
}

.left-8 {
  left: 2rem;
}

.z-0 {
  z-index: 0;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-50 {
  z-index: 50;
}

.z-\[60\] {
  z-index: 60;
}

.z-\[70\] {
  z-index: 70;
}

/* Display & Flexbox/Grid */
.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.items-stretch {
  align-items: stretch;
}

.justify-start {
  justify-content: flex-start;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.gap-16 {
  gap: 4rem;
}

.space-x-4> :not([hidden])~ :not([hidden]) {
  margin-left: 1rem;
}

.space-x-6> :not([hidden])~ :not([hidden]) {
  margin-left: 1.5rem;
}

.space-x-8> :not([hidden])~ :not([hidden]) {
  margin-left: 2rem;
}

.space-y-2> :not([hidden])~ :not([hidden]) {
  margin-top: 0.5rem;
}

.space-y-4> :not([hidden])~ :not([hidden]) {
  margin-top: 1rem;
}

.space-y-6> :not([hidden])~ :not([hidden]) {
  margin-top: 1.5rem;
}

.space-y-8> :not([hidden])~ :not([hidden]) {
  margin-top: 2rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.columns-1 {
  columns: 1;
}

.order-1 {
  order: 1;
}

.order-2 {
  order: 2;
}

.shrink-0 {
  flex-shrink: 0;
}

/* Sizing */
.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.w-2 {
  width: 0.5rem;
}

.w-5 {
  width: 1.25rem;
}

.w-10 {
  width: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.w-24 {
  width: 6rem;
}

.w-\[45vw\] {
  width: 45vw;
}

.w-\[80vw\] {
  width: 80vw;
}

.w-\[85vw\] {
  width: 85vw;
}

.h-full {
  height: 100%;
}

.h-screen {
  height: 100vh;
}

.h-auto {
  height: auto;
}

.h-\[1px\] {
  height: 1px;
}

.h-2 {
  height: 0.5rem;
}

.h-5 {
  height: 1.25rem;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-16 {
  height: 4rem;
}

.h-20 {
  height: 5rem;
}

.min-w-\[220px\] {
  min-width: 220px;
}

.min-h-\[380px\] {
  min-height: 380px;
}

.min-h-\[450px\] {
  min-height: 450px;
}

.aspect-\[16\/10\] {
  aspect-ratio: 16 / 10;
}

.aspect-\[4\/3\] {
  aspect-ratio: 4 / 3;
}

.aspect-\[9\/16\] {
  aspect-ratio: 9 / 16;
}

/* Padding & Margins */
.p-2 {
  padding: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pt-8 {
  padding-top: 2rem;
}

.pt-12 {
  padding-top: 3rem;
}

.pt-28 {
  padding-top: 7rem;
}

.pt-32 {
  padding-top: 8rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pb-8 {
  padding-bottom: 2rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pl-5 {
  padding-left: 1.25rem;
}

.pl-6 {
  padding-left: 1.5rem;
}

.pr-8 {
  padding-right: 2rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-14 {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.pb-16 {
  padding-bottom: 4rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.pb-24 {
  padding-bottom: 6rem;
}

.pb-28 {
  padding-bottom: 7rem;
}

.pb-32 {
  padding-bottom: 8rem;
}

.px-margin-mobile {
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

.m-0 {
  margin: 0;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.my-12 {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.my-16 {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.my-20 {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.my-24 {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-14 {
  margin-bottom: 3.5rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mb-20 {
  margin-bottom: 5rem;
}

.mb-24 {
  margin-bottom: 6rem;
}

.mb-28 {
  margin-bottom: 7rem;
}

.mb-32 {
  margin-bottom: 8rem;
}

.mb-36 {
  margin-bottom: 9rem;
}

.mb-40 {
  margin-bottom: 10rem;
}

.mb-48 {
  margin-bottom: 12rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mr-4 {
  margin-right: 1rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mt-20 {
  margin-top: 5rem;
}

.mt-24 {
  margin-top: 6rem;
}

/* Borders & Outlines */
.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-l-2 {
  border-left-width: 2px;
}

.border-y {
  border-top-width: 1px;
  border-bottom-width: 1px;
}

.border-outline {
  border-color: var(--color-outline);
}

.border-outline-variant {
  border-color: var(--color-outline-variant);
}

.border-outline-variant\/10 {
  border-color: rgba(196, 21, 28, 0.1);
}

.border-outline-variant\/15 {
  border-color: rgba(196, 21, 28, 0.15);
}

.border-outline-variant\/20 {
  border-color: rgba(196, 21, 28, 0.2);
}

.border-outline-variant\/30 {
  border-color: rgba(196, 21, 28, 0.3);
}

.border-outline-variant\/40 {
  border-color: rgba(196, 21, 28, 0.4);
}

.border-outline-variant\/50 {
  border-color: rgba(196, 21, 28, 0.5);
}

.border-outline-variant\/60 {
  border-color: rgba(196, 21, 28, 0.6);
}

.border-primary {
  border-color: var(--color-primary);
}

.border-primary\/20 {
  border-color: rgba(196, 21, 28, 0.2);
}

.border-primary\/40 {
  border-color: rgba(196, 21, 28, 0.4);
}

.border-primary-container {
  border-color: var(--color-primary-container);
}

.border-primary-container\/30 {
  border-color: rgba(196, 21, 28, 0.3);
}

.border-accent-cta {
  border-color: var(--color-accent-cta);
}

.rounded-sm {
  border-radius: 0.125rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Effects, Filters & Blurs */
.opacity-0 {
  opacity: 0;
}

.opacity-40 {
  opacity: 0.4;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-60 {
  opacity: 0.6;
}

.opacity-80 {
  opacity: 0.8;
}

.opacity-85 {
  opacity: 0.85;
}

.opacity-95 {
  opacity: 0.95;
}

.opacity-100 {
  opacity: 1;
}

.grayscale {
  filter: grayscale(100%);
}

.brightness-200 {
  filter: brightness(200%);
}

.backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-\[1px\] {
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.object-cover {
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

.fill-current {
  fill: currentColor;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

.overflow-x-auto {
  overflow-x: auto;
}

/* Snap Scroll */
.snap-x {
  scroll-snap-type: x mandatory;
}

.snap-mandatory {
  scroll-snap-type: x mandatory;
}

.snap-start {
  scroll-snap-align: start;
}

.snap-center {
  scroll-snap-align: center;
}

/* Transitions & Transforms */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.duration-700 {
  transition-duration: 700ms;
}

.duration-1000 {
  transition-duration: 1000ms;
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.transform {
  transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1));
}

.translate-x-full {
  --tw-translate-x: 100%;
  transform: translateX(100%);
}

.translate-y-0 {
  --tw-translate-y: 0px;
  transform: translateY(0);
}

.translate-y-2 {
  --tw-translate-y: 0.5rem;
  transform: translateY(0.5rem);
}

.translate-y-4 {
  --tw-translate-y: 1rem;
  transform: translateY(1rem);
}

.translate-y-6 {
  --tw-translate-y: 1.5rem;
  transform: translateY(1.5rem);
}

.translate-y-8 {
  --tw-translate-y: 2rem;
  transform: translateY(2rem);
}

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translateY(-50%);
}

/* Animations */
.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Interactivity & Hover States */
.cursor-pointer {
  cursor: pointer;
}

.pointer-events-none {
  pointer-events: none;
}

.hover\:text-primary:hover {
  color: var(--color-primary);
}

.hover\:text-\[\#ff2a00\]:hover {
  color: #ff2a00;
}

.hover\:text-surface:hover {
  color: var(--color-surface);
}

.hover\:bg-primary-container:hover {
  background-color: var(--color-primary-container);
}

.hover\:border-primary:hover {
  border-color: var(--color-primary);
}

.hover\:border-primary-container:hover {
  border-color: var(--color-primary-container);
}

.hover\:bg-accent-cta:hover {
  background-color: var(--color-accent-cta);
}

.hover\:border-accent-cta:hover {
  border-color: var(--color-accent-cta);
}

.hover\:text-accent-cta:hover {
  color: var(--color-accent-cta);
}

/* Group Hover States */
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:opacity-95 {
  opacity: 0.95;
}

.group:hover .group-hover\:visible {
  visibility: visible;
}

.group:hover .group-hover\:grayscale-0 {
  filter: grayscale(0%);
}

.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

.group:hover .group-hover\:translate-y-0 {
  --tw-translate-y: 0px;
  transform: translateY(0);
}

.group:hover .group-hover\:text-primary {
  color: var(--color-primary);
}

.group\/carousel:hover .group-hover\/carousel\:opacity-100 {
  opacity: 1;
}

/* Responsive Media Queries */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:items-center {
    align-items: center;
  }

  .sm\:w-\[320px\] {
    width: 320px;
  }
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }

  .md\:hidden {
    display: none;
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:space-y-0> :not([hidden])~ :not([hidden]) {
    margin-top: 0;
  }

  .md\:px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .md\:px-margin-desktop {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }

  .md\:p-12 {
    padding: 3rem;
  }

  .md\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .md\:text-left {
    text-align: left;
  }

  .md\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .md\:text-base {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .md\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .md\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1.1;
  }

  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1.1;
  }

  .md\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }

  .md\:w-\[22\%\] {
    width: 22%;
  }

  .md\:w-\[350px\] {
    width: 350px;
  }

  .md\:w-\[60vw\] {
    width: 60vw;
  }

  .md\:h-20 {
    height: 5rem;
  }

  .md\:min-h-\[450px\] {
    min-height: 450px;
  }

  .md\:aspect-\[16\/10\] {
    aspect-ratio: 16 / 10;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .md\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .md\:columns-2 {
    columns: 2;
  }

  .md\:col-span-4 {
    grid-column: span 4 / span 4;
  }

  .md\:col-span-5 {
    grid-column: span 5 / span 5;
  }

  .md\:col-span-7 {
    grid-column: span 7 / span 7;
  }

  .md\:col-span-8 {
    grid-column: span 8 / span 8;
  }

  .md\:order-1 {
    order: 1;
  }

  .md\:order-2 {
    order: 2;
  }

  .md\:left-4 {
    left: 1rem;
  }

  .md\:right-4 {
    right: 1rem;
  }

  .md\:opacity-0 {
    opacity: 0;
  }

  .md\:pb-20 {
    padding-bottom: 5rem;
  }

  .md\:pb-24 {
    padding-bottom: 6rem;
  }

  .md\:pb-28 {
    padding-bottom: 7rem;
  }

  .md\:pb-32 {
    padding-bottom: 8rem;
  }

  .md\:py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .md\:py-14 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .md\:py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .md\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .md\:mb-20 {
    margin-bottom: 5rem;
  }

  .md\:mb-24 {
    margin-bottom: 6rem;
  }

  .md\:mb-28 {
    margin-bottom: 7rem;
  }

  .md\:mb-32 {
    margin-bottom: 8rem;
  }

  .md\:mb-36 {
    margin-bottom: 9rem;
  }

  .md\:mb-40 {
    margin-bottom: 10rem;
  }

  .md\:mb-48 {
    margin-bottom: 12rem;
  }
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:w-\[45vw\] {
    width: 45vw;
  }

  .lg\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:col-span-5 {
    grid-column: span 5 / span 5;
  }

  .lg\:col-span-7 {
    grid-column: span 7 / span 7;
  }
}

/* ==========================================================================
   FORMULARIOS & ESTILOS DE CONTACTO (contacto.html y obras/*.html)
   ========================================================================== */

/* Título Exclusivo para Formularios de Consulta (+15% adjustment) */
.form-title,
h2.form-title,
.inquiry-form-title {
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  font-size: clamp(1.55rem, 2.5vw, 2.125rem) !important;
  /* +15%: de ~21.6px–29.6px a ~24.8px–34px */
  line-height: 1.25 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem !important;
  /* 11px */
  font-weight: 500 !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: var(--color-surface-dim);
  border: 1px solid rgba(82, 67, 64, 0.45);
  color: var(--color-on-surface);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 0.875rem 1.125rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(196, 21, 28, 0.3), 0 4px 12px rgba(0, 0, 0, 0.5);
  background-color: #121212;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C4151C'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-select option {
  background-color: #1a1919;
  color: var(--color-on-surface);
  padding: 0.75rem;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Tarjetas de Pilares de Colaboración */
.pillar-card {
  background-color: var(--color-surface-container);
  border: 1px solid rgba(82, 67, 64, 0.3);
  border-radius: 2px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pillar-card:hover {
  border-color: rgba(196, 21, 28, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6);
}

.pillar-card:hover::before {
  opacity: 1;
}

/* Tipografía de Tarjetas de Pilares (+20% size) */
.pillar-card .label {
  font-family: var(--font-sans) !important;
  font-size: 0.825rem !important;
  /* +20%: de 11px a ~13.2px */
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--color-primary-container) !important;
}

.pillar-card .card-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.95rem, 2.8vw, 2.35rem) !important;
  /* +20%: de 26px–31px a ~31.2px–37.6px */
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
}

.pillar-card .body-secondary {
  font-family: var(--font-sans) !important;
  font-size: 1.05rem !important;
  /* +20%: de 14px a ~16.8px */
  line-height: 1.65 !important;
  color: rgba(228, 226, 225, 0.85) !important;
}

.pillar-card div:last-child {
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  /* +20%: de 12px a ~14.4px */
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
}

.pillar-card div:last-child .material-symbols-outlined {
  font-size: 1.15rem !important;
}

/* Franja de Validación Institucional (Trust Strip) */
.trust-strip {
  border-top: 1px solid rgba(82, 67, 64, 0.25);
  border-bottom: 1px solid rgba(82, 67, 64, 0.25);
  background: linear-gradient(180deg, rgba(20, 19, 19, 0.6) 0%, rgba(14, 14, 14, 0.9) 100%);
}

.trust-item {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  border-left: 2px solid rgba(196, 21, 28, 0.35);
  transition: border-color 0.3s ease;
}

.trust-item:hover {
  border-left-color: var(--color-primary-container);
}

/* ==========================================================================
   GALERÍA CURATORIAL (obras.html) - Espaciado y Aire Editorial
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 5.5rem;
  /* 88px de separación vertical entre obras en móvil */
  column-gap: 3.5rem;
  /* 56px de separación horizontal */
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 7rem;
    /* 112px de separación vertical en tablet/desktop */
    column-gap: 4.5rem;
    /* 72px de separación horizontal */
  }
}

@media (min-width: 1280px) {
  .gallery-grid {
    row-gap: 8.5rem;
    /* 136px de separación vertical generosa en pantallas grandes */
    column-gap: 5.5rem;
    /* 88px de separación horizontal */
  }
}

.gallery-card {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

.gallery-image-container {
  position: relative;
  overflow: hidden;
  background-color: #111111;
  border: 1px solid rgba(196, 21, 28, 0.2);
  border-radius: 2px;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.gallery-card:hover .gallery-image-container {
  border-color: rgba(196, 21, 28, 0.4);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8);
}

.gallery-title-wrapper {
  margin-top: 1.75rem;
  /* 28px de aire limpio entre la imagen y su título */
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-title-wrapper .card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem) !important;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-on-surface);
  transition: color 0.3s ease;
}

.gallery-card:hover .gallery-title-wrapper .card-title {
  color: var(--color-primary);
}

/* ==========================================================================
   PROJECT PAGES HERO (Encuadre, Altura +30% y Centrado)
   ========================================================================== */

.project-hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 7.5rem;
  padding-bottom: 5rem;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
  overflow: hidden;
}

@media (min-width: 768px) {
  .project-hero {
    min-height: 90vh;
    padding-top: 9rem;
    padding-bottom: 6rem;
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.project-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.5s ease;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      #131313 0%,
      rgba(19, 19, 19, 0.95) 15%,
      rgba(19, 19, 19, 0.7) 45%,
      rgba(19, 19, 19, 0.25) 75%,
      rgba(19, 19, 19, 0.05) 100%);
  z-index: 1;
  pointer-events: none;
}

.project-hero-frame {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 58rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 1rem;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* 1. Kicker Superior (+20% size) */
.project-hero-frame .label {
  font-family: var(--font-sans) !important;
  font-size: 1.05rem !important;
  /* +20%: de 14px a ~16.8px */
  font-weight: 500 !important;
  letter-spacing: 0.26em !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* 2. Título Principal (+20% size) */
.project-hero-frame .page-title {
  font-family: var(--font-display) !important;
  font-size: clamp(3.6rem, 7.2vw, 5.4rem) !important;
  /* +20%: de 48px–72px a ~58px–86px */
  line-height: 1.1 !important;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* 3. Bajada / Texto Descriptivo (+20% size) */
.project-hero-frame .body-text {
  font-family: var(--font-sans) !important;
  font-size: clamp(1.2rem, 1.35vw, 1.35rem) !important;
  /* +20%: de 16px–18px a ~19.2px–21.6px */
  line-height: 1.6 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   NAVBAR DROPDOWN (Solo despliegue por Click)
   ========================================================================== */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  outline: none;
}

.nav-dropdown-toggle:focus-visible {
  outline: 1px solid var(--color-primary);
  outline-offset: 4px;
}

.nav-dropdown-toggle .dropdown-icon {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.75rem;
}

.nav-dropdown.is-open .nav-dropdown-toggle .dropdown-icon {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 220px;
  z-index: 60;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}