/*
Theme Name: Sephoris Arquitectura
Theme URI: https://sephorisarquitectura.es
Author: Modela Web / Sephoris Arquitectura
Description: Tema editorial a medida para Sephoris Arquitectura, sin plugins de pago. Basado fielmente en los diseños arquitectónicos de los PDFs del cliente.
Version: 1.1.0
Text Domain: sephoris
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
    --font-serif: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --color-ink: #111111;
    --color-body: #222222;
    --color-muted: #666666;
    --color-line: #dddddd;
    --color-bg: #ffffff;
    --pad-x: clamp(1.5rem, 4.5vw, 4.5rem);
}

/* ==========================================================================
   Universal Typography: Roboto en toda la página (excluyendo fuentes de iconos)
   ========================================================================== */
html, body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6, p, a, span:not([class*="eicon"]):not([class*="fa"]),
li, blockquote,
.elementor:not(i):not(svg),
.elementor *:not(i):not(svg):not([class*="eicon"]):not([class*="fa"]):not(.elementor-menu-toggle):not(.elementor-menu-toggle *),
.elementor-widget:not(i):not(svg),
.elementor-widget *:not(i):not(svg):not([class*="eicon"]):not([class*="fa"]):not(.elementor-menu-toggle):not(.elementor-menu-toggle *),
.elementor-nav-menu:not(i):not(svg),
.elementor-nav-menu *:not(i):not(svg):not([class*="eicon"]):not([class*="fa"]):not(.elementor-menu-toggle):not(.elementor-menu-toggle *),
.elementor-item, .elementor-sub-item,
.site-header:not(i):not(svg),
.site-header *:not(i):not(svg):not([class*="eicon"]):not([class*="fa"]):not(.menu-toggle):not(.menu-toggle *),
.site-main, .site-main *:not(i):not(svg):not([class*="eicon"]):not([class*="fa"]),
.site-footer, .site-footer *:not(i):not(svg):not([class*="eicon"]):not([class*="fa"]),
.elementor-location-header:not(i):not(svg),
.elementor-location-header *:not(i):not(svg):not([class*="eicon"]):not([class*="fa"]):not(.elementor-menu-toggle):not(.elementor-menu-toggle *),
.elementor-location-footer, .elementor-location-footer *:not(i):not(svg):not([class*="eicon"]):not([class*="fa"]) {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

/* ==========================================================================
   Preserve Elementor Icon Font (eicons) & FontAwesome
   ========================================================================== */
[class*=" eicon-"], [class^="eicon-"],
.elementor-menu-toggle i,
.elementor-menu-toggle i::before,
.elementor-menu-toggle i::after,
i.eicon-menu-bar, i.eicon-close,
.eicon-menu-bar, .eicon-close {
    font-family: eicons !important;
    speak: never;
    font-style: normal !important;
    font-weight: 400 !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.eicon-menu-bar:before {
    content: "\e816" !important;
}

.eicon-close:before {
    content: "\e87f" !important;
}

.fa, .fas, .far, .fal, .fab, [class*=" fa-"], [class^="fa-"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", sans-serif !important;
}


/* ==========================================================================
   Header Logo Dimensions (Proporción elegante reducida en ambos headers)
   ========================================================================== */
.elementor-2157 .elementor-element.elementor-element-ee9f9d9 img,
.elementor-36 .elementor-element.elementor-element-bb0bb9d img,
.site-header .brand img,
.site-logo-img,
.custom-logo {
    max-width: 155px !important;
    width: auto !important;
    height: auto !important;
}

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

html {
    background-color: #ffffff !important;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff !important;
    color: var(--color-body);
    font-family: var(--font-main) !important;
    font-size: 17px;
    line-height: 1.6;
}

.site-main,
main,
.site-content,
.content-area,
.elementor:not(.elementor-location-footer):not(.elementor-location-header),
.elementor-page,
.editorial-section,
.home-intro-section,
.home-projects-section,
.home-inspiration-section,
.contact-editorial-container,
.contact-form-section,
.nosotros-hero,
.nosotros-body-container,
.archive-header-hero,
.projects-header-hero,
.inspiration-header-hero,
.single-project-container,
.single-inspiration-container,
.legal-page-container {
    background-color: #ffffff;
}

/* Eradicate TurnKey Linux injection banner and bottom white gaps */
footer,
.site-footer,
.elementor-location-footer {
    background-color: #111111 !important;
    position: relative;
}

#turnkey-credit,
#turnkey-credit * {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    border: none !important;
    background: transparent !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
    opacity: 0.75;
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.6rem var(--pad-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.site-header.is-scrolled .site-header-inner {
    padding: 1.05rem var(--pad-x);
}

.brand {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.brand:hover {
    opacity: 1;
}

.brand-text {
    font-family: var(--font-main) !important;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-ink);
    line-height: 1;
}

.brand img {
    max-height: 40px;
    width: auto;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: clamp(1.8rem, 4vw, 4.2rem);
    align-items: center;
}

.primary-menu li a {
    font-family: var(--font-main) !important;
    font-size: 1.02rem;
    font-weight: 400;
    letter-spacing: 0.025em;
    color: var(--color-ink);
    text-decoration: none;
    position: relative;
    padding: 0.35rem 0;
    transition: color 0.25s ease;
}

.primary-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-ink);
    transition: width 0.25s ease-in-out;
}

.primary-menu li a:hover::after,
.primary-menu li.current-menu-item > a::after {
    width: 100%;
}

.primary-menu li.current-menu-item > a {
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 18px;
    position: relative;
}

.menu-toggle-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--color-ink);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: 0.25s ease-in-out;
}

