/* -- Self-hosted web fonts (tools/selfhost-google-fonts.py, 2026-09-02) --
   Was a fonts.googleapis.com stylesheet + fonts.gstatic.com faces: two extra
   origins on the critical path and the largest render-blocking item on every
   page (854 ms on the live homepage). Served from /fonts/ now; the variable
   files carry the whole weight range each page used (Inter 300-700, Playfair
   400-700 upright + italic). font-display: optional = zero layout shift; the
   browser waits ~100 ms and otherwise keeps the fallback for that page view.
   Latin subset only; other scripts fall back through the unicode-range. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url(/fonts/inter-300-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url(/fonts/playfair-display-400-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: optional;
  src: url(/fonts/playfair-display-400-700-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
   TapePhoto Design System
   Full-canvas, immersive photography portfolio
*/

:root {
    --white: #FFFFFF;
    --black: #0A0A0A;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-400: #999;
    --gray-600: #666;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============ HEADER ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    /* Was mix-blend-mode: difference — white text rendered as |255 - backdrop|,
       so over a mid-tone hero photo the nav collapsed to ~1.5:1 and the logo
       was unreadable. Legibility must not depend on which photo is behind it. */
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.75), transparent);
}

.logo {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    color: var(--white);
}
.logo-mark img {
    height: 44px;
    width: auto;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}
.logo-mark:hover img { transform: scale(1.04); opacity: 0.85; }

/* Instagram handle chip in nav */
.nav .nav-ig {
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    font-size: 0.7rem !important;
    letter-spacing: 0.1em !important;
    text-transform: none !important;
    background: linear-gradient(135deg, rgba(225,48,108,0.15), rgba(245,133,41,0.15));
    transition: background 0.3s ease, border-color 0.3s ease;
}
.nav .nav-ig:hover {
    background: linear-gradient(135deg, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040);
    border-color: transparent;
    color: #fff;
}
.nav .nav-ig::after { display: none; }

/* Hero Instagram follow link */
.hero-ig {
    display: inline-block;
    margin-top: 22px;
    padding: 10px 22px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 999px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.hero-ig:hover {
    background: linear-gradient(135deg, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040);
    border-color: transparent;
    transform: translateY(-2px);
}

@media (max-width: 760px) {
    .nav .nav-ig { display: none; }
    .logo-mark img { height: 36px; }
}

.nav {
    display: flex;
    gap: 36px;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding-bottom: 4px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.4s var(--ease);
}

.nav a:hover::after { width: 100%; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: 0.3s var(--ease);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.1) 40%,
        rgba(0,0,0,0.5) 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 120px;
    left: 40px;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.scroll-indicator span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    writing-mode: vertical-rl;
    opacity: 0.6;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--white);
    opacity: 0.4;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.4; }
    50% { transform: scaleY(0.5); opacity: 0.8; }
}

/* ============ WORK SECTION ============ */
.work-section {
    padding: 0;
}

.section-header {
    padding: 100px 40px 60px;
    text-align: center;
}

.section-header h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.5;
}

/* ============ PHOTO GRID - FULL CANVAS ============ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 25vw;
    grid-auto-flow: dense;
    gap: 4px;
    width: 100%;
}

.photo-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.photo-item.photo-wide {
    grid-column: span 2;
}

.photo-item.photo-tall {
    grid-row: span 2;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
    display: block;
}

.photo-item:hover img {
    transform: scale(1.06);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0) 50%
    );
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
    margin-bottom: 6px;
}

.photo-overlay h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ============ STATEMENT SECTION ============ */
.statement-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 4px;
}

.statement-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.statement-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.statement-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 40px;
}

.statement-content blockquote {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.btn-outline {
    display: inline-block;
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 14px 36px;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.4s var(--ease);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 80px 40px 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 1.5rem;
}
.footer-brand .logo-mark img { height: 38px; }

.footer-brand p {
    font-size: 0.8rem;
    opacity: 0.5;
    line-height: 1.8;
}

/* 3.77:1 -> 7.30:1; still clearly de-emphasised */
.footer h4 {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
    margin-bottom: 20px;
}

.footer-links a,
.footer-social a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
    opacity: 1;
}

