:root {
    --bg: #f7f3ec;
    --bg-soft: #fffaf3;
    --surface: rgba(255, 250, 243, 0.86);
    --surface-solid: #fffaf3;
    --text: #1b1a17;
    --muted: #6f6a5f;
    --line: rgba(27, 26, 23, 0.12);
    --primary: #183d32;
    --primary-2: #275745;
    --gold: #c5a265;
    --shadow: 0 24px 80px rgba(24, 61, 50, 0.16);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

[data-theme='dark'] {
    --bg: #0d1110;
    --bg-soft: #121816;
    --surface: rgba(18, 24, 22, 0.86);
    --surface-solid: #151d1a;
    --text: #f4efe6;
    --muted: #b7afa1;
    --line: rgba(244, 239, 230, 0.12);
    --primary: #d4b675;
    --primary-2: #e1c98b;
    --gold: #d9bd78;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.25s ease, color 0.25s ease;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section-pad { padding: 92px 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 16px clamp(18px, 4vw, 52px);
    background: color-mix(in srgb, var(--bg-soft) 84%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #183d32, #c5a265);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.brand strong {
    display: block;
    font-size: 0.98rem;
    letter-spacing: -0.02em;
}
.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.2;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 0.92rem;
    color: var(--muted);
}
.main-nav a:hover { color: var(--text); }

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}
.lang-switch a {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}
.lang-switch a.active {
    color: var(--surface-solid);
    background: var(--primary);
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
    font-size: 1.02rem;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    display: grid;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--bg) 90%, transparent), color-mix(in srgb, var(--bg) 30%, transparent)),
        radial-gradient(circle at 72% 22%, rgba(197, 162, 101, 0.35), transparent 34%),
        radial-gradient(circle at 12% 86%, rgba(24, 61, 50, 0.25), transparent 34%),
        url('../img/terrain-placeholder.svg') center/cover no-repeat;
    opacity: 0.96;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
    gap: 44px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 800;
}
.eyebrow::before {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--gold);
}

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.04em; }
h1, h2 { font-family: var(--font-display); }
h1 { font-size: clamp(3.1rem, 8vw, 6.8rem); max-width: 900px; }
h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
h3 { font-size: 1.35rem; }
p { color: var(--muted); margin: 0; }

.hero-copy p {
    max-width: 640px;
    margin-top: 24px;
    font-size: 1.15rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 18px 50px rgba(24, 61, 50, 0.22);
}
[data-theme='dark'] .btn-primary { color: #15130f; }
.btn-outline {
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
}
.btn.full { width: 100%; margin-top: 12px; }

.hero-card {
    min-height: 430px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35)),
        url('../img/terrain-placeholder.svg') center/cover no-repeat;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.glass-panel {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(18px);
    color: #fff;
}
.glass-panel span {
    display: block;
    font-size: 4rem;
    font-family: var(--font-display);
    line-height: 0.9;
}
.glass-panel strong { display: block; margin-top: 8px; }
.glass-panel p { color: rgba(255,255,255,0.82); margin-top: 6px; }

.section-head {
    display: grid;
    gap: 14px;
    max-width: 820px;
    margin-bottom: 34px;
}
.section-head p { font-size: 1.05rem; max-width: 680px; }

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.property-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-solid);
    box-shadow: 0 20px 60px rgba(24, 61, 50, 0.08);
}
.property-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.property-media img,
.property-main-image img,
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.property-card:hover .property-media img { transform: scale(1.05); }
.property-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.property-badges span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(24, 61, 50, 0.85);
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}
.property-body { padding: 24px; }
.property-type {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.property-body h3 { margin-top: 8px; }
.property-body p { margin-top: 12px; min-height: 78px; }
.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.property-meta span {
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--muted);
    background: color-mix(in srgb, var(--bg) 82%, var(--surface-solid));
    font-size: 0.82rem;
    border: 1px solid var(--line);
}
.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.link-arrow { color: var(--primary); font-weight: 800; }