.menu-toggle-icon span:nth-child(1) { top: 0; }
.menu-toggle-icon span:nth-child(2) { top: 8px; }
.menu-toggle-icon span:nth-child(3) { top: 16px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
    left: -20px;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* ==========================================================================
   Editorial Layout & Grid
   ========================================================================== */
.site-main {
    min-height: 60vh;
}

.fullwidth-banner {
    width: 100%;
    margin-bottom: 4rem;
    overflow: hidden;
}

.fullwidth-banner img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: cover;
}

.home-hero-banner {
    width: 100%;
    height: clamp(380px, 60vh, 660px);
    overflow: hidden;
    position: relative;
    background: #111111;
    margin-bottom: clamp(3rem, 5vw, 5.5rem);
}

/* Dark filter overlay: guarantees the top white header, logo and menu links stand out with high contrast */
.home-hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.60) 130px,
        rgba(0, 0, 0, 0.28) 280px,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
}

.home header.elementor-2157,
.home .elementor-location-header {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 65%, rgba(0, 0, 0, 0) 100%) !important;
}

.home .elementor-2157 .elementor-item,
.home .elementor-nav-menu .elementor-item,
.home .site-header .main-nav a {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92), 0 2px 10px rgba(0, 0, 0, 0.75) !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
}

body:not(.home) .elementor-2157 .elementor-item,
body:not(.home) .elementor-nav-menu .elementor-item,
body:not(.home) .site-header .main-nav a {
    color: #111111 !important;
    text-shadow: none !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em !important;
}

body:not(.home) .elementor-nav-menu .elementor-item:hover,
body:not(.home) .elementor-nav-menu .elementor-item.elementor-item-active,
body:not(.home) .site-header .main-nav a:hover,
body:not(.home) .site-header .main-nav a.active {
    color: #000000 !important;
    opacity: 0.7;
}

.home-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
    display: block;
    filter: brightness(0.92);
}

.editorial-section {
    padding: 0 var(--pad-x);
    margin: 4.5rem 0;
}

.editorial-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 6.5rem);
    align-items: start;
}

.editorial-grid-2col.align-center {
    align-items: center;
}

/* ==========================================================================
   Home Page Specifics
   ========================================================================== */
.home-intro-text {
    grid-column: 2;
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--color-body);
}