.newsletter-form {
    display: flex;
    border: 1px solid rgba(255,255,255,0.2);
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.85rem;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.3);
}

.newsletter-form button {
    padding: 12px 24px;
    background: var(--white);
    color: var(--black);
    border: none;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity 0.3s;
}

.newsletter-form button:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Explicit greys, no opacity: the 0.55 on the paragraph multiplied with the
   links' own opacity and axe measured the links at 4.3:1 (2026-09-02
   Lighthouse). #A3A3A3 on #0A0A0A = 7.9:1; links #D4D4D4 = 13.4:1 and
   underlined so they are not distinguished by colour alone. */
.footer-bottom p {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #A3A3A3;
    text-transform: uppercase;
}

.footer-bottom p a {
    color: #D4D4D4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom p a:hover { color: var(--white); }

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.4s var(--ease);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 2rem;
    padding: 16px;
    opacity: 0.6;
    transition: opacity 0.3s;
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-close { top: 20px; right: 30px; font-size: 2.5rem; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ============ ABOUT PAGE ============ */
.about-hero {
    position: relative;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.about-image {
    flex: 1;
    position: relative;
}

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

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 8%;
    background: var(--black);
}

.about-text h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 40px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.7;
    margin-bottom: 24px;
    max-width: 480px;
}

.about-signature {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
    margin-top: 40px;
    opacity: 0.9;
}

/* ============ CONTACT PAGE ============ */
.contact-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

.contact-image {
    flex: 1;
    position: relative;
}

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

.contact-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 8%;
    background: var(--black);
}

.contact-text h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.contact-text > p {
    font-size: 0.9rem;
    opacity: 0.5;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 480px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    opacity: 0.5;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.35); /* 1.47:1 -> 3.31:1; the border is the only cue a field exists */
    background: transparent;
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255,255,255,0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    /* Placeholders carry the only worked examples on the page
       ("Ej: casa en Peñuelas, 3D/2B con patio…") — 1.77:1 was a third of the
       WCAG minimum. 0.55 gives 6.26:1. */
    color: rgba(255,255,255,0.55);
}

.submit-btn {
    padding: 16px 36px;
    background: var(--white);
    color: var(--black);
    border: none;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: opacity 0.3s;
    align-self: flex-start;
    margin-top: 8px;
}

.submit-btn:hover { opacity: 0.8; }

/* ============ SCROLL ANIMATIONS ============ */
/* Handled via JS inline styles for reliability */

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header { padding: 20px 24px; }

    .menu-toggle { display: flex; }

    .nav {
        position: fixed;
        inset: 0;
        background: var(--black);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        /* visibility (not just opacity) is what removes the closed menu from the
           tab order and the accessibility tree. Without it, tabbing walked four
           invisible links and a screen reader announced a closed menu. */
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
    }

    .nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav a { font-size: 1.2rem; letter-spacing: 0.3em; }

    .hero-content { left: 24px; bottom: 100px; }

    .section-header { padding: 60px 24px 40px; }

    .photo-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 35vw;
        gap: 2px;
    }

    .photo-item.photo-wide { grid-column: span 2; }
    .photo-item.photo-tall { grid-row: span 2; }

    .photo-overlay { opacity: 1; }
    .photo-overlay h3 { font-size: 1rem; }
    .photo-overlay { padding: 16px; }

    .statement-section { height: 60vh; }
    .statement-content blockquote { font-size: 1.2rem; }

    .about-hero,
    .contact-hero { flex-direction: column; }

    .about-image,
    .contact-image { height: 50vh; flex: none; }

    .about-text,
    .contact-text { padding: 60px 24px; }

    .footer { padding: 60px 24px 30px; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 60vw;
    }

    .photo-item.photo-wide { grid-column: span 1; }
    .photo-item.photo-tall { grid-row: span 1; }

    .hero-content h1 { font-size: 2.5rem; }
}