.why-section { background: color-mix(in srgb, var(--surface-solid) 60%, transparent); }
.why-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: start;
}
.why-cards { display: grid; gap: 16px; }
.why-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
}
.why-card span {
    color: var(--gold);
    font-weight: 900;
}
.why-card h3 { margin-top: 8px; }
.why-card p { margin-top: 10px; }

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: clamp(28px, 5vw, 58px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 80% 10%, rgba(197, 162, 101, 0.25), transparent 32%),
        var(--surface-solid);
    box-shadow: var(--shadow);
}
.cta h2 { margin-top: 10px; }
.cta p { margin-top: 14px; max-width: 600px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.floating-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 999px;
    color: #fff;
    background: #1faa59;
    font-weight: 900;
    box-shadow: 0 18px 50px rgba(31, 170, 89, 0.3);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 26px 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 0.92rem;
}
.footer-inner a { font-weight: 800; color: var(--text); }

.property-hero {
    background:
        radial-gradient(circle at 75% 15%, rgba(197, 162, 101, 0.25), transparent 28%),
        color-mix(in srgb, var(--surface-solid) 50%, transparent);
}
.property-hero-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 42px;
    align-items: center;
}
.back-link {
    display: inline-flex;
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 800;
}
.property-hero-copy p { margin-top: 18px; font-size: 1.08rem; }
.property-quick-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}
.property-quick-meta div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}
.property-quick-meta span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}
.property-quick-meta strong { display: block; margin-top: 6px; line-height: 1.25; }
.property-main-image {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 42px;
}
.detail-content {
    display: grid;
    gap: 24px;
}
.detail-content h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 12px; }
.detail-content p { font-size: 1.05rem; }
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.feature-list li {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-solid);
}
.feature-list li::before {
    content: '✓';
    color: var(--gold);
    font-weight: 900;
    margin-right: 10px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.gallery-grid a {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
}
.sidebar-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    box-shadow: 0 16px 48px rgba(24, 61, 50, 0.08);
}
.sticky-card { position: sticky; top: 100px; }
dl { margin: 18px 0 20px; display: grid; gap: 12px; }
dl div {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
dt { color: var(--muted); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
dd { margin: 5px 0 0; font-weight: 800; }
.page-404 { min-height: 60vh; display: grid; align-items: center; }
.empty-state {
    padding: 38px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    color: var(--muted);
    background: var(--surface-solid);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }

@supports not (color: color-mix(in srgb, white, black)) {
    .site-header, .property-meta span, .why-section, .property-hero { background: var(--bg-soft); }
}

@media (max-width: 980px) {
    .site-header { align-items: flex-start; flex-wrap: wrap; }
    .main-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
    .hero-grid,
    .property-hero-grid,
    .why-grid,
    .detail-layout { grid-template-columns: 1fr; }
    .properties-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .property-quick-meta { grid-template-columns: 1fr; }
    .sticky-card { position: static; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 28px, 1180px); }
    .section-pad { padding: 62px 0; }
    .brand { min-width: 0; }
    .brand small { display: none; }
    .header-actions { margin-left: auto; }
    .hero { min-height: 640px; }
    .hero-card { min-height: 300px; }
    .properties-grid,
    .feature-list,
    .gallery-grid { grid-template-columns: 1fr; }
    .cta { align-items: flex-start; flex-direction: column; }
    .footer-inner { flex-direction: column; }
    h1 { font-size: clamp(2.55rem, 16vw, 4.2rem); }
    .floating-whatsapp { left: 14px; right: 14px; bottom: 14px; }
    .site-footer { padding-bottom: 86px; }
}


/* Ajustes solicitados: logos libres, más grandes, sin acceso público al administrador, WhatsApp con icono y mapa Google */
.brand-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 10px 20px rgba(24, 61, 50, 0.14));
}
.brand strong { font-size: 1.04rem; }
.hero-logo-wrap {
    width: min(340px, 78vw);
    margin: 0 auto 24px;
    padding: 0;
    display: flex;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.hero-logo-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 36px rgba(24, 61, 50, 0.18));
}
.cta-content {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 32px);
    min-width: 0;
}
.cta-logo {
    width: clamp(130px, 16vw, 190px);
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 14px 30px rgba(24, 61, 50, 0.14));
}
.btn-whatsapp,
.floating-whatsapp {
    gap: 9px;
}
.whatsapp-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
}
.btn-whatsapp .whatsapp-icon { width: 22px; height: 22px; }
.map-card {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-solid);
    box-shadow: 0 16px 48px rgba(24, 61, 50, 0.08);
}
.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.map-note {
    margin-top: -10px;
    font-size: 0.92rem !important;
}
@media (max-width: 680px) {
    .brand-logo { width: 76px; height: 76px; }
    .hero-logo-wrap { width: min(270px, 84vw); }
    .cta-content { align-items: flex-start; flex-direction: column; }
    .cta-logo { width: min(180px, 72vw); }
    .map-card { aspect-ratio: 4 / 3; }
}