.home-intro-subtitle {
    font-size: 1.22rem;
    font-weight: 500;
    color: var(--color-ink);
    margin-bottom: 1.25rem;
}

.lead-heading {
    font-size: clamp(2.2rem, 3.4vw, 3rem);
    font-weight: 400;
    line-height: 1.18;
    color: var(--color-ink);
    margin: 0;
}

.eyebrow {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--color-ink);
    margin: 0 0 1rem;
}

.featured-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-visual {
    overflow: hidden;
    background: #f4f3f0;
}

.featured-visual img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-item:hover .featured-visual img {
    transform: scale(1.025);
}

.featured-title {
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    font-weight: 400;
    color: var(--color-ink);
    margin: 0 0 1.25rem;
    line-height: 1.2;
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-body);
    margin: 0;
}

/* ==========================================================================
   Contact Form Styles
   ========================================================================== */
.contact-form-wrap {
    width: 100%;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 1.8rem;
}

.form-row-full {
    grid-column: 1 / -1;
}

.form-control {
    width: 100%;
    border: none;
    border-bottom: 1px solid #767676;
    background: transparent;
    padding: 0.75rem 0;
    font-family: var(--font-main) !important;
    font-size: 1.05rem;
    color: var(--color-ink);
    border-radius: 0;
    outline: none;
    transition: border-color 0.25s ease;
}

.form-control:focus {
    border-bottom-color: var(--color-ink);
}

.form-control::placeholder {
    color: #555555;
    opacity: 1;
}

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

.form-privacy-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--color-muted);
    cursor: pointer;
    margin-top: 0.5rem;
}

.form-privacy-label a {
    text-decoration: underline;
    color: var(--color-ink);
}

.form-submit-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.btn-submit {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-ink);
    color: var(--color-ink);
    font-family: var(--font-main) !important;
    font-size: 1.15rem;
    padding: 0.35rem 0;
    cursor: pointer;
    transition: opacity 0.2s ease, padding-right 0.2s ease;
}

.btn-submit:hover {
    opacity: 0.7;
    padding-right: 0.5rem;
}

.form-notice {
    grid-column: 1 / -1;
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.form-notice--success {
    background: #eef6ed;
    color: #276221;
    border-left: 3px solid #4a9e40;
}

.form-notice--error {
    background: #fdf0ed;
    color: #8c2518;
    border-left: 3px solid #d9534f;
}

/* ==========================================================================
   Page: Nosotros
   ========================================================================== */
.page-header {
    padding: clamp(3rem, 6vw, 5.5rem) var(--pad-x) 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-main) !important;
    font-size: clamp(2.6rem, 4.8vw, 4.4rem);
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--color-ink);
    line-height: 1.1;
    margin: 0.8rem 0 1.2rem;
}

.page-subtitle {
    font-size: clamp(1.1rem, 1.4vw, 1.28rem);
    line-height: 1.65;
    color: var(--color-body);
    max-width: 680px;
    margin: 0;
}

.nosotros-row {
    margin: 4.5rem 0;
}

.nosotros-row .section-title {
    font-family: var(--font-main) !important;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 400;
    color: var(--color-ink);
    margin: 0 0 1.25rem;
    line-height: 1.25;
}

.nosotros-row p {
    font-size: 1.05rem;
    line-height: 1.68;
    color: var(--color-body);
    margin: 0 0 1.2rem;
}

.nosotros-row p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Page: Contacto (Compact Architectural System)
   ========================================================================== */
.contact-header-hero {
    padding-bottom: 1.8rem;
}

.contact-editorial-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--pad-x) clamp(4rem, 7vw, 7rem);
}

/* Banda negra arquitectónica que une las dos fotos de los estudios con el texto en blanco */
.offices-black-band {
    background: #111111 !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: clamp(1.6rem, 3vw, 2.5rem);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.offices-band-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.office-band-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
    align-self: stretch;
}

.office-band-card,
.office-editorial-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1.25rem;
    min-height: 140px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.office-band-thumb,