/* ============ FOOTER CONTACT ============ */
.footer-contact { margin-top: 14px; }

.footer-contact a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 2px 0;
    opacity: 0.55;
    transition: opacity 0.3s;
}

.footer-contact a:hover { opacity: 1; }

.footer-credit { margin-top: 10px; }

.footer-credit a {
    color: #D4D4D4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-credit a:hover { color: var(--white); }

/* ============ CONTACT FORM STATES ============ */
.hp-field {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    border: 1px solid rgba(255, 120, 120, 0.4);
    background: rgba(255, 80, 80, 0.08);
    padding: 14px 16px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.form-status a { color: var(--white); }

.form-status-fallback {
    opacity: 0.7;
    margin-top: 6px;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* ============ DIRECT CONTACT / CTA ROW ============ */
.contact-direct {
    margin-top: 48px;
    max-width: 480px;
}

.contact-direct-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.5;
    margin-bottom: 16px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-whatsapp {
    display: inline-block;
    color: #25D366;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 14px 36px;
    border: 1px solid rgba(37, 211, 102, 0.5);
    transition: all 0.4s var(--ease);
}

.btn-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: var(--black);
}

/* ============ SERVICES PAGE ============ */
.services-page {
    background: var(--black);
    padding-top: 140px;
}

.lang-switch {
    text-align: center;
    margin-bottom: 24px;
}

.lang-switch a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.5;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

.lang-switch a:hover { opacity: 1; }

.services-intro {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

.services-intro h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.services-lead {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.6;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    max-width: 1200px;
    margin: 70px auto 0;
    padding: 0 24px;
}

.service-card {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.02);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
}

/* Fixed-price SKU (e.g. the Marpolis-bundled real-estate package) —
   same card shape, a brighter border/background sets it apart from the
   quote-only cards around it without adding a new brand color. */
.service-card-fixed {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.05);
}

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

.service-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.5;
    margin-bottom: 12px;
}

.service-card h2 {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.service-price {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.65;
    margin-bottom: 16px;
}

.service-card ul {
    list-style: none;
    margin: 0 0 24px;
    font-size: 0.9rem;
    line-height: 2;
    opacity: 0.7;
}

.service-card ul li::before {
    content: '\2014\00a0';
    opacity: 0.5;
}

.service-card .cta-row {
    margin-top: auto;
    padding-top: 10px;
}

.service-card .btn-whatsapp,
.service-card .btn-outline {
    padding: 12px 24px;
    font-size: 0.7rem;
}

/* NWM bundle cross-sell */
.bundle-section {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 24px;
}

.bundle-inner {
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
    padding: 60px 40px;
    text-align: center;
}

.bundle-inner h2 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.bundle-inner p {
    max-width: 620px;
    margin: 0 auto 30px;
    opacity: 0.65;
    line-height: 1.8;
}

/* FAQ */
.faq-section {
    max-width: 780px;
    margin: 0 auto;
    padding: 90px 24px 110px;
}

.faq-section h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 34px 22px 0;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    opacity: 0.5;
}

.faq-item[open] summary::after { content: '\2013'; }

.faq-item p {
    padding: 0 0 24px;
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.65;
}

@media (max-width: 860px) {
    .services-page { padding-top: 110px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 36px 24px; }
    .bundle-inner { padding: 44px 24px; }
    .faq-section { padding: 70px 24px 80px; }
}

/* ============ LOCAL LANDING PAGES ============ */
/* Used by the fotografia-*.html pages: one page per buyer type
   (inmobiliaria / turismo / empresas) targeting local search in
   La Serena + Coquimbo. They reuse .service-card, .faq-section and
   .contact-form; only the blocks below are landing-page specific. */

.lp-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    padding: 0 40px 70px;
    overflow: hidden;
}