/* Tarjeta inmobiliaria destacada: reemplaza el slider vertical simple por una vitrina comercial */
.hero-featured-card {
    position: relative;
    align-self: center;
    min-height: 560px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #15241f;
    border: 1px solid var(--line);
    isolation: isolate;
}
.hero-featured-header {
    position: absolute;
    z-index: 6;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}
.hero-featured-header span,
.hero-featured-header small {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(24, 61, 50, 0.74);
    border: 1px solid rgba(255,255,255,0.24);
    backdrop-filter: blur(14px);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.hero-featured-header small {
    color: #241c10;
    background: rgba(217, 189, 120, 0.92);
}
.hero-featured-stage {
    position: absolute;
    inset: 0;
}
.hero-featured-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    transform: translateY(34px) scale(0.985);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}
.hero-featured-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 3;
}
.hero-featured-slide.is-leaving {
    opacity: 0;
    transform: translateY(-34px) scale(0.985);
    z-index: 2;
}
.hero-featured-media {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}
.hero-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 5.5s ease;
}
.hero-featured-slide.is-active .hero-featured-media img {
    transform: scale(1.1);
}
.hero-featured-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.22) 38%, rgba(0,0,0,0.76) 100%),
        radial-gradient(circle at 26% 18%, rgba(255,255,255,0.16), transparent 34%),
        linear-gradient(135deg, rgba(24,61,50,0.16), rgba(197,162,101,0.1));
}
.hero-featured-content {
    position: relative;
    z-index: 4;
    margin: 82px 20px 58px;
    padding: clamp(20px, 3vw, 28px);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.22);
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.12));
    backdrop-filter: blur(18px);
    color: #fff;
    box-shadow: 0 20px 70px rgba(0,0,0,0.22);
}
.hero-featured-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.hero-featured-kicker span,
.hero-featured-kicker strong {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.hero-featured-kicker span {
    color: #241c10;
    background: rgba(217, 189, 120, 0.94);
}
.hero-featured-kicker strong {
    color: #fff;
    background: rgba(24, 61, 50, 0.72);
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-featured-content h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    color: #fff;
}
.hero-featured-content p {
    margin-top: 12px;
    color: rgba(255,255,255,0.84);
    font-size: 0.98rem;
    line-height: 1.55;
}
.hero-featured-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.hero-featured-meta span {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.12);
    min-width: 0;
}
.hero-featured-meta small {
    color: rgba(255,255,255,0.66);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.hero-featured-meta strong {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.hero-featured-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.btn-glass {
    color: #fff;
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(14px);
}
.btn-glass:hover {
    border-color: rgba(255,255,255,0.44);
    background: rgba(255,255,255,0.22);
}
.hero-featured-dots {
    position: absolute;
    z-index: 7;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(14px);
}
.hero-featured-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.46);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}
.hero-featured-dot.is-active {
    width: 26px;
    background: var(--gold);
}
.hero-featured-card:hover .hero-featured-slide.is-active .hero-featured-media img {
    transform: scale(1.08);
}
@media (prefers-reduced-motion: reduce) {
    .hero-featured-slide,
    .hero-featured-media img,
    .hero-featured-dot {
        transition: none;
    }
}
@media (max-width: 980px) {
    .hero-featured-card { min-height: 520px; }
    .hero-featured-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .hero-featured-card { min-height: 590px; }
    .hero-featured-header { top: 14px; left: 14px; right: 14px; }
    .hero-featured-header small { display: none; }
    .hero-featured-content { margin: 76px 14px 58px; padding: 18px; border-radius: 22px; }
    .hero-featured-content h3 { font-size: clamp(1.85rem, 11vw, 2.7rem); }
    .hero-featured-content p { font-size: 0.92rem; }
    .hero-featured-meta { grid-template-columns: 1fr; gap: 8px; }
    .hero-featured-actions .btn { width: 100%; }
    .hero-featured-dots { bottom: 16px; }
}