.office-editorial-thumb {
    width: 145px;
    min-width: 145px;
    max-width: 145px;
    flex: 0 0 145px;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.office-band-thumb img,
.office-editorial-thumb img {
    width: 100%;
    height: 100%;
    max-width: 145px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.office-band-card:hover .office-band-thumb img,
.office-editorial-card:hover .office-editorial-thumb img {
    transform: scale(1.06);
}

.office-band-body,
.office-editorial-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.1rem 0;
}

.office-eyebrow {
    font-family: 'Roboto', sans-serif !important;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a0a0a0 !important;
    display: block;
    margin-bottom: 0.25rem;
}

.office-name {
    font-family: 'Roboto', sans-serif !important;
    font-size: 1.55rem;
    font-weight: 400;
    color: #ffffff !important;
    line-height: 1.15;
    margin: 0 0 0.35rem;
}

.office-address {
    font-family: 'Roboto', sans-serif !important;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #dddddd !important;
    margin: 0 0 0.75rem;
}

.office-contact-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.office-action-link {
    color: #ffffff !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.2s ease, opacity 0.2s ease;
    font-family: 'Roboto', sans-serif !important;
}

.office-action-link:hover {
    color: #ffffff !important;
    border-bottom-color: #ffffff;
    opacity: 0.85;
}

.action-label {
    color: #888888 !important;
    font-weight: 600;
    font-size: 0.76rem;
    text-transform: uppercase;
    margin-right: 0.15rem;
}

.action-sep {
    color: #555555 !important;
}

@media (max-width: 900px) {
    .offices-band-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .office-band-divider {
        width: 100%;
        height: 1px;
    }
    .office-band-thumb,
    .office-editorial-thumb {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
        flex: 0 0 120px;
    }
    .office-band-thumb img,
    .office-editorial-thumb img {
        max-width: 120px;
    }
}

@media (max-width: 520px) {
    .offices-black-band {
        padding: 1.25rem;
    }
    .office-band-card,
    .office-editorial-card {
        flex-direction: column;
        gap: 0.85rem;
    }
    .office-band-thumb,
    .office-editorial-thumb {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 140px;
        flex: 0 0 140px;
    }
    .office-band-thumb img,
    .office-editorial-thumb img {
        max-width: 100%;
    }
}

/* Contact Form Section Prominence */
.contact-form-section {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 1px solid var(--color-line);
}

.contact-intro-col .section-meta {
    margin-bottom: 0.8rem;
}

.contact-editorial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-body);
    margin-top: 1.5rem;
    max-width: 480px;
}

/* ==========================================================================
   Archive & Portfolio: ÁBATON-Inspired Architectural System
   ========================================================================== */
.archive-header-hero {
    padding: clamp(3rem, 6vw, 5.5rem) var(--pad-x) 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.archive-header-inner {
    max-width: 860px;
}

.archive-main-title {
    font-family: var(--font-main) !important;
    font-size: clamp(2.6rem, 4.8vw, 4.4rem);
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--color-ink);
    line-height: 1.1;
    margin: 0.8rem 0 1.2rem;
}

.archive-lead-statement {
    font-size: clamp(1.1rem, 1.4vw, 1.28rem);
    line-height: 1.65;
    color: var(--color-body);
    margin: 0;
    max-width: 680px;
}

.projects-container,
.inspiration-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--pad-x) clamp(4rem, 8vw, 7rem);
}

/* Category Filter Bar */
.project-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--color-line);
}

.filter-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 0.45rem 1.1rem;
    font-family: var(--font-sans) !important;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    color: var(--color-ink);
    background: rgba(0, 0, 0, 0.03);
}

.filter-btn.is-active {
    color: #ffffff;
    background: var(--color-ink);
    border-color: var(--color-ink);
}