.lp-hero-img {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.lp-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(10,10,10,0.96) 0%, rgba(10,10,10,0.85) 55%, rgba(10,10,10,0.6) 100%);
}

.lp-hero-content { max-width: 780px; }

.lp-eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* `.lp-hero p` (0,1,1) outranks `.lp-eyebrow` (0,1,0), so the eyebrow needs the
   compound selector or it silently keeps the paragraph's 0.75. */
.lp-hero .lp-eyebrow {
    opacity: 0.8;
}

.lp-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}

.lp-hero p {
    font-size: 1.05rem;
    line-height: 1.75;
    opacity: 0.75;
    max-width: 620px;
    margin-bottom: 32px;
}

/* Value/benefit rows */
.lp-section { padding: 90px 40px; max-width: 1200px; margin: 0 auto; }

.lp-section > h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.lp-section-lead {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.65;
    max-width: 680px;
    margin-bottom: 48px;
}

.lp-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
}

.lp-benefit {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 32px 28px;
    transition: border-color 0.4s var(--ease);
}

.lp-benefit:hover { border-color: rgba(255,255,255,0.28); }

.lp-benefit h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.lp-benefit h3 a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    padding-bottom: 2px;
    transition: border-color 0.3s var(--ease);
}

.lp-benefit h3 a:hover { border-color: var(--white); }

.lp-benefit p {
    font-size: 0.92rem;
    line-height: 1.75;
    opacity: 0.6;
}

/* Proof strip — real frames from the portfolio */
.lp-proof {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 4px;
    padding: 0 4px;
}

.lp-proof figure { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }

.lp-proof img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.lp-proof figure:hover img { transform: scale(1.06); }

.lp-proof figcaption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

/* Closing conversion block: form + direct contact side by side */
.lp-convert {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 40px 110px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.lp-convert h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.lp-convert-aside p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.65;
    margin-bottom: 26px;
}

.lp-checklist { list-style: none; margin-bottom: 32px; }

.lp-checklist li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.92rem;
    line-height: 1.7;
    opacity: 0.7;
}

.lp-checklist li::before {
    content: '\2014';
    position: absolute;
    left: 0;
    opacity: 0.5;
}

@media (max-width: 860px) {
    .lp-hero { padding: 0 24px 56px; min-height: 66vh; }
    .lp-section { padding: 64px 24px; }
    .lp-convert { grid-template-columns: 1fr; gap: 48px; padding: 64px 24px 80px; }
}

/* Language entry point on the English pages.
   The portfolio is English-first, but the paying market is Spanish-speaking
   Coquimbo — a local business landing on the homepage previously had no route
   into the Spanish services pages at all. Slightly emphasised so it reads as a
   language switch rather than another nav item. */
.nav-es {
    opacity: 0.75;
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 4px 10px !important;
    border-radius: 3px;
    transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-es::after { display: none; }

.nav-es:hover { opacity: 1; border-color: var(--white); }


/* ============ LANDING PAGE FIXES (2026-07-22 audit) ============ */

/* #2 — .btn-whatsapp and .btn-outline were visually identical, so the hero
   offered two same-looking buttons and no primary action. Filled treatment is
   scoped to the hero only, so the shared class doesn't paint every CTA green. */
.lp-hero .btn-whatsapp {
    background: #25D366;
    color: var(--black);
    border-color: #25D366;
    font-weight: 700;
}

.lp-hero .btn-whatsapp:hover {
    background: transparent;
    color: #25D366;
}

/* #4 — the header lost mix-blend-mode, so focus styles must be explicit. */
.nav a:focus-visible,
.logo:focus-visible,
.menu-toggle:focus-visible,
.btn-whatsapp:focus-visible,
.btn-outline:focus-visible,
.submit-btn:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

/* BUG-2 — native fragment navigation now does the scrolling, so the target
   needs clearance under the fixed header. */
#cotizar { scroll-margin-top: 110px; }

/* #11 — figcaptions were painted straight onto photographs (text-shadow does
   not count toward contrast); up to 47% of caption pixels fell below 4.5:1. */
.lp-proof figure::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.85), transparent);
    pointer-events: none;
}