/* Corrección visual: vitrina limpia para el hero, sin tarjeta pesada ni exceso de datos */
.hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
}
.hero-showcase {
    align-self: center;
    width: 100%;
}
.hero-showcase-frame {
    position: relative;
    min-height: 470px;
    height: min(560px, 64vh);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #16231f;
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    box-shadow: 0 28px 90px rgba(24, 61, 50, 0.20);
    isolation: isolate;
}
.hero-showcase-stage,
.hero-showcase-slide,
.hero-showcase-image {
    position: absolute;
    inset: 0;
}
.hero-showcase-slide {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.72s ease, transform 0.72s ease;
    pointer-events: none;
}
.hero-showcase-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
}
.hero-showcase-slide.is-leaving {
    opacity: 0;
    transform: translateY(-38px);
    z-index: 1;
}
.hero-showcase-image {
    display: block;
    overflow: hidden;
}
.hero-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.035);
    transition: transform 5.5s ease;
}
.hero-showcase-slide.is-active .hero-showcase-image img {
    transform: scale(1.085);
}
.hero-showcase-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 15, 13, 0.78) 0%, rgba(8, 15, 13, 0.36) 43%, rgba(8, 15, 13, 0.08) 100%),
        linear-gradient(180deg, rgba(8, 15, 13, 0.04) 0%, rgba(8, 15, 13, 0.76) 100%);
}
.hero-showcase-topline {
    position: absolute;
    z-index: 8;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}
.hero-showcase-topline span,
.hero-showcase-topline strong {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(8, 15, 13, 0.34);
    backdrop-filter: blur(14px);
    font-size: 0.74rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-showcase-topline strong {
    color: #241c10;
    background: rgba(217, 189, 120, 0.94);
    border-color: rgba(217, 189, 120, 0.36);
}
.hero-showcase-info {
    position: absolute;
    z-index: 7;
    left: clamp(22px, 4vw, 38px);
    right: 118px;
    bottom: clamp(22px, 4vw, 38px);
    max-width: 520px;
    color: #fff;
}
.hero-showcase-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #241c10;
    background: rgba(217, 189, 120, 0.94);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-showcase-info h3 {
    margin-top: 14px;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.8vw, 4.4rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 42px rgba(0,0,0,0.38);
}
.hero-showcase-info p {
    max-width: 440px;
    margin-top: 12px;
    color: rgba(255,255,255,0.86);
    font-weight: 600;
}
.hero-showcase-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.hero-showcase-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    color: rgba(255,255,255,0.94);
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.20);
    backdrop-filter: blur(12px);
    font-size: 0.82rem;
    font-weight: 800;
}
.hero-showcase-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 20px;
    padding: 0 18px;
    border-radius: 999px;
    color: #13261f;
    background: #fffaf3;
    font-weight: 900;
    box-shadow: 0 18px 42px rgba(0,0,0,0.20);
    transition: transform 0.2s ease, background 0.2s ease;
}
.hero-showcase-link:hover {
    transform: translateY(-2px);
    background: #ffffff;
}
.hero-showcase-thumbs {
    position: absolute;
    z-index: 9;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 10px;
}
.hero-showcase-thumb {
    width: 76px;
    height: 76px;
    padding: 0;
    border: 2px solid rgba(255,255,255,0.34);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,0.12);
    cursor: pointer;
    opacity: 0.72;
    box-shadow: 0 12px 32px rgba(0,0,0,0.22);
    transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}