/* Projects Grid (2 columns architectural) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
    gap: clamp(3rem, 5.5vw, 5.5rem) clamp(2rem, 4vw, 4rem);
}

.project-card {
    transition: opacity 0.35s ease;
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card-visual {
    position: relative;
    background: #f4f3f0;
    overflow: hidden;
    aspect-ratio: 16/10;
    margin-bottom: 1.3rem;
}

.project-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.75s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-card-link:hover .project-card-visual img {
    transform: scale(1.038);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.02);
    pointer-events: none;
    transition: background 0.3s ease;
}

.project-card-link:hover .project-card-overlay {
    background: rgba(0, 0, 0, 0);
}

.project-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.45rem;
}

.meta-dot {
    opacity: 0.5;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.project-card-title {
    font-family: var(--font-main) !important;
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-ink);
    margin: 0;
    transition: color 0.25s ease;
}

.project-arrow {
    font-size: 1.25rem;
    color: var(--color-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.project-card-link:hover .project-card-title {
    color: var(--color-muted);
}

.project-card-link:hover .project-arrow {
    transform: translateX(5px);
    color: var(--color-ink);
}

/* Inspiration Grid (3 columns editorial) */
.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: clamp(3rem, 5vw, 5rem) clamp(2rem, 3.5vw, 3.5rem);
}

.inspiration-card {
    display: flex;
    flex-direction: column;
}

.inspiration-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.inspiration-card-visual {
    position: relative;
    background: #f4f3f0;
    overflow: hidden;
    aspect-ratio: 3/2;
    margin-bottom: 1.3rem;
}

.inspiration-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.75s cubic-bezier(0.2, 1, 0.3, 1);
}

.inspiration-card-link:hover .inspiration-card-visual img {
    transform: scale(1.035);
}

.inspiration-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.02);
    pointer-events: none;
}

.inspiration-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.inspiration-card-title {
    font-family: var(--font-main) !important;
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-ink);
    margin: 0 0 0.8rem;
    transition: color 0.25s ease;
}

.inspiration-card-link:hover .inspiration-card-title {
    color: var(--color-muted);
}

.inspiration-card-excerpt {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--color-body);
    margin-bottom: 1.1rem;
}

.inspiration-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-ink);
    transition: gap 0.25s ease;
}

.inspiration-card-link:hover .inspiration-read-more {
    gap: 0.7rem;
}

/* ==========================================================================
   Single: Proyecto (Arquitectura Ábaton)
   ========================================================================== */
.single-project-hero {
    width: 100%;
    margin-bottom: clamp(3rem, 5vw, 5rem);
    background: #f4f3f0;
}

.single-project-hero-img {
    width: 100%;
    max-height: 82vh;
    object-fit: cover;
    display: block;
}

.single-project-header {
    max-width: 1400px;
    margin: 0 auto clamp(3.5rem, 6vw, 6rem);
    padding: 0 var(--pad-x);
}

.single-project-header-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.project-meta-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.8rem;
}

.single-project-title {
    font-family: var(--font-main) !important;
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.12;
    color: var(--color-ink);
    margin: 0 0 1.5rem;
}

.single-project-lead {
    font-size: clamp(1.12rem, 1.4vw, 1.3rem);
    line-height: 1.68;
    color: var(--color-body);
    margin: 0;
    max-width: 640px;
}

.project-specs-card {
    background: #fafaf9;
    border: 1px solid var(--color-line);
    padding: clamp(1.8rem, 3vw, 2.5rem);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 1.5rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spec-label {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.spec-value {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-ink);
    line-height: 1.35;
}

.single-project-content-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.single-project-content-inner {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--color-body);
}

/* ==========================================================================
   Single: Inspiración (Lectura Editorial)
   ========================================================================== */
.single-inspiration-header {
    max-width: 860px;
    margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
    padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x) 0;
    text-align: center;
}

.inspiration-header-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.single-inspiration-title {
    font-family: var(--font-main) !important;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--color-ink);
    margin: 0 0 1.2rem;
}

.single-inspiration-lead {
    font-size: clamp(1.15rem, 1.4vw, 1.32rem);
    line-height: 1.68;
    color: var(--color-body);
    margin: 0 auto;
    max-width: 720px;
}