.lp-proof figcaption {
    position: relative;
    z-index: 1;
    opacity: 1;
}

/* #10 — service cards use h3 inside a section that already has an h2. */
.service-card h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

/* #3 — on mobile the landing pages run ~6 screens with no persistent way to
   make contact; the only fixed chrome is the header, which has no CTA. */
.wa-fab {
    display: none;
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90; /* under .header (100) so the open mobile menu covers it */
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    border-radius: 999px;
    background: #25D366;
    color: #0A0A0A;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.wa-fab svg { width: 18px; height: 18px; flex: none; }

@media (max-width: 860px) {
    .wa-fab { display: inline-flex; }
    /* Four stacked proof images pushed the closing CTA ~28% further down. */
    .lp-proof figure:nth-child(n + 3) { display: none; }
}

/* ─── Blog / Journal (blog/) ──────────────────────────────────────────────
   Pages under /blog/ are rendered by _deploy/blog-publish.js. They reuse the
   site chrome (.header/.footer), .faq-item, .cta-row, .btn-whatsapp and
   .btn-outline; everything blog-specific lives below. Same dark editorial
   look: Playfair headings, Inter body, generous air. */

.blog-page {
    background: var(--black);
    max-width: 780px;
    margin: 0 auto;
    padding: 150px 24px 90px;
}

.blog-intro { text-align: center; margin-bottom: 60px; }

.blog-intro h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.blog-lead {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.6;
    max-width: 620px;
    margin: 0 auto;
}

.blog-card {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 36px 0;
}

.blog-card h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.blog-card h2 a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.blog-card h2 a:hover { border-color: var(--white); }

.blog-card-meta {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.45;
    margin-bottom: 14px;
}

.blog-card-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.65;
}

/* Article pages */

.article-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.5;
    margin-bottom: 14px;
}

.article h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.12;
    margin-bottom: 16px;
}

.article-meta {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.45;
    margin-bottom: 36px;
}

.article-lede {
    font-size: 1.15rem;
    line-height: 1.75;
    opacity: 0.85;
    margin-bottom: 36px;
}

.article h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 44px 0 16px;
}

.article h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 32px 0 12px;
}

.article p {
    font-size: 0.98rem;
    line-height: 1.85;
    opacity: 0.75;
    margin-bottom: 18px;
}

.article ul {
    list-style: none;
    margin: 0 0 24px;
    font-size: 0.95rem;
    line-height: 2;
    opacity: 0.75;
}

.article ul li::before {
    content: '\2014\00a0';
    opacity: 0.5;
}

.article .faq-item p { opacity: 0.65; }

.article-cta {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.02);
    padding: 36px 32px;
    margin: 56px 0 36px;
    text-align: center;
}

.article-cta-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 22px;
}

.article-cta .cta-row { justify-content: center; }

.article-back { margin-top: 10px; }

.article-back a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.article-back a:hover { opacity: 1; }

@media (max-width: 760px) {
    .blog-page { padding-top: 120px; }
    .article-cta { padding: 28px 20px; }
}

/* Foto de portada del artículo y su crédito.
   El crédito acompaña a la imagen en la propia página: es la regla que sigue
   todo el portafolio, y en las fotos con licencia CC BY es una condición de la
   licencia, no un adorno. Registro: assets/photos/credits.json. */
.article-photo { margin: 0 0 28px; }
.article-photo img {
    width: 100%; height: auto; display: block;
    aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px;
}
.article-photo figcaption {
    margin-top: 8px; font-size: 12.5px; line-height: 1.5; opacity: .72;
}
.article-photo figcaption a { color: inherit; }
.blog-card-thumb { display: block; margin: 0 0 14px; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