.hero-showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-showcase-thumb:hover,
.hero-showcase-thumb.is-active {
    opacity: 1;
    transform: translateY(-2px);
    border-color: var(--gold);
}
.hero-showcase:hover .hero-showcase-slide.is-active .hero-showcase-image img {
    transform: scale(1.065);
}

@media (prefers-reduced-motion: reduce) {
    .hero-showcase-slide,
    .hero-showcase-image img,
    .hero-showcase-thumb,
    .hero-showcase-link {
        transition: none;
    }
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-showcase-frame {
        height: 520px;
    }
}

@media (max-width: 680px) {
    .hero-showcase-frame {
        min-height: 460px;
        height: 460px;
        border-radius: 28px;
    }
    .hero-showcase-topline {
        top: 14px;
        left: 14px;
        right: 14px;
    }
    .hero-showcase-topline span {
        display: none;
    }
    .hero-showcase-info {
        left: 18px;
        right: 18px;
        bottom: 92px;
    }
    .hero-showcase-info h3 {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }
    .hero-showcase-info p {
        font-size: 0.94rem;
    }
    .hero-showcase-chips span {
        font-size: 0.78rem;
    }
    .hero-showcase-thumbs {
        left: 18px;
        right: 18px;
        top: auto;
        bottom: 18px;
        transform: none;
        display: flex;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .hero-showcase-thumb {
        width: 66px;
        height: 66px;
        flex: 0 0 66px;
        border-radius: 18px;
    }
}

/* Ajuste final solicitado: más imagen, menos texto y sin filtro oscuro encima del slider */
.hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
    gap: clamp(30px, 4vw, 64px);
    align-items: center;
}
.hero-showcase-frame {
    min-height: 540px;
    height: min(660px, 72vh);
    border-radius: 34px;
    background: #f5f1e8;
    box-shadow: 0 18px 52px rgba(24, 61, 50, 0.12);
}
.hero-showcase-slide::after {
    display: none;
    background: none;
}
.hero-showcase-image img {
    filter: none;
    transform: scale(1.01);
}
.hero-showcase-slide.is-active .hero-showcase-image img {
    transform: scale(1.035);
}
.hero-showcase:hover .hero-showcase-slide.is-active .hero-showcase-image img {
    transform: scale(1.025);
}
.hero-showcase-topline span,
.hero-showcase-topline strong {
    min-height: 30px;
    padding: 6px 10px;
    color: #14251f;
    border-color: rgba(255,255,255,0.70);
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(10px);
    font-size: 0.66rem;
    letter-spacing: 0.075em;
}
.hero-showcase-topline strong {
    color: #241c10;
    background: rgba(217, 189, 120, 0.92);
    border-color: rgba(217, 189, 120, 0.45);
}
.hero-showcase-info {
    left: 22px;
    right: 108px;
    bottom: 22px;
    max-width: 370px;
    padding: 14px 16px;
    border-radius: 20px;
    color: #14251f;
    background: rgba(255, 250, 243, 0.82);
    border: 1px solid rgba(255,255,255,0.64);
    box-shadow: 0 16px 42px rgba(0,0,0,0.11);
    backdrop-filter: blur(12px);
}
.hero-showcase-label {
    min-height: 24px;
    padding: 5px 9px;
    font-size: 0.58rem;
    letter-spacing: 0.075em;
}
.hero-showcase-info h3 {
    margin-top: 8px;
    color: #14251f;
    font-size: clamp(1.25rem, 2.35vw, 2rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-shadow: none;
}
.hero-showcase-info p {
    max-width: 320px;
    margin-top: 6px;
    color: rgba(20, 37, 31, 0.76);
    font-size: 0.84rem;
    line-height: 1.35;
    font-weight: 700;
}
.hero-showcase-chips {
    gap: 6px;
    margin-top: 10px;
}
.hero-showcase-chips span {
    min-height: 26px;
    padding: 5px 8px;
    color: rgba(20, 37, 31, 0.82);
    background: rgba(20, 37, 31, 0.07);
    border-color: rgba(20, 37, 31, 0.10);
    backdrop-filter: none;
    font-size: 0.72rem;
    font-weight: 850;
}
.hero-showcase-link {
    min-height: 34px;
    margin-top: 12px;
    padding: 0 14px;
    color: #fffaf3;
    background: #183d32;
    font-size: 0.82rem;
    box-shadow: none;
}
.hero-showcase-link:hover {
    background: #102920;
}
.hero-showcase-thumbs {
    right: 16px;
    gap: 8px;
}
.hero-showcase-thumb {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    border-color: rgba(255,255,255,0.70);
    background: rgba(255,255,255,0.55);
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-showcase-frame {
        min-height: 520px;
        height: 560px;
    }
}

@media (max-width: 680px) {
    .hero-showcase-frame {
        min-height: 440px;
        height: 440px;
        border-radius: 28px;
    }
    .hero-showcase-topline {
        top: 12px;
        left: 12px;
        right: 12px;
    }
    .hero-showcase-info {
        left: 14px;
        right: 14px;
        bottom: 86px;
        max-width: none;
        padding: 12px;
        border-radius: 18px;
    }
    .hero-showcase-label {
        font-size: 0.54rem;
    }
    .hero-showcase-info h3 {
        font-size: clamp(1.35rem, 7vw, 1.8rem);
    }
    .hero-showcase-info p {
        font-size: 0.78rem;
    }
    .hero-showcase-chips span {
        font-size: 0.68rem;
    }
    .hero-showcase-link {
        min-height: 32px;
        font-size: 0.76rem;
    }
    .hero-showcase-thumbs {
        left: 14px;
        right: 14px;
        bottom: 14px;
        gap: 8px;
    }
    .hero-showcase-thumb {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 16px;
    }
}

/* Visor interno para galería de propiedades */
.gallery-grid a {
    position: relative;
    cursor: zoom-in;
}
.gallery-grid a::after {
    content: 'Ver';
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.46);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.gallery-grid a:hover::after {
    opacity: 1;
    transform: translateY(0);
}
body.lightbox-open { overflow: hidden; }
.llh-lightbox[hidden] { display: none; }
.llh-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3vw, 34px);
}
.llh-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 12, 11, 0.86);
    backdrop-filter: blur(12px);
}
.llh-lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(1160px, 100%);
    height: min(760px, calc(100vh - 32px));
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(12, 16, 15, 0.82);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}
.llh-lightbox-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.llh-lightbox-count {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}
.llh-lightbox-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.llh-lightbox button {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}
.llh-lightbox button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}
.llh-lightbox-control {
    min-width: 42px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 900;
}
.llh-lightbox-close { font-size: 1.35rem; }
.llh-lightbox-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    margin: 0;
    padding: clamp(14px, 2vw, 28px) clamp(58px, 7vw, 92px);
    overflow: hidden;
}
.llh-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
    transform: scale(var(--lightbox-zoom, 1));
    transform-origin: center center;
    transition: transform 0.18s ease;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}