.single-inspiration-hero {
    max-width: 1200px;
    margin: 0 auto clamp(3rem, 5vw, 5rem);
    padding: 0 var(--pad-x);
}

.single-inspiration-hero-img {
    width: 100%;
    max-height: 75vh;
    object-fit: cover;
    display: block;
}

.single-inspiration-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--pad-x);
    font-size: 1.12rem;
    line-height: 1.8;
    color: var(--color-body);
}

/* ==========================================================================
   Navigation Bar (Between Projects / Inspirations)
   ========================================================================== */
.project-navigation-bar {
    max-width: 1400px;
    margin: clamp(4rem, 8vw, 7rem) auto 2rem;
    padding: 2.5rem var(--pad-x) 0;
    border-top: 1px solid var(--color-line);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.project-nav-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: inherit;
    transition: opacity 0.2s ease;
}

.project-nav-link:hover {
    opacity: 0.7;
}

.project-nav-next .project-nav-link {
    align-items: flex-end;
    text-align: right;
}

.nav-direction {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.nav-title {
    font-family: var(--font-main) !important;
    font-size: 1.18rem;
    color: var(--color-ink);
}

.all-projects-link {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-ink);
    padding: 0.6rem 1.3rem;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    transition: all 0.25s ease;
}

.all-projects-link:hover {
    background: var(--color-ink);
    color: #ffffff;
    border-color: var(--color-ink);
}

/* ==========================================================================
   Homepage Refinements (ÁBATON-inspired)
   ========================================================================== */
.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    flex-wrap: wrap;
}

.home-section-title {
    font-family: var(--font-main) !important;
    font-size: clamp(2.2rem, 3.6vw, 3.2rem);
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--color-ink);
    margin: 0.4rem 0 0;
    line-height: 1.15;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-ink);
    text-decoration: none;
    padding-bottom: 0.25rem;
    border-bottom: 1.5px solid var(--color-ink);
    transition: gap 0.25s ease;
}

.view-all-link:hover {
    gap: 0.8rem;
}

.home-intro-heading {
    font-family: var(--font-main) !important;
    font-size: clamp(1.7rem, 2.5vw, 2.2rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-ink);
    margin: 0 0 1.2rem;
}

.contact-subtext {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-body);
    margin-top: 1rem;
    max-width: 440px;
}

.home-inspiration-copy .featured-title {
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    margin: 0.5rem 0 1rem;
}

.empty-state {
    padding: 4rem 0;
    text-align: center;
    color: var(--color-muted);
}

/* Fallback legacy classes */
.archive-list {
    padding: 1.5rem var(--pad-x) 5rem;
}

.archive-item {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    margin-bottom: 3.5rem;
    text-decoration: none;
    color: inherit;
}

.archive-item-visual {
    background: #f4f3f0;
    overflow: hidden;
}

.archive-item-visual img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-item:hover .archive-item-visual img {
    transform: scale(1.02);
}

.archive-item-title {
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    font-weight: 400;
    color: var(--color-ink);
    margin: 0;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.archive-item:hover .archive-item-title {
    color: var(--color-muted);
}

.single-hero {
    width: 100%;
    margin-bottom: 4rem;
}

.single-hero img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: cover;
}

.single-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 6.5rem);
    align-items: start;
    padding: 0 var(--pad-x);
    margin-bottom: 4rem;
}

.single-body-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 6.5rem);
    align-items: start;
    padding: 0 var(--pad-x);
    margin: 3.5rem 0;
}

.single-body-visual {
    margin-bottom: 2rem;
}

.single-body-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.single-body-text {
    font-size: 1.08rem;
    line-height: 1.68;
    color: var(--color-body);
}

.single-gallery {
    padding: 0 var(--pad-x);
    margin: 4rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.single-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding: 4.5rem var(--pad-x) 2.5rem;
    background: var(--color-bg);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    margin-bottom: 4.5rem;
}

.footer-brand {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-ink);
    margin: 0;
}

.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-ink);
    margin: 0 0 1.25rem;
}

.footer-col p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-body);
    margin: 0.35rem 0;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    font-size: 1rem;
    line-height: 1.7;
}

.footer-col a {
    color: var(--color-body);
}

.footer-col a:hover {
    color: var(--color-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.88rem;
    color: var(--color-body);
    padding-top: 1.5rem;
}

.legal-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
}

.legal-nav a {
    color: var(--color-body);
}

.footer-credits {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

/* ==========================================================================
   Legal Pages (Aviso Legal, Privacidad, Cookies)
   ========================================================================== */
.legal-page-wrapper {
    background: #ffffff;
    min-height: 70vh;
    padding: clamp(3rem, 6vw, 5.5rem) var(--pad-x) clamp(4rem, 8vw, 7rem);
}

.legal-container {
    max-width: 820px;
    margin: 0 auto;
}

.legal-breadcrumb {
    margin-bottom: 2.5rem;
}

.legal-back-link {
    font-family: var(--font-sans) !important;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
    transition: color 0.2s ease;
}

.legal-back-link:hover {
    color: var(--color-ink);
}

.legal-header {
    margin-bottom: clamp(2.5rem, 4vw, 4rem);
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-line);
}

.legal-eyebrow {
    font-family: var(--font-sans) !important;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
    display: block;
    margin-bottom: 0.6rem;
}

.legal-title {
    font-family: var(--font-main) !important;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 400;
    color: var(--color-ink);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.legal-date {
    font-family: var(--font-sans) !important;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0;
}

.legal-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333333;
}

.legal-content h2 {
    font-family: var(--font-main) !important;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 600;
    color: var(--color-ink);
    margin: 2.8rem 0 1rem;
    letter-spacing: -0.01em;
}

.legal-content h3 {
    font-family: var(--font-main) !important;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-ink);
    margin: 2rem 0 0.8rem;
}

.legal-content p {
    margin: 0 0 1.4rem;
}

.legal-content ul, .legal-content ol {
    margin: 0 0 1.6rem;
    padding-left: 1.8rem;
}

.legal-content li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.legal-content a {
    color: var(--color-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content a:hover {
    color: #555555;
}

.legal-footer-nav {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-line);
}

.legal-links-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.legal-links-list a {
    color: var(--color-muted);
    transition: color 0.2s ease;
}

.legal-links-list a:hover {
    color: var(--color-ink);
}

.legal-links-list .sep {
    color: var(--color-line);
}

.legal-contact-hint {
    margin-top: 1.2rem;
    font-size: 0.88rem;
    color: var(--color-muted);
}

.legal-contact-hint a {
    color: var(--color-ink);
    text-decoration: underline;
}

/* ==========================================================================
   Responsive / Mobile Styles
   ========================================================================== */
@media (max-width: 860px) {
    .menu-toggle {
        display: block;
    }

    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem var(--pad-x) 2rem;
        gap: 1.2rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        border-top: 1px solid var(--color-line);
    }

    .primary-menu.is-open {
        display: flex;
    }

    .editorial-grid-2col,
    .offices-grid,
    .offices-architectural-grid,
    .offices-editorial-grid,
    .contact-form-section,
    .single-top-row,
    .single-body-row,
    .single-gallery,
    .archive-item,
    .projects-grid,
    .inspiration-grid,
    .single-project-header-inner,
    .project-navigation-bar,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .offices-editorial-grid {
        gap: 1.2rem;
    }

    .office-editorial-card {
        grid-template-columns: 120px 1fr;
        gap: 1rem;
    }

    .office-editorial-body {
        padding: 1rem 1rem 1rem 0;
    }

    .home-hero-banner {
        height: clamp(290px, 46vh, 420px);
        margin-bottom: 2.5rem;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form textarea,
    .contact-form select {
        font-size: 16px !important; /* Prevents iOS Safari auto-zoom on input focus */
    }

    .project-nav-next .project-nav-link,
    .project-nav-prev .project-nav-link {
        align-items: center;
        text-align: center;
    }

    .project-nav-all {
        order: -1;
        text-align: center;
    }

    .home-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .home-intro-text {
        grid-column: 1;
    }

    .contact-form {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Tablet Optimizations (861px to 1100px) */
@media (min-width: 861px) and (max-width: 1100px) {
    .inspiration-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-section {
        gap: 2.5rem;
    }

    .home-hero-banner {
        height: 52vh;
    }
}

/* Force Roboto on all headings */
h1, h2, h3, h4, h5, h6, .home-section-title, .project-card-title, .featured-title {
    font-family: 'Roboto', sans-serif !important;
}


/* ==========================================================================
   Nosotros Redesign (Fase 3)
   ========================================================================== */
.nosotros-integrated-intro {
    margin-bottom: clamp(4rem, 8vw, 8rem);
}

.nosotros-hero-image {
    margin-bottom: clamp(3rem, 6vw, 5rem);
    width: 100%;
}
.nosotros-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.nosotros-intro-content {
    align-items: start;
}

.nosotros-philosophy .nosotros-lead {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--color-ink);
}
.nosotros-philosophy p {
    font-size: 1.15rem;
    color: var(--color-body);
    margin-bottom: 1.5rem;
}

.nosotros-founder-card {
    background: #f9f9f9;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 4px;
    border-left: 3px solid var(--color-ink);
}

.founder-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.founder-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.founder-name {
    font-size: 1.5rem !important;
    margin: 0 0 0.2rem 0;
    color: var(--color-ink);
}

.founder-role {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    font-weight: 600;
}

.founder-bio-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--color-body);
}
.founder-bio-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .nosotros-intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==========================================================================
   Seamless Elementor Mobile Menu Dropdown (Zero Gap) using box-shadow bridge
   ========================================================================== */