.llh-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 56px;
    border-radius: 999px;
    font-size: 2.1rem;
    line-height: 1;
}
.llh-lightbox-prev { left: 18px; }
.llh-lightbox-next { right: 18px; }
.llh-lightbox-zoom-label {
    min-width: 56px;
    text-align: center;
    font-size: 0.86rem;
}
@media (max-width: 680px) {
    .gallery-grid a::after { opacity: 1; transform: none; }
    .llh-lightbox { padding: 10px; }
    .llh-lightbox-panel {
        height: calc(100vh - 20px);
        border-radius: 20px;
    }
    .llh-lightbox-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .llh-lightbox-controls {
        width: 100%;
        justify-content: space-between;
    }
    .llh-lightbox-control { min-width: 38px; height: 38px; padding: 0 10px; }
    .llh-lightbox-stage { padding: 66px 12px 18px; }
    .llh-lightbox-nav {
        top: 16px;
        width: 44px;
        height: 44px;
        font-size: 1.7rem;
    }
    .llh-lightbox-prev { left: 14px; }
    .llh-lightbox-next { right: 14px; }
}

/* Página Nuestros Servicios: mismo lenguaje visual del sitio principal */
.main-nav a.active {
    color: var(--text);
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(197, 162, 101, 0.24), transparent 30%),
        radial-gradient(circle at 12% 85%, rgba(24, 61, 50, 0.16), transparent 34%),
        color-mix(in srgb, var(--surface-solid) 58%, transparent);
}

.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.about-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 82% 14%, rgba(197, 162, 101, 0.22), transparent 34%),
        var(--surface-solid);
    box-shadow: var(--shadow);
}

.about-panel::after {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 16%, transparent);
}

.about-panel img,
.about-panel-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: min(220px, 72%);
    height: auto;
    margin-bottom: 22px;
    filter: drop-shadow(0 18px 36px rgba(24, 61, 50, 0.14));
}

.about-panel span {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 22px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #183d32, #c5a265);
    font-weight: 900;
    font-size: 1.25rem;
}

.about-panel h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.about-panel p {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    font-size: 1.02rem;
}

.split-section {
    background: color-mix(in srgb, var(--surface-solid) 42%, transparent);
}

.about-narrative {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.about-text {
    display: grid;
    gap: 18px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    box-shadow: 0 18px 58px rgba(24, 61, 50, 0.08);
}

.about-text p {
    font-size: 1.05rem;
}

.services-section {
    background:
        linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-solid) 34%, transparent));
}

.service-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    box-shadow: 0 20px 60px rgba(24, 61, 50, 0.08);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}

.service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 34px;
    margin-bottom: 18px;
    padding: 0 12px;
    border-radius: 999px;
    color: #241c10;
    background: color-mix(in srgb, var(--gold) 76%, var(--surface-solid));
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.service-card h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.service-card p {
    margin-top: 14px;
}

.service-list {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.service-list li {
    position: relative;
    padding: 12px 12px 12px 36px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: color-mix(in srgb, var(--bg) 62%, var(--surface-solid));
    font-weight: 700;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 14px;
    top: 12px;
    color: var(--gold);
    font-weight: 900;
}

.values-section {
    padding-top: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.value-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
}

.value-card h3 {
    color: var(--primary);
}

.value-card p {
    margin-top: 10px;
}

.contact-cta .cta-content {
    flex: 1 1 520px;
}

.contact-cta .cta-actions {
    justify-content: flex-end;
}

@media (max-width: 980px) {
    .about-hero-grid,
    .about-narrative,
    .service-groups,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-cta .cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .about-panel img,
    .about-panel-logo {
        width: min(190px, 78%);
    }
}

/* Contacto global compacto: menos alto y botones apilados */
#contacto.section-pad {
    padding: clamp(22px, 4vw, 44px) 0;
}

.contact-cta.cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
    align-items: center;
    gap: clamp(16px, 3vw, 28px);
    padding: clamp(18px, 3.2vw, 32px);
}