@media (max-width: 1024px) {
    .elementor-nav-menu--dropdown {
        box-shadow: 0 -25px 0 0 #ffffff !important;
        z-index: 1 !important;
    }
    .home .elementor-nav-menu--dropdown {
        box-shadow: 0 -25px 0 0 rgba(0, 0, 0, 0.85) !important;
    }
    body:not(.home) .elementor-nav-menu--dropdown {
        box-shadow: 0 -25px 0 0 #ffffff, 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    }
    /* Ensure toggle and logos stay above the shadow */
    .elementor-menu-toggle, .elementor-widget-image {
        position: relative;
        z-index: 10 !important;
    }
}

@media (max-width: 767px) {
    .elementor-nav-menu--dropdown {
        box-shadow: 0 -19px 0 0 #ffffff !important;
    }
    .home .elementor-nav-menu--dropdown {
        box-shadow: 0 -19px 0 0 rgba(0, 0, 0, 0.85) !important;
    }
    body:not(.home) .elementor-nav-menu--dropdown {
        box-shadow: 0 -19px 0 0 #ffffff, 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    }
}

/* Desktop specific grid layouts to prevent inline styles overriding mobile */
@media (min-width: 901px) {
    .estudio-grid-layout {
        grid-template-columns: 1.2fr 1fr !important;
        gap: clamp(3rem, 10vw, 8rem) !important;
    }
    .filosofia-grid-layout {
        grid-template-columns: 1fr 1.2fr !important;
        gap: clamp(3rem, 6vw, 5rem) !important;
    }
    .nosotros-grid-layout {
        grid-template-columns: 1fr 1.5fr !important;
        gap: clamp(3rem, 8vw, 6rem) !important;
    }
}

/* Mobile specific image heights to ensure they look good stacked */
@media (max-width: 900px) {
    .estudio-grid-layout .featured-visual img,
    .filosofia-grid-layout .featured-visual img {
        aspect-ratio: 16 / 9 !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }
    .nosotros-grid-layout .featured-visual {
        height: auto !important;
    }
    .nosotros-grid-layout .featured-visual img,
    .estudio-grid-layout:nth-of-type(2) .featured-visual img { /* David's photo */
        aspect-ratio: 4 / 5 !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        max-height: 60vh !important;
    }
}