.contact-cta .cta-content {
    flex: initial;
    display: grid;
    grid-template-columns: clamp(68px, 8vw, 98px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(14px, 2.4vw, 22px);
}

.contact-cta .cta-logo {
    width: clamp(68px, 8vw, 98px);
    max-height: 86px;
    object-fit: contain;
}

.contact-cta .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
}

.contact-cta .eyebrow::before {
    width: 24px;
}

.contact-cta h2 {
    margin-top: 6px;
    font-size: clamp(1.35rem, 2.4vw, 2.15rem);
    line-height: 1.08;
    max-width: 760px;
}

.contact-cta p {
    margin-top: 7px;
    max-width: 680px;
    font-size: 0.96rem;
    line-height: 1.55;
}

.contact-cta .cta-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.contact-cta .cta-actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .contact-cta.cta {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .contact-cta .cta-actions {
        max-width: 280px;
    }
}

@media (max-width: 560px) {
    #contacto.section-pad {
        padding: 24px 0;
    }

    .contact-cta.cta {
        padding: 20px;
    }

    .contact-cta .cta-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-cta .cta-logo {
        width: min(112px, 48vw);
        max-height: 76px;
    }

    .contact-cta .cta-actions {
        max-width: none;
    }
}

/* Ajuste visual final botones de contacto: columna limpia, premium y consistente */
.contact-cta .cta-actions {
    width: min(100%, 238px);
    align-items: stretch;
    justify-self: end;
    gap: 12px;
}

.contact-cta .cta-actions .btn {
    position: relative;
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.015em;
    box-shadow: 0 14px 34px rgba(24, 61, 50, 0.13);
}

.contact-cta .cta-actions .btn svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
}

.contact-cta .cta-actions .btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-cta .cta-actions .btn-whatsapp {
    color: #fff;
    border-color: color-mix(in srgb, var(--primary) 70%, var(--gold));
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.contact-cta .cta-actions .btn-email {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
    background: color-mix(in srgb, var(--surface-solid) 88%, var(--gold));
}

.contact-cta .cta-actions .btn-email:hover {
    border-color: color-mix(in srgb, var(--gold) 70%, var(--primary));
    background: color-mix(in srgb, var(--surface-solid) 78%, var(--gold));
}

[data-theme='dark'] .contact-cta .cta-actions .btn-whatsapp,
[data-theme='dark'] .contact-cta .cta-actions .btn-whatsapp svg {
    color: #f8f3e8;
}

[data-theme='dark'] .contact-cta .cta-actions .btn-email {
    color: #f8f3e8;
    background: rgba(255,255,255,0.08);
    border-color: rgba(217,189,120,0.42);
}

.email-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
}

@media (max-width: 860px) {
    .contact-cta .cta-actions {
        justify-self: start;
        width: min(100%, 280px);
        max-width: 280px;
    }
}

@media (max-width: 560px) {
    .contact-cta .cta-actions {
        justify-self: stretch;
        width: 100%;
        max-width: none;
    }

    .contact-cta .cta-actions .btn {
        min-height: 48px;
        border-radius: 15px;
    }
}

/* Corrección final: WhatsApp contacto sin texto cortado */
.contact-cta .cta-actions {
    width: min(100%, 312px);
    max-width: 312px;
}

.contact-cta .cta-actions .btn {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    min-height: 52px;
    height: auto;
    padding: 13px 18px;
    gap: 9px;
    line-height: 1.15;
    letter-spacing: 0;
    white-space: normal;
}

.contact-cta .cta-actions .btn span {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    text-align: center;
}

.contact-cta .cta-actions .btn-whatsapp span {
    font-size: 0.94rem;
    font-weight: 800;
}

@media (max-width: 860px) {
    .contact-cta .cta-actions {
        width: min(100%, 312px);
        max-width: 312px;
    }
}

@media (max-width: 560px) {
    .contact-cta .cta-actions {
        width: 100%;
        max-width: none;
    }

    .contact-cta .cta-actions .btn {
        min-height: 50px;
        padding: 13px 16px;
    }
}
