@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   INVERSIONES D'ALROC REAL ESTATE — ARQUITECTURA VISUAL ALROCWEB
   Estética Clásica, Diáfana y Arquitectónica. Cero Bento, Cero Polimorfismo Exagerado.
   Inspirada en el Altar y Santuario de Nuestra Señora del Valle (Margarita)
   ========================================================================== */

:root {
    /* Paleta Victoriana AlRoc (Parchment, Alabastro, Mármol y Oro Antiguo) */
    --bg-canvas:           #F6F1E7; /* Pergamino marfil cálido victoriano */
    --bg-surface:          #FCFAF6; /* Superficie pura de tarjetas con velo marfil */
    --bg-card-warm:        #EEE5D5; /* Marfil / arenisca suave */
    --bg-card-subtle:      #E4D9C5; /* Fondo secundario archival */
    
    /* Metales y Orfebrería Victoriana */
    --gold:                #B88E3E; /* Oro antiguo victoriano enriquecido */
    --gold-light:          #D4B062; /* Hoja de oro bruñido */
    --gold-dark:           #8C6820; /* Bronce orfebre clásico */
    --gold-subtle:         rgba(184, 142, 62, 0.16);
    --gold-border:         rgba(184, 142, 62, 0.42);
    
    /* Acentos Arquitectónicos Nobles */
    --emerald-column:      #1D3D2E; /* Verde heráldico imperial victoriano */
    --emerald-light:       #E5EFE9; /* Lavado esmeralda suave */
    --marian-blue:         #33566E; /* Azul prusiano clásico */
    --marian-light:        #EBF2F6; /* Brisa caribeña suave */
    
    /* Tipografía Editorial y Contraste */
    --text-headline:       #161310; /* Carbón obsidiana profundo */
    --text-body:           #3E3832; /* Tinta mineral de imprenta */
    --text-muted:          #6F665C; /* Subtítulos y capitulares */
    --text-gold:           #8C6820; /* Rótulos en oro visible */
    
    /* Sombras Naturales Arquitectónicas */
    --shadow-soft:         0 4px 20px rgba(40, 34, 25, 0.07), 0 1px 3px rgba(40, 34, 25, 0.05);
    --shadow-elevated:     0 16px 40px rgba(40, 34, 25, 0.12), 0 2px 8px rgba(184, 142, 62, 0.18);
    --shadow-subtle:       0 2px 10px rgba(40, 34, 25, 0.05);
    
    /* Geometría Clásica Victoriana */
    --radius-arch:         180px 180px 4px 4px;
    --radius-card:         4px;                  /* Borde recto arquitectónico victoriano */
    --radius-pill:         4px;                  /* Distintivos con esquinas nítidas */
    --border-hairline:     1px solid rgba(184, 142, 62, 0.38);
    --border-classical:    3px double rgba(184, 142, 62, 0.55);

    /* Estilo Victoriano con Vidrios de Iglesia (Inspirado en POP-upPAGINAWEBok / Virgen del Valle) */
    --vitral-obsidian:     #0B0B0E; /* Carbón profundo de nave de basílica */
    --vitral-cyan:         #00C9DB; /* Turquesa sacro luminoso del vitral de la Virgen */
    --vitral-cyan-deep:    #009BB0; /* Turquesa mineral */
    --vitral-sapphire:     #124386; /* Azul zafiro catedralicio de rosetones */
    --vitral-gold:         #F3C64D; /* Pan de oro sagrado y orfebrería de la corona */
    --vitral-amber:        #E5A93C; /* Ámbar dorado cálido */
    --vitral-lead:         #181820; /* Plomo de unión y contorno de vitral */
    --vitral-silver:       #F0F3F6; /* Trazo de luz y plata */
    --vitral-glow-cyan:    0 0 24px rgba(0, 201, 219, 0.45);
    --vitral-glow-gold:    0 0 20px rgba(243, 198, 77, 0.45);
}

/* ===== RESET & TIPOGRAFÍA BASE ===== */
* {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    border: none;
}

*::selection {
    background-color: var(--gold-light);
    color: var(--text-headline);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--bg-canvas);
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
    background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.45) 0%, rgba(246,241,231,0.85) 100%);
    background-attachment: fixed;
}

/* Prevención definitiva de auto-zoom en iOS Safari */
input:not(.field-input), textarea {
    font-size: 16px !important;
}

/* Títulos con Jerarquía Clásica y Serif */
h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-headline);
    letter-spacing: -0.015em;
}

.font-cinzel {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.08em;
}

/* ===== SECCIONES BASE ===== */
section {
    min-height: 100vh;
    padding: 12rem 9% 6rem 9%;
    position: relative;
}

/* Filigrana & Divisor Clásico Victoriano */
.gold-divider {
    width: 160px;
    height: 18px;
    background: none;
    margin: 1.6rem auto 2.6rem auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gold-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
}

.gold-divider::after {
    content: '❖';
    position: relative;
    color: var(--gold-dark);
    font-size: 1.15rem;
    background: var(--bg-canvas);
    padding: 0 0.9rem;
    line-height: 1;
}

/* ===== TOPE DE PÁGINA DOBLE NIVEL — ESTILO LUXURY TOPBAR (ALROC LUMINOSO) ===== */
header.luxury-topbar,
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: rgba(246, 241, 231, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 25px rgba(40, 34, 25, 0.08), 0 1px 3px rgba(184, 142, 62, 0.2);
    border-bottom: 3px double var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* TIER 1: BARRA SUPERIOR DE CONTACTO & UTILIDAD */
.topbar-tier1 {
    width: 100%;
    background-color: rgba(246, 241, 231, 0.98);
    border-bottom: 1px solid var(--gold-border);
    padding: 0.9rem 4%;
}

.topbar-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Marca & Logotipo */
.topbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.topbar-logo-link {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    text-decoration: none;
}

.topbar-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(155, 126, 53, 0.28));
    transition: transform 0.3s ease;
}

.topbar-logo-link:hover .topbar-logo-img {
    transform: scale(1.04);
}

.topbar-logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-headline);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.brand-title em {
    color: var(--gold-dark);
    font-style: italic;
    font-weight: 700;
}

.brand-tagline {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 0.2rem;
    opacity: 0.95;
}

/* Contacto & Llamada (Centro-Izquierda) */
.topbar-contact-group {
    display: flex;
    align-items: center;
    gap: 2.8rem;
}

.contact-phone-block {
    display: flex;
    flex-direction: column;
}

.phone-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-headline);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.phone-number i {
    color: var(--gold-dark);
    font-size: 1.35rem;
}

.phone-number:hover {
    color: var(--gold-dark);
}

.phone-schedule {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.phone-schedule i {
    color: var(--gold-dark);
    font-size: 1rem;
}

.contact-location-block {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-body);
}

.contact-location-block i {
    color: var(--gold-dark);
    font-size: 1.6rem;
}

.topbar-call-btn {
    border: 1.5px solid var(--gold-dark);
    background: rgba(197, 168, 90, 0.08);
    color: var(--text-headline);
    padding: 0.85rem 1.8rem;
    border-radius: 5px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-transform: uppercase;
}

.topbar-call-btn:hover {
    background: var(--gold-dark);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(155, 126, 53, 0.35);
    transform: translateY(-1px);
}

/* Búsqueda & Redes (Derecha) */
.topbar-utility-group {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.topbar-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 280px;
}

.topbar-search-input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--gold-border);
    border-radius: 6px;
    padding: 0.85rem 3.8rem 0.85rem 1.4rem;
    font-size: 1.25rem;
    color: var(--text-headline);
    box-shadow: inset 0 1px 3px rgba(44, 38, 28, 0.04);
    transition: all 0.25s ease;
}

.topbar-search-input:focus {
    background: #FFFFFF;
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(197, 168, 90, 0.25);
}

.topbar-search-input::placeholder {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.topbar-search-submit {
    position: absolute;
    right: 0.8rem;
    background: transparent;
    border: none;
    color: var(--gold-dark);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.4rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.topbar-search-submit:hover {
    color: var(--emerald-column);
    transform: scale(1.15);
}

.topbar-direct-channels {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.channel-icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--bg-card-warm);
    border: 1px solid var(--gold-border);
    color: var(--gold-dark);
    font-size: 1.6rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.channel-icon-btn:hover {
    background: var(--gold-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 126, 53, 0.3);
}

/* Botón Hamburguesa Robusto (Móvil) */
.menu-toggle-btn {
    display: none;
    background: var(--bg-card-warm);
    border: 1px solid var(--gold-dark);
    border-radius: 6px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-headline);
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 1001;
}

.menu-toggle-btn:hover,
.menu-toggle-btn.active {
    background: var(--gold-dark);
    color: #FFFFFF;
}

/* TIER 2: BARRA DE NAVEGACIÓN & CATÁLOGO */
.topbar-tier2 {
    width: 100%;
    background-color: #EEE4D3;
    padding: 0 4%;
    border-top: 1px solid rgba(184, 142, 62, 0.3);
}

.topbar-nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    gap: 2rem;
}

/* Botón Catálogo con Menú Desplegable */
.catalog-dropdown-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.catalog-btn {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: linear-gradient(135deg, #C5A85A 0%, #9B7E35 100%);
    color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0 2.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(155, 126, 53, 0.25);
    transition: all 0.25s ease;
    height: 100%;
}

.catalog-btn:hover {
    background: linear-gradient(135deg, #DFC785 0%, #A98A3C 100%);
    box-shadow: 0 4px 15px rgba(155, 126, 53, 0.4);
}

.catalog-chevron {
    font-size: 1.1rem;
    color: #FFFFFF;
    transition: transform 0.25s ease;
}

.catalog-dropdown-wrapper:hover .catalog-chevron,
.catalog-btn.active .catalog-chevron {
    transform: rotate(180deg);
}

.catalog-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: #FFFFFF;
    border: 1px solid var(--gold-border);
    border-top: 2px solid var(--gold-dark);
    box-shadow: 0 16px 36px rgba(44, 38, 28, 0.14);
    border-radius: 0 0 8px 8px;
    display: none;
    flex-direction: column;
    padding: 0.8rem 0;
    z-index: 1050;
    animation: fadeInCatalog 0.25s ease forwards;
}

@keyframes fadeInCatalog {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.catalog-dropdown-wrapper:hover .catalog-menu,
.catalog-menu.show {
    display: flex;
}

.catalog-item {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.1rem 1.8rem;
    color: var(--text-body);
    transition: background 0.2s ease, padding-left 0.2s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.catalog-item i {
    font-size: 1.5rem;
    color: var(--gold-dark);
    width: 22px;
    text-align: center;
}

.catalog-item strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-headline);
}

.catalog-item span {
    display: block;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.catalog-item:hover {
    background: var(--bg-card-warm);
    border-left-color: var(--gold-dark);
    padding-left: 2.2rem;
}

.catalog-item:hover strong {
    color: var(--gold-dark);
}

/* Enlaces del Nav Central */
header.luxury-topbar .navbar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    height: 100%;
}

header.luxury-topbar .navbar a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-headline);
    letter-spacing: 0.08em;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    text-decoration: none;
}

header.luxury-topbar .navbar a i {
    color: var(--gold-dark);
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

header.luxury-topbar .navbar a:hover {
    color: var(--emerald-column);
    background: rgba(197, 168, 90, 0.16);
}

header.luxury-topbar .navbar a:hover i {
    transform: scale(1.15);
}

header.luxury-topbar .navbar a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 15%;
    width: 0;
    height: 2px;
    background: var(--gold-dark);
    transition: width 0.25s ease;
}

header.luxury-topbar .navbar a:hover::after {
    width: 70%;
}

/* Acciones Derecha (Favoritos, Cartera, VIP) */
.topbar-user-actions {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    height: 100%;
}

.action-badge-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-headline);
    font-size: 1.65rem;
    padding: 0.6rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-badge-btn:hover {
    color: var(--gold-dark);
    transform: translateY(-1px);
}

.action-badge-btn .badge-counter {
    position: absolute;
    top: -2px;
    right: -6px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--emerald-column);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(44, 38, 28, 0.2);
}

.topbar-vip-btn {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    color: var(--emerald-column);
    border: 1.5px solid var(--emerald-column);
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    background: rgba(45, 84, 70, 0.08);
    transition: all 0.25s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    cursor: pointer;
}

.topbar-vip-btn:hover {
    background: var(--emerald-column);
    color: #FFFFFF;
    border-color: var(--emerald-column);
    box-shadow: 0 2px 10px rgba(45, 84, 70, 0.25);
}

/* ===== DISTINTIVOS & ETIQUETAS EDITORIALES VICTORIANAS ===== */
.editorial-badge, .editorial-badge-gold, .editorial-sub-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.6rem;
    background: var(--bg-card-warm);
    border: 1px solid var(--gold-border);
    border-radius: 3px;
    color: var(--gold-dark);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-subtle);
}

.editorial-sub-tag {
    margin-bottom: 1rem;
    color: var(--emerald-column);
    background: var(--emerald-light);
    border-color: rgba(35, 72, 57, 0.28);
}

.editorial-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 5.4rem;
    font-weight: 800;
    line-height: 1.12;
    color: var(--text-headline);
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
    text-align: left;
}

.editorial-main-title em {
    color: var(--gold-dark);
    font-style: italic;
    font-weight: 400;
}

.editorial-container .location {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--emerald-column);
    margin-bottom: 2.2rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.editorial-container .location i {
    color: var(--gold-dark);
}

/* ===== RELIEVE ARQUITECTÓNICO Y ELEMENTOS DISTINTIVOS (ESTABLES Y ELEGANTES) ===== */

/* Barra de Confianza y Métricas Insulares */
.hero-trust-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.8rem 2.2rem;
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2.5rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    position: relative;
}

.metric-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--gold-border);
}

.metric-number {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold-dark);
    line-height: 1.1;
}

.metric-label {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.3rem;
}

/* Cartela Editorial con Borde de Orfebrería */
.hero-quote-card {
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    border-left: 4px solid var(--gold-dark);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-card);
    padding: 2rem 2.6rem;
    margin-bottom: 2.5rem;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-headline);
    line-height: 1.5;
    text-align: left;
}

.hero-tagline strong {
    color: var(--gold-dark);
    font-weight: 800;
}

.editorial-features {
    margin-bottom: 2.8rem;
}

.hero-feature {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 1.2rem;
    text-align: left;
    line-height: 1.6;
}

.hero-feature i {
    color: var(--emerald-column);
    margin-right: 0.8rem;
}

/* Botones de Acción Clásicos y Nobles */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
}

.editorial-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 3.2rem;
    border-radius: var(--radius-card);
    font-weight: 700;
    font-size: 1.45rem;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.03em;
}

.primary-btn {
    background: linear-gradient(135deg, var(--emerald-column) 0%, #173228 100%);
    color: #FFFFFF;
    border: 1px solid var(--emerald-column);
    box-shadow: 0 6px 18px rgba(45, 84, 70, 0.25);
}

.primary-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #376655 0%, var(--emerald-column) 100%);
    box-shadow: 0 10px 25px rgba(45, 84, 70, 0.35);
}

.secondary-btn {
    background: var(--bg-surface);
    color: var(--text-headline);
    border: 1px solid var(--gold-border);
    box-shadow: var(--shadow-subtle);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    background: var(--bg-card-warm);
    border-color: var(--gold-dark);
    color: var(--gold-dark);
}

/* ===== SECCIÓN HERO ESTILO AIRBNB (100VH) ===== */
.airbnb-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    background: url('img/isla-saona.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 0;
}

/* Capa sutil de oscurecimiento (overlay) */
.airbnb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.44) 0%,
        rgba(0, 0, 0, 0.28) 40%,
        rgba(0, 0, 0, 0.52) 100%
    );
    z-index: 1;
}

/* Contenedor centralizado */
.airbnb-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1050px;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0;
}

/* ENCABEZADO CENTRAL (TERCIO SUPERIOR) */
.airbnb-hero-title {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 800;
    color: #FFFFFF;
    text-align: center;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 2.2rem;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.5);
}

/* WIDGET DE BÚSQUEDA FLOTANTE */
.airbnb-search-widget {
    width: 100%;
    max-width: 860px;
    background: #FFFFFF;
    border-radius: 28px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1.1rem 1.6rem 1.3rem 1.6rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.airbnb-search-widget:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.26), 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* FILA SUPERIOR: PESTAÑAS (TABS) */
.airbnb-widget-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    border-bottom: 1px solid #EBEBEB;
    padding-bottom: 0.8rem;
    margin-bottom: 0.9rem;
}

.airbnb-tab-btn {
    background: none;
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #717171;
    cursor: pointer;
    padding: 0.4rem 0.2rem 0.6rem 0.2rem;
    position: relative;
    transition: color 0.2s ease;
}

.airbnb-tab-btn:hover {
    color: var(--emerald-column);
}

.airbnb-tab-btn.active {
    color: var(--emerald-column);
    font-weight: 700;
}

.airbnb-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 0;
    width: 100%;
    height: 2.5px;
    background-color: var(--emerald-column);
    border-radius: 9999px;
}

/* FILA INFERIOR: BARRA DE ENTRADAS */
.airbnb-inputs-bar {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #EBEBEB;
    border-radius: 9999px;
    padding: 0.35rem 0.45rem 0.35rem 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.airbnb-inputs-bar:focus-within {
    border-color: #B0B0B0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.airbnb-field-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1.1rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
}

.airbnb-field-group:hover {
    background-color: #F7F7F7;
}

.field-icon {
    font-size: 1.15rem;
    color: var(--gold-dark);
    opacity: 0.9;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.airbnb-field-group:hover .field-icon {
    color: var(--emerald-column);
}

.field-texts {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.field-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #222222;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.field-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    color: #222222;
    font-weight: 500;
    width: 100%;
    padding: 0.15rem 0 0 0;
    text-overflow: ellipsis;
}

.field-input::placeholder {
    color: #717171;
    font-weight: 400;
    font-size: 0.82rem;
}

/* Selectores Combobox Elegantes del Buscador Hero (Cero teclado / Cero descuadre / Estética 100% original) */
select.field-select {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    color: #222222;
    font-weight: 500;
    width: 100%;
    padding: 0.15rem 0 0 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select.field-select option {
    background-color: #FFFFFF;
    color: #222222;
    font-size: 13px;
    padding: 6px 10px;
}

.field-divider {
    width: 1px;
    height: 32px;
    background-color: #EBEBEB;
    flex-shrink: 0;
}

/* BOTÓN CTA (EXTREMO DERECHO) */
.airbnb-cta-btn {
    background: var(--emerald-column);
    color: #FFFFFF;
    border: 1px solid var(--gold-border);
    border-radius: 9999px;
    padding: 0.95rem 1.7rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(29, 61, 46, 0.35), 0 0 10px rgba(184, 142, 62, 0.2);
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.4rem;
}

.airbnb-cta-btn i {
    font-size: 0.95rem;
    color: var(--gold-light);
}

.airbnb-cta-btn:hover {
    background-color: #142B20;
    border-color: var(--gold);
    box-shadow: 0 6px 18px rgba(29, 61, 46, 0.48), 0 0 14px rgba(184, 142, 62, 0.35);
    transform: scale(1.02);
}

.airbnb-cta-btn:active {
    transform: scale(0.98);
}

/* ENLACE SECUNDARIO */
.airbnb-secondary-wrap {
    margin-top: 1.4rem;
}

.airbnb-secondary-link {
    font-size: 14px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    position: relative;
    padding-bottom: 2px;
}

.airbnb-secondary-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #FFFFFF;
    transition: width 0.25s ease;
}

.airbnb-secondary-link:hover {
    opacity: 0.95;
}

.airbnb-secondary-link:hover::after {
    width: 100%;
}

/* Responsive para el widget */
@media (max-width: 820px) {
    .airbnb-search-widget {
        padding: 1rem;
        border-radius: 24px;
    }

    .airbnb-inputs-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 0.8rem;
        gap: 0.6rem;
    }

    .field-divider {
        width: 100%;
        height: 1px;
        margin: 0.2rem 0;
    }

    .airbnb-field-group {
        width: 100%;
        padding: 0.6rem 0.8rem;
    }

    .airbnb-cta-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.4rem;
        border-radius: 16px;
        padding: 0.9rem;
    }

    .airbnb-widget-tabs {
        gap: 1.4rem;
    }

    .airbnb-tab-btn {
        font-size: 0.92rem;
    }
}

/* ===== SECCIÓN 1 — HERO EDITORIAL DE PRESTIGIO CON RELIEVE 3D & ANIMACIONES DE SCROLLEO ===== */
.Historia {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #FDFBF7 0%, #F6F1E7 55%, #EEE5D5 100%);
    border-bottom: 1px solid var(--gold-border);
    position: relative;
    padding: 13rem 9% 5rem 9%;
    overflow: hidden;
}

/* Filigrana Arquitectónica Neoclásica de Fondo Sutil */
.Historia::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(197, 168, 90, 0.05) 0%, rgba(197, 168, 90, 0.015) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.editorial-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto 4rem auto;
    position: relative;
    z-index: 1;
}

.editorial-container .content {
    flex: 1 1 50rem;
}

/* Animaciones de Entrada Escalonadas (Choreographed Entrance) */
.hero-entrance-left {
    animation: heroFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-entrance-right {
    animation: heroScaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* Barómetro Inmobiliario / Live Insular Pulse */
.hero-live-ticker {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.7rem 1.8rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-pill);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 14px rgba(44, 38, 28, 0.05);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--text-body);
    font-weight: 600;
}

.ticker-pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--emerald-light);
    color: var(--emerald-column);
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

.ticker-dot {
    width: 7px;
    height: 7px;
    background: var(--emerald-column);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(45, 84, 70, 0.25);
    animation: pulseEmerald 2s infinite;
}

.ticker-text {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.ticker-text i {
    color: var(--gold-dark);
}

.ticker-separator {
    color: var(--gold-border);
}

.hero-badge-wrap {
    display: block;
}

/* Barra de Métricas y Confianza con Micro-Relieve Esculpido */
.hero-trust-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.8rem 2.4rem;
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-card);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(197, 168, 90, 0.15),
        0 10px 25px rgba(44, 38, 28, 0.06);
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-trust-metrics:hover {
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(197, 168, 90, 0.25),
        0 14px 32px rgba(44, 38, 28, 0.09);
}

/* ENCUADRE ARQUITECTÓNICO EN ARCO DE MEDIO PUNTO CON RELIEVE 3D TÁCTIL */
.hero-photo-showcase {
    flex: 1 1 46rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 3rem;
}

.main-photo-frame {
    position: relative;
    border-radius: var(--radius-arch);
    overflow: hidden;
    border: 3px double var(--gold-border);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(197, 168, 90, 0.25),
        0 24px 50px rgba(44, 38, 28, 0.12),
        0 2px 12px rgba(197, 168, 90, 0.2);
    background: var(--bg-surface);
    padding: 1rem;
    transform-style: flat;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    will-change: transform;
}

.main-photo-frame:hover {
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 1),
        inset 0 -1px 2px rgba(197, 168, 90, 0.35),
        0 30px 65px rgba(44, 38, 28, 0.16),
        0 4px 18px rgba(197, 168, 90, 0.28);
}

/* Capa de Reflejo Especular Dinámico (Shimmer Glare) */
.photo-shine-glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
}

.hero-img {
    width: 100%;
    max-width: 440px;
    height: 520px;
    object-fit: cover;
    display: block;
    border-radius: 170px 170px 8px 8px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.main-photo-frame:hover .hero-img {
    transform: scale(1.03);
}

/* Cartela Flotante de la Villa con Relieve y Flotación Suave */
.photo-overlay-glass {
    position: absolute;
    bottom: 2.2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-card);
    padding: 1.6rem 2.2rem;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 12px 30px rgba(44, 38, 28, 0.12),
        0 2px 8px rgba(197, 168, 90, 0.15);
    z-index: 6;
    animation: floatSlowA 6s ease-in-out infinite alternate;
}

.glass-tag-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.property-tag {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.property-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--emerald-column);
    background: var(--emerald-light);
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--emerald-column);
    border-radius: 50%;
    animation: pulseEmerald 1.8s infinite;
}

.photo-overlay-glass h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    color: var(--text-headline);
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.photo-overlay-location {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.photo-specs-strip {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--gold-subtle);
    font-size: 1.15rem;
    color: var(--text-body);
    font-weight: 600;
}

.photo-specs-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.photo-specs-strip span i {
    color: var(--gold-dark);
    font-size: 1rem;
}

/* Sello Institucional de Garantía Jurídica Flotante */
.secondary-photo-badge {
    position: absolute;
    top: 1.5rem;
    right: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 14px 32px rgba(44, 38, 28, 0.12),
        0 2px 8px rgba(197, 168, 90, 0.18);
    border-radius: var(--radius-card);
    padding: 1.2rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    z-index: 7;
    animation: floatSlowB 7s ease-in-out infinite alternate;
}

.secondary-photo-badge:hover {
    transform: translateY(-2px);
}

.badge-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.badge-text strong {
    font-size: 2rem;
    color: var(--gold-dark);
    display: block;
    line-height: 1;
    font-family: 'Cinzel', serif;
}

.badge-text span {
    font-size: 1.05rem;
    color: var(--text-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Píldora Flotante Lateral de Plusvalía Insular */
.hero-floating-stat-pill {
    position: absolute;
    left: 0.5rem;
    bottom: 9rem;
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 12px 28px rgba(44, 38, 28, 0.1),
        0 2px 8px rgba(45, 84, 70, 0.15);
    border-radius: var(--radius-card);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 7;
    animation: floatSlowA 8s ease-in-out infinite alternate;
}

.stat-pill-icon {
    width: 34px;
    height: 34px;
    background: var(--emerald-light);
    color: var(--emerald-column);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-pill-content strong {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--emerald-column);
    display: block;
    line-height: 1.1;
}

.stat-pill-content span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== CONSOLA RÁPIDA DE BÚSQUEDA DE PROPIEDADES EN EL HERO (HERO PROPERTY FINDER) ===== */
.hero-property-finder {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    border-radius: 14px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(197, 168, 90, 0.2),
        0 18px 45px rgba(44, 38, 28, 0.09),
        0 2px 10px rgba(197, 168, 90, 0.15);
    padding: 2.2rem 2.8rem;
    position: relative;
    z-index: 10;
}

.finder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.6rem;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--gold-subtle);
}

.finder-tabs {
    display: flex;
    gap: 0.8rem;
}

.finder-tab {
    background: transparent;
    border: 1px solid transparent;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-pill);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.finder-tab:hover {
    color: var(--gold-dark);
    background: var(--bg-card-warm);
}

.finder-tab.active {
    background: var(--bg-card-warm);
    border-color: var(--gold-border);
    color: var(--gold-dark);
    box-shadow: 0 2px 8px rgba(197, 168, 90, 0.15);
}

.finder-tab.active i {
    color: var(--gold-dark);
}

.finder-note {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.finder-note i {
    color: var(--emerald-column);
}

.finder-body {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr auto;
    gap: 1.8rem;
    align-items: flex-end;
}

.finder-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.finder-field label {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-headline);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.finder-field label i {
    color: var(--gold-dark);
}

.finder-select {
    width: 100%;
    padding: 1.2rem 1.4rem;
    background: var(--bg-canvas);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-card);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-headline);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.finder-select:focus {
    border-color: var(--gold-dark);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(197, 168, 90, 0.18);
}

.finder-action {
    display: flex;
    align-items: flex-end;
}

.finder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.25rem 2.4rem;
    background: linear-gradient(135deg, var(--emerald-column) 0%, #173228 100%);
    color: #FFFFFF;
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: var(--radius-card);
    border: 1px solid var(--emerald-column);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 6px 18px rgba(45, 84, 70, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.finder-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #376655 0%, var(--emerald-column) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 10px 24px rgba(45, 84, 70, 0.35);
}

.finder-btn i {
    color: var(--gold-light);
}

/* ===== INDICADOR DE SCROLLEO FLUIDO ===== */
.hero-scroll-indicator-wrap {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    transition: color 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

.hero-scroll-indicator:hover {
    color: var(--gold-dark);
    transform: translateY(2px);
}

.scroll-mouse-icon {
    width: 22px;
    height: 34px;
    border: 2px solid var(--gold-dark);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(197, 168, 90, 0.15);
}

.scroll-wheel-dot {
    width: 3px;
    height: 6px;
    background: var(--gold-dark);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    animation: scrollMousePulse 2s infinite;
}

.scroll-text {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.scroll-arrow-icon {
    font-size: 1.1rem;
    color: var(--gold-dark);
    animation: chevronBob 1.6s infinite ease-in-out;
}

/* ===== SISTEMA DE REVELADO SUAVE AL SCROLLEAR (SCROLL REVEAL) ===== */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Retardos escalonados para tarjetas */
.property-gallery-grid .gallery-card:nth-child(1) { transition-delay: 0.05s; }
.property-gallery-grid .gallery-card:nth-child(2) { transition-delay: 0.15s; }
.property-gallery-grid .gallery-card:nth-child(3) { transition-delay: 0.25s; }
.property-gallery-grid .gallery-card:nth-child(4) { transition-delay: 0.35s; }

.boxbox .glass-card:nth-child(1) { transition-delay: 0.05s; }
.boxbox .glass-card:nth-child(2) { transition-delay: 0.15s; }
.boxbox .glass-card:nth-child(3) { transition-delay: 0.25s; }
.boxbox .glass-card:nth-child(4) { transition-delay: 0.35s; }

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes heroFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(24px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floatSlowA {
    0% { transform: translateY(0); }
    100% { transform: translateY(-7px); }
}

@keyframes floatSlowB {
    0% { transform: translateY(0); }
    100% { transform: translateY(6px); }
}

@keyframes pulseEmerald {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(45, 84, 70, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(45, 84, 70, 0);
    }
}

@keyframes scrollMousePulse {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    60% {
        transform: translateY(9px);
        opacity: 0.2;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes chevronBob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

/* ==========================================================================
   BRÚJULA DE SCROLL & RUTA DE INVERSIÓN
   ========================================================================== */

/* 1. BRÚJULA & INDICADOR FLOTANTE DE RECORRIDO (SCROLL COMPASS) */
.scroll-compass-dock {
    position: fixed;
    right: 2.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(250, 248, 245, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-pill);
    padding: 1.4rem 0.8rem;
    box-shadow: 0 10px 30px rgba(44, 38, 28, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 995;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.compass-dial-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-dial-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.compass-dial-bg {
    fill: none;
    stroke: rgba(197, 168, 90, 0.2);
    stroke-width: 3;
}

.compass-dial-progress {
    fill: none;
    stroke: var(--gold);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 113.1;
    stroke-dashoffset: 113.1;
    transition: stroke-dashoffset 0.15s ease-out;
}

.compass-percent {
    position: absolute;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    color: var(--gold-dark);
}

.compass-milestones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compass-node {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.4rem;
    cursor: pointer;
}

.compass-node .node-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(197, 168, 90, 0.4);
    border: 1px solid var(--gold-dark);
    transition: all 0.25s ease;
}

.compass-node:hover .node-dot,
.compass-node.active .node-dot {
    background: var(--gold-dark);
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(197, 168, 90, 0.6);
}

.compass-node .node-label {
    position: absolute;
    right: 2.2rem;
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-pill);
    padding: 0.4rem 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-headline);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-soft);
}

.compass-node:hover .node-label {
    opacity: 1;
    transform: translateX(0);
}

/* 3. SECCIÓN RUTA DE LA INVERSIÓN INMOBILIARIA */
.RutaInversion {
    background: linear-gradient(180deg, #EEE5D5 0%, #F6F1E7 40%, #EEE5D5 100%);
    padding: 10rem 9%;
    border-bottom: 1px solid var(--gold-subtle);
    position: relative;
}

.section-subtitle {
    max-width: 680px;
    margin: 1.2rem auto 0 auto;
    font-size: 1.55rem;
    color: var(--text-body);
    line-height: 1.6;
    text-align: center;
}

.investment-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1300px;
    margin: 5rem auto 0 auto;
    position: relative;
}

/* Línea Conductora en Oro de la Ruta */
.investment-steps-grid::before {
    content: '';
    position: absolute;
    top: 4.8rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-subtle), var(--gold), var(--gold-subtle));
    z-index: 0;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    outline: 1px solid rgba(184, 142, 62, 0.35);
    outline-offset: -7px;
    border-radius: var(--radius-card);
    padding: 3.2rem 2.6rem;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 12px 30px rgba(40, 34, 25, 0.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, outline-color 0.35s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 20px 45px rgba(40, 34, 25, 0.12),
        0 2px 10px rgba(184, 142, 62, 0.28);
    border-color: var(--gold-dark);
    outline-color: rgba(184, 142, 62, 0.75);
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.step-number {
    font-family: 'Cinzel', serif;
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    letter-spacing: 0.05em;
}

.step-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card-warm);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-column);
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(197, 168, 90, 0.15);
    transition: background 0.3s ease, color 0.3s ease;
}

.step-card:hover .step-icon-badge {
    background: var(--emerald-column);
    color: #FFFFFF;
}

.step-phase {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 0.6rem;
}

.step-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--text-headline);
    margin-bottom: 1.2rem;
    line-height: 1.25;
}

.step-body p {
    font-size: 1.45rem;
    color: var(--text-body);
    line-height: 1.65;
    text-align: left;
    margin-bottom: 2rem;
}

.step-footer {
    padding-top: 1.4rem;
    border-top: 1px solid var(--gold-subtle);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--emerald-column);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.step-footer i {
    color: var(--gold-dark);
}

/* 4. FILTROS INTERACTIVOS DE LA GALERÍA */
.gallery-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 900px;
    margin: -2rem auto 4.5rem auto;
}

.gallery-filter-btn {
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    padding: 0.9rem 2rem;
    border-radius: var(--radius-pill);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-subtle);
}

.gallery-filter-btn:hover {
    background: var(--bg-card-warm);
    color: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
}

.gallery-filter-btn.active {
    background: var(--emerald-column);
    color: #FFFFFF;
    border-color: var(--emerald-column);
    box-shadow: 0 4px 14px rgba(45, 84, 70, 0.28);
}

.gallery-filter-btn.active i {
    color: var(--gold-light);
}

.gallery-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.3s ease;
}

/* ===== HEADER DIVISIONARIO HERO / PORTAFOLIO ===== */
.portfolio-divider-header {
    background-color: #EDE4D3;
    padding: 3.2rem 2rem 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(184, 142, 62, 0.35);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 4px 18px rgba(24, 21, 18, 0.07);
    position: relative;
    z-index: 5;
    scroll-margin-top: 80px;
}

.portfolio-divider-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portfolio-divider-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    font-weight: 800;
    color: #181512;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.15;
}

/* ===== SECCIÓN 2 — PORTAFOLIO DE PROPIEDADES (FONDO AQUAMARINE & CATÁLOGO) ===== */
.Galeria {
    position: relative;
    background-image: url('img/AQUAMARINE.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 6rem 7% 9rem 7%;
    border-bottom: 2px solid var(--gold);
    scroll-margin-top: 140px;
}

@media (max-width: 768px) {
    .Galeria {
        background-attachment: scroll;
        padding: 4.5rem 5% 7.5rem 5%;
    }
}

.portfolio-header-wrap {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 4rem auto;
}

.portfolio-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.8rem;
    border-radius: 3px;
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--gold-dark);
    text-transform: uppercase;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 1.6rem;
}

.portfolio-badge-tag i {
    color: var(--emerald-column);
}

.portfolio-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 4vw, 4.4rem);
    font-weight: 800;
    color: var(--text-headline);
    line-height: 1.2;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}

.portfolio-title em {
    color: var(--gold-dark);
    font-style: italic;
    font-weight: 500;
}

.portfolio-desc {
    font-size: 1.55rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-top: 1.2rem;
}

/* Filtros de la Galería (Tabs estilo Victoriano / AlRoc) */
.portfolio-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    max-width: 1050px;
    margin: 0 auto 4.8rem auto;
}

.filter-btn,
.gallery-filter-btn {
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    padding: 1rem 2rem;
    border-radius: 3px;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-subtle);
}

.filter-btn i,
.gallery-filter-btn i {
    color: var(--gold-dark);
    transition: transform 0.25s ease;
}

.filter-btn:hover,
.gallery-filter-btn:hover {
    background: var(--bg-card-warm);
    border-color: var(--gold-dark);
    color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(40, 34, 25, 0.08);
}

.filter-btn:hover i,
.gallery-filter-btn:hover i {
    transform: scale(1.15);
}

.filter-btn.active,
.gallery-filter-btn.active {
    background: var(--text-headline);
    color: var(--gold-light);
    border-color: var(--gold);
    outline: 1px solid rgba(216, 190, 122, 0.45);
    outline-offset: -3px;
    box-shadow: 0 6px 20px rgba(24, 21, 18, 0.35);
}

.filter-btn.active i,
.gallery-filter-btn.active i {
    color: var(--gold-light);
}

/* Feedback de Búsqueda Activa del Hero */
.portfolio-search-feedback {
    max-width: 860px;
    margin: -2rem auto 3.5rem auto;
    display: flex;
    justify-content: center;
}

.search-feedback-inner {
    display: inline-flex;
    align-items: center;
    gap: 1.6rem;
    background: linear-gradient(135deg, #1D3D2E 0%, #142B20 100%);
    border: 1.5px solid var(--gold);
    outline: 1px solid rgba(212, 176, 98, 0.4);
    outline-offset: -5px;
    padding: 1rem 2.2rem;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(29, 61, 46, 0.25);
    flex-wrap: wrap;
    justify-content: center;
}

.search-feedback-text {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: #FFFFFF;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.search-feedback-text i {
    color: var(--gold-light);
}

.search-feedback-text strong {
    color: var(--gold-light);
    font-weight: 800;
}

.search-feedback-clear {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--gold-border);
    color: #FFFFFF;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.45rem 1.2rem;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
}

.search-feedback-clear:hover {
    background: var(--gold-dark);
    color: #FFFFFF;
    border-color: var(--gold-light);
    transform: scale(1.04);
}

/* Estado de Sin Resultados */
.portfolio-empty-results {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-surface);
    border: 1.5px dashed var(--gold);
    border-radius: 6px;
    max-width: 820px;
    margin: 2rem auto 4rem auto;
    box-shadow: var(--shadow-soft);
}

.portfolio-empty-results i {
    font-size: 4rem;
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.portfolio-empty-results h4 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-headline);
    margin-bottom: 1rem;
}

.portfolio-empty-results p {
    font-size: 1.45rem;
    color: var(--text-body);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 2.4rem auto;
}

.empty-reset-btn {
    background: var(--emerald-column);
    border: 1.5px solid var(--gold);
    color: #FFFFFF;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1.15rem 2.4rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(29, 61, 46, 0.25);
}

.empty-reset-btn:hover {
    background: #142B20;
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 61, 46, 0.35);
}

/* Cuadrícula de Portafolio (Portfolio Grid — 2 propiedades por fila, estilo catálogo Airbnb de lujo) */
.portfolio-grid,
.property-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .portfolio-grid,
    .property-gallery-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Tarjeta de Propiedad individual (Portfolio Card con Enmarcado Victoriano & Verde Esmeralda Imperial) */
.portfolio-card,
.gallery-card {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: linear-gradient(165deg, #1D3D2E 0%, #142B20 100%);
    border-radius: 4px;
    border: 2px solid var(--gold);
    outline: 1px solid rgba(212, 176, 98, 0.45);
    outline-offset: -8px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(10, 24, 17, 0.24), 0 2px 8px rgba(184, 142, 62, 0.18);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease, outline-color 0.35s ease, opacity 0.3s ease;
    cursor: pointer;
    position: relative;
    height: auto;
}

.portfolio-card:hover,
.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(10, 24, 17, 0.42), 0 0 24px rgba(212, 176, 98, 0.38);
    border-color: var(--gold-light);
    outline-color: rgba(212, 176, 98, 0.85);
}

/* Contenedor Multimedia */
.portfolio-media-holder,
.gallery-card-img-wrapper {
    width: 100%;
    height: 380px;
    position: relative;
    overflow: hidden;
    background: #0E0D0C;
    border-bottom: 2px solid var(--gold);
}

@media (max-width: 600px) {
    .portfolio-media-holder,
    .gallery-card-img-wrapper {
        height: 260px;
    }
}

.portfolio-media-holder img,
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.portfolio-card:hover .portfolio-media-holder img,
.gallery-card:hover img {
    transform: scale(1.06);
}

/* Badge Superior en la Imagen (Heráldica Victoriana) */
.placeholder-badge {
    position: absolute;
    top: 1.6rem;
    left: 1.6rem;
    background: rgba(22, 19, 16, 0.93);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    border: 1px solid rgba(184, 142, 62, 0.65);
    border-radius: 3px;
    padding: 0.6rem 1.4rem;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Estilo distintivo para WORK IN PROGRESS */
.placeholder-badge.in-progress {
    background: rgba(22, 19, 16, 0.94);
    border-color: var(--gold);
    color: #FFD56B;
}

.placeholder-badge.in-progress i {
    color: var(--gold-light);
    animation: rotateTool 4s linear infinite;
}

@keyframes rotateTool {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
    100% { transform: rotate(0deg); }
}

/* Información de la Tarjeta */
.portfolio-info {
    padding: 2.6rem 2.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    background: transparent;
}

.portfolio-category-tag {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.8rem;
    display: block;
}

.portfolio-info h4 {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-bottom: 1.1rem;
    transition: color 0.25s ease;
}

.portfolio-card:hover .portfolio-info h4 {
    color: var(--gold-light);
}

.portfolio-info p {
    font-size: 1.4rem;
    color: #E6DFD3;
    line-height: 1.65;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Metadatos y Amenidades */
.portfolio-meta {
    border-top: 1px solid rgba(184, 142, 62, 0.35);
    padding-top: 1.6rem;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.meta-specs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.28rem;
    color: #DDD6C8;
    font-weight: 600;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.meta-specs-row i {
    color: var(--gold-light);
    margin-right: 0.5rem;
}

.meta-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.6rem;
}

.meta-location {
    font-size: 1.28rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.meta-location i {
    color: var(--gold-light);
}

.meta-cta-link {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.25s ease, color 0.25s ease;
}

.portfolio-card:hover .meta-cta-link {
    color: #FFFFFF;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(212, 176, 98, 0.4);
}

/* ===== MODAL DE FICHA TÉCNICA DE PROPIEDAD (ESTILO CRESTFIELD CASE STUDY) ===== */
.property-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 15, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.property-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.property-modal-box {
    background: var(--bg-surface);
    border-radius: 6px;
    border: 2px solid var(--gold);
    outline: 1px solid rgba(212, 176, 98, 0.45);
    outline-offset: -8px;
    box-shadow: 0 25px 60px rgba(24, 21, 18, 0.45);
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.94) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-modal-backdrop.active .property-modal-box {
    transform: scale(1) translateY(0);
}

.property-modal-close {
    position: absolute;
    top: 1.6rem;
    right: 1.8rem;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: var(--bg-card-warm);
    border: 1px solid var(--gold-border);
    color: var(--text-headline);
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}

.property-modal-close:hover {
    background: var(--gold-dark);
    color: #FFFFFF;
    transform: rotate(90deg);
}

.property-modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
}

@media (max-width: 820px) {
    .property-modal-grid { grid-template-columns: 1fr; }
}

.modal-media-col {
    position: relative;
    min-height: 380px;
    background: #0D0C0B;
}

.modal-media-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-img-badge {
    position: absolute;
    top: 1.8rem;
    left: 1.8rem;
    background: rgba(24, 21, 18, 0.92);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    border-radius: 3px;
    padding: 0.6rem 1.4rem;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.modal-info-col {
    padding: 3.8rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-surface);
}

.modal-property-category {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--emerald-column);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.8rem;
    display: block;
}

.modal-property-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-headline);
    line-height: 1.25;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}

.modal-property-lead {
    font-size: 1.42rem;
    font-weight: 600;
    color: var(--gold-dark);
    line-height: 1.6;
    margin-bottom: 1.6rem;
}

.modal-property-body {
    font-size: 1.38rem;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 1.8rem;
}

.modal-property-body::first-letter {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 700;
    float: left;
    line-height: 0.82;
    margin-right: 0.8rem;
    margin-top: 0.18rem;
    color: var(--gold-dark);
}

.modal-wip-notice {
    background: var(--bg-card-warm);
    border-left: 4px solid var(--gold-dark);
    padding: 1.4rem 1.6rem;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1.8rem;
    font-size: 1.3rem;
    color: var(--text-headline);
    line-height: 1.55;
    outline: 1px solid rgba(184, 142, 62, 0.28);
    outline-offset: -3px;
}

.modal-wip-notice i {
    color: var(--gold-dark);
    margin-right: 0.5rem;
}

.modal-specs-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.2rem;
}

.modal-spec-pill {
    background: var(--bg-card-warm);
    border: 1px solid var(--gold-border);
    padding: 0.6rem 1.2rem;
    border-radius: 3px;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-headline);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-spec-pill i {
    color: var(--gold-dark);
}

.modal-action-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.modal-btn-wa {
    background: linear-gradient(135deg, #25D366 0%, #18795A 60%, #1D3D2E 100%);
    color: #FFFFFF;
    padding: 1.35rem 2.2rem;
    border-radius: 4px;
    border: 1.5px solid var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.28s ease;
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.35), 0 2px 8px rgba(184, 142, 62, 0.25);
}

.modal-btn-wa i {
    font-size: 1.6rem;
    color: #FFFFFF;
}

.modal-btn-wa:hover {
    background: linear-gradient(135deg, #2ae26d 0%, #1c8d69 60%, #234d3a 100%);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 18px rgba(212, 176, 98, 0.4);
    color: #FFFFFF;
}

.modal-btn-close {
    background: transparent;
    border: 1px solid var(--gold-border);
    color: var(--text-headline);
    padding: 0.95rem 2rem;
    border-radius: 3px;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.modal-btn-close:hover {
    background: var(--bg-card-warm);
    border-color: var(--gold-dark);
    color: var(--gold-dark);
}

/* ===== SECCIÓN 3 — SERVICIOS PREMIUM (CERO POLIMORFISMO EXAGERADO) ===== */
.Opiniones {
    background: linear-gradient(180deg, #EDE4D3 0%, #F6F1E7 100%);
    padding: 10rem 9%;
    border-bottom: 1px solid var(--gold-subtle);
}

.Opiniones .boxbox {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.4rem;
    max-width: 1300px;
    margin: 0 auto;
}

/* Tarjetas Nobles en Alabastro Puro con Enmarcado Victoriano */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    outline: 1px solid rgba(184, 142, 62, 0.35);
    outline-offset: -7px;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-card);
    padding: 3.2rem 2.4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, outline-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--gold-dark);
    outline-color: rgba(184, 142, 62, 0.75);
}

.service-icon {
    width: 5.6rem;
    height: 5.6rem;
    background: var(--bg-card-warm);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--gold-dark);
    margin-bottom: 2rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.glass-card:hover .service-icon {
    background: var(--emerald-column);
    color: #FFFFFF;
    border-color: var(--emerald-column);
}

.Opiniones .boxbox h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-headline);
    margin-bottom: 1.2rem;
    line-height: 1.25;
}

.Opiniones .boxbox p {
    font-size: 1.45rem;
    color: var(--text-body);
    line-height: 1.6;
    text-align: left;
}

/* ===== MODAL DE COMPLETADO 100% SCROLL / QR INSTAGRAM & REDES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 24, 21, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.glass-modal {
    background: #FAF8F5;
    border: 2px solid var(--gold-border);
    box-shadow: 0 25px 60px rgba(44, 38, 28, 0.35), 0 4px 16px rgba(197, 168, 90, 0.15);
    border-radius: var(--radius-card);
    padding: 3.5rem 3.2rem 3rem 3.2rem;
    max-width: 490px;
    width: 100%;
    position: relative;
    text-align: center;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 92vh;
    overflow-y: auto;
}

.modal-overlay.active .glass-modal {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 3.4rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.modal-close-btn:hover {
    color: var(--gold-dark);
    transform: scale(1.15) rotate(90deg);
}

.modal-header-content {
    margin-bottom: 1.8rem;
}

.modal-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-dark);
    background: rgba(197, 168, 90, 0.14);
    border: 1px solid var(--gold-border);
    padding: 0.45rem 1.4rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.modal-badge i {
    color: var(--emerald-column);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--text-headline);
    line-height: 1.25;
    margin-bottom: 0.9rem;
    letter-spacing: -0.01em;
}

.modal-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    color: var(--text-body);
    line-height: 1.5;
}

/* CENTRO DE ATENCIÓN: QR PARA VISITAR INSTAGRAM */
.modal-qr-showcase {
    margin-bottom: 2rem;
}

.modal-qr-frame {
    background: #FFFFFF;
    border: 2px solid var(--gold-border);
    border-radius: 20px;
    padding: 1.2rem;
    max-width: 220px;
    margin: 0 auto 1rem auto;
    box-shadow: 0 12px 30px rgba(197, 168, 90, 0.22), 0 3px 10px rgba(44, 38, 28, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.modal-qr-frame:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--gold-dark);
    box-shadow: 0 16px 36px rgba(197, 168, 90, 0.32), 0 6px 14px rgba(44, 38, 28, 0.12);
}

.modal-qr-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.modal-qr-caption {
    font-size: 1.25rem;
    color: var(--text-body);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.45;
    text-align: center;
}

.modal-qr-caption i {
    color: #E1306C;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* FILA DE ICONOS SOCIALES (IDÉNTICOS AL FOOTER) */
.modal-social-row {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    margin-bottom: 2.2rem;
}

.modal-social-row .social-link {
    font-size: 2.2rem;
    color: var(--text-headline);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--gold-border);
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s ease;
    text-decoration: none;
}

.modal-social-row .social-link:hover {
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 38, 28, 0.2);
}

.modal-social-row .social-link.ig-link:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.35);
}

.modal-social-row .social-link.wa-link:hover {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.modal-social-row .social-link.fb-link:hover {
    background: #1877F2;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35);
}

/* BOTONES DE ACCIÓN RÁPIDA */
.modal-quick-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

.modal-action-btn {
    flex: 1;
    padding: 1.15rem 1.8rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    box-shadow: var(--shadow-subtle);
}

.modal-action-btn.wa-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}

.modal-action-btn.wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.modal-action-btn.ig-btn {
    background: #FFFFFF;
    border: 1px solid var(--gold-border);
    color: var(--text-headline);
}

.modal-action-btn.ig-btn:hover {
    background: var(--bg-card-warm);
    border-color: var(--gold-dark);
    color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 560px) {
    .glass-modal {
        padding: 2.8rem 1.6rem 2.2rem 1.6rem;
    }
    .modal-title {
        font-size: 1.95rem;
    }
    .modal-subtitle {
        font-size: 1.25rem;
    }
    .modal-quick-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   FORMA ARQUITECTÓNICA EN EL TOPE (POP-UP OCULTO QUE SOBRESALE SOLO UN POQUITO)
   - CERO barra rectangular en el tope: la sección Hero queda 100% visible desde y:0.
   - Solo sobresale un poquito de la forma en el margen superior (46px).
   - Forma única arqueada: LO REDONDO EN EL LADO DERECHO (border-bottom-right-radius: 140px).
   - Mismo color marfil y pergamino cálido de la página (#FCFAF6 / #F6F1E7).
   - CERO difuminado del fondo (backdrop-filter ni overlay oscuro).
   ========================================================================== */

.top-shape-popup {
    position: fixed;
    top: 0;
    left: 0; /* TOP CORNER LEFT */
    width: min(390px, 92vw);
    background: var(--bg-surface); /* Mismo color pergamino marfil de la página */
    border: 2px solid var(--gold);
    border-top: none;
    border-left: none;
    border-bottom-right-radius: 140px; /* LO REDONDO EN EL LADO DERECHO */
    border-bottom-left-radius: 0;
    box-shadow: 0 12px 35px rgba(40, 34, 25, 0.14);
    z-index: 2500;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(calc(-100% + 56px)); /* Oculto: solo sobresale el logo (56px) */
    overflow: hidden;
}

/* Nudge sutil al pasar el cursor cuando está oculta para invitar al clic */
.top-shape-popup:not(.active):hover {
    transform: translateY(calc(-100% + 62px));
    box-shadow: 0 16px 42px rgba(40, 34, 25, 0.18);
}

/* Marca de agua sacra en el arco redondeado derecho */
.top-shape-popup::before {
    content: '';
    position: absolute;
    right: 12px;
    bottom: 60px;
    width: 120px;
    height: 130px;
    background: url('img/Ejemplo.png') no-repeat bottom right / contain;
    opacity: 0.13;
    pointer-events: none;
    z-index: 0;
}

/* Estado Desplegado (Clic en la pestaña o botón) */
.top-shape-popup.active {
    transform: translateY(0); /* Desciende completamente mostrando la forma */
    box-shadow: 0 20px 50px rgba(40, 34, 25, 0.2);
}

/* Cuerpo de la forma */
.top-shape-body {
    padding: 1.8rem 2rem 1.2rem 2rem;
    position: relative;
    z-index: 1;
}

/* Encabezado */
.top-shape-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--gold-border);
}

.top-shape-brand-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.top-shape-brand-link:hover {
    opacity: 0.9;
    transform: translateX(3px);
}

.top-shape-brand-link:hover .top-shape-title {
    color: var(--emerald-column);
}

.top-shape-brand-link:hover .top-shape-title em {
    color: var(--gold-dark);
}

.top-shape-kicker {
    font-family: 'Cinzel', serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 0.14em;
    display: block;
    margin-bottom: 0.25rem;
}

.top-shape-title {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--text-headline);
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.top-shape-title em {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--gold-dark);
    font-style: italic;
    font-weight: 800;
    transition: color 0.2s ease;
}

.top-shape-tagline {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.15rem;
    font-style: italic !important;
    color: var(--text-muted);
    margin-top: 0.35rem;
    display: block;
    line-height: 1.25;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.top-shape-brand-link:hover .top-shape-tagline {
    color: var(--text-headline);
}

.tagline-mobile {
    display: none;
}

.tagline-desktop {
    display: inline;
    font-family: 'Cinzel', serif !important;
    font-style: italic !important;
}

.top-shape-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card-warm);
    border: 1px solid var(--gold-border);
    color: var(--text-headline);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-shape-close-btn:hover {
    background: var(--emerald-column);
    color: #FFFFFF;
    border-color: var(--emerald-column);
    transform: rotate(90deg);
}

/* Enlaces de Navegación */
.top-shape-nav {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
}

.top-shape-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-canvas);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-card);
    text-decoration: none;
    color: var(--text-headline);
    transition: all 0.22s ease;
}

.top-shape-link:hover {
    background: #FFFFFF;
    border-color: var(--gold-dark);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(40, 34, 25, 0.08);
}

.top-shape-num {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold-dark);
    width: 22px;
    text-align: center;
}

.top-shape-link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-shape-link-info strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-headline);
    line-height: 1.2;
}

.top-shape-link-info span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.top-shape-link i {
    color: var(--gold-dark);
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.top-shape-link:hover i {
    transform: translateX(3px);
    color: var(--emerald-column);
}

/* Bloque de Información 'De qué se trata' en el Pop-Up del Tope */
.top-shape-about-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Fila Interactiva: Burbuja circular a Píldora Panorámica + Texto Fly-In */
.top-shape-expand-row {
    position: relative;
    width: 100%;
    height: 54px;
    margin-top: 0.2rem;
    margin-bottom: 0.6rem;
    cursor: default;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* La Burbuja Circular / Píldora Expandible */
.top-shape-pill-box {
    position: absolute;
    left: 0;
    top: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(40, 34, 25, 0.16), 0 0 10px rgba(184, 142, 62, 0.25);
    z-index: 2;
    cursor: pointer;
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
}

.top-shape-pill-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    transition: transform 0.5s ease;
}

/* Contenedor del Texto Rotativo Fly-In (Sin líneas guía ni panel verde, expandido a los bordes sobre fondo marfil) */
.top-shape-flyin-wrap {
    position: absolute;
    left: 64px;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-left: 0.5rem;
    padding-right: 0;
    border-left: none; /* CERO líneas guía */
    background: transparent;
    z-index: 1;
    pointer-events: auto;
    transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-shape-flyin-item {
    position: absolute;
    left: 0.5rem;
    right: 0;
    top: 0;
    bottom: 0;
    width: calc(100% - 0.5rem);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.top-shape-flyin-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.top-shape-flyin-item.exit {
    opacity: 0;
    transform: translateY(-18px);
}

.top-shape-flyin-item i {
    color: var(--gold-dark);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Todos los textos exactamente con la misma tipografía Cinzel, mayúsculas y verde esmeralda imperial */
.top-shape-flyin-item span {
    font-family: 'Cinzel', serif;
    font-style: normal;
    font-size: 0.80rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--emerald-column);
    line-height: 1.18;
    letter-spacing: 0.04em;
    flex: 1;
    word-break: break-word;
}

/* Estado Expandido / Fijo: Se expande en Píldora Panorámica ÚNICAMENTE al interactuar con el icono de la foto */
.top-shape-expand-row.expanded,
.top-shape-expand-row.pill-hovered,
.top-shape-expand-row:has(.top-shape-pill-box:hover) {
    height: 82px;
}

.top-shape-expand-row.expanded .top-shape-pill-box,
.top-shape-expand-row.pill-hovered .top-shape-pill-box,
.top-shape-expand-row:has(.top-shape-pill-box:hover) .top-shape-pill-box {
    width: 100%;
    height: 82px;
    border-radius: 42px;
    box-shadow: 0 8px 24px rgba(40, 34, 25, 0.22), 0 0 18px rgba(184, 142, 62, 0.38);
}

.top-shape-expand-row.expanded .top-shape-pill-img,
.top-shape-expand-row.pill-hovered .top-shape-pill-img,
.top-shape-expand-row:has(.top-shape-pill-box:hover) .top-shape-pill-img {
    transform: scale(1.02);
}

.top-shape-expand-row.expanded .top-shape-flyin-wrap,
.top-shape-expand-row.pill-hovered .top-shape-flyin-wrap,
.top-shape-expand-row:has(.top-shape-pill-box:hover) .top-shape-flyin-wrap {
    opacity: 0;
    transform: translateX(25px);
    pointer-events: none;
}

.top-shape-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 142, 62, 0.45), transparent);
    margin: 0.1rem 0;
}

.top-shape-services-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.top-shape-service-card {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    background: var(--bg-canvas);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-card);
    padding: 0.75rem 1rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

.top-shape-service-card:hover,
.top-shape-service-card:active,
.top-shape-service-card.touch-active {
    background: var(--emerald-column);
    border-color: var(--gold);
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(29, 61, 46, 0.35), 0 0 10px rgba(184, 142, 62, 0.25);
}

.top-shape-service-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card-warm);
    border: 1px solid var(--gold-border);
    color: var(--emerald-column);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 0;
    transition: all 0.25s ease;
}

.top-shape-service-card:hover .top-shape-service-icon,
.top-shape-service-card:active .top-shape-service-icon,
.top-shape-service-card.touch-active .top-shape-service-icon {
    background: var(--gold);
    border-color: var(--gold-light);
    color: #142B20;
    transform: scale(1.06);
}

.top-shape-service-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.top-shape-service-text strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-headline);
    line-height: 1.22;
    margin-bottom: 0.18rem;
    letter-spacing: 0.015em;
    display: block;
    transition: color 0.2s ease;
}

.top-shape-service-card:hover .top-shape-service-text strong,
.top-shape-service-card:active .top-shape-service-text strong,
.top-shape-service-card.touch-active .top-shape-service-text strong {
    color: #FFFFFF;
}

.top-shape-service-text p {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    line-height: 1.35;
    margin: 0;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.top-shape-service-card:hover .top-shape-service-text p,
.top-shape-service-card:active .top-shape-service-text p,
.top-shape-service-card.touch-active .top-shape-service-text p {
    color: #E8E2D6;
}

/* Acciones rápidas al pie de la forma */
.top-shape-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--gold-border);
    margin-bottom: 0.2rem;
}

.top-shape-wa-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--emerald-column);
    color: #FFFFFF;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-card);
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-shape-wa-link:hover {
    background: #142B20;
}

.top-shape-phone-link {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-headline);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.top-shape-phone-link:hover {
    color: var(--gold-dark);
}

/* Pestaña inferior de agarre: LO ÚNICO QUE SE VE ES EL LOGO DE D'ALROC */
.top-shape-handle {
    width: 100%;
    height: 56px;
    background: var(--bg-surface);
    border: none;
    border-top: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 1.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    position: relative;
    z-index: 2;
}

.top-shape-popup:not(.active) .top-shape-handle {
    background: var(--bg-surface);
    box-shadow: 0 4px 14px rgba(40, 34, 25, 0.12);
}

.top-shape-popup:not(.active) .top-shape-handle:hover {
    background: #FFFFFF;
}

.shape-handle-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(184, 142, 62, 0.4));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.top-shape-handle:hover .shape-handle-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(184, 142, 62, 0.7));
}

/* En Desktop (ancho > 768px), ocultar texto y toggle para mantener solo el logo arquitectónico en la pestaña */
@media (min-width: 769px) {
    .shape-handle-text,
    .shape-handle-toggle {
        display: none !important;
    }
}

/* ==========================================================================
   INSIGNIA FLOTANTE SACRA: VIRGEN DEL VALLE (OPCIÓN 2)
   - Dockada en el margen derecho inferior con resplandor suave de vitral.
   - Pestaña interactiva que asoma con gracia y despliega tarjeta concierge.
   ========================================================================== */

.virgen-floating-dock {
    position: fixed;
    bottom: 2.2rem;
    right: 1.2rem;
    z-index: 2200;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* Pestaña disparador que asoma */
.virgen-tab-trigger {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    padding: 0.2rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

.virgen-tab-trigger:hover {
    transform: translateY(-5px) scale(1.03);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
}

/* Imagen completa del Manto Sagrado */
.virgen-mantle-img {
    height: clamp(105px, 15vh, 145px);
    width: auto;
    display: block;
    object-fit: contain;
    object-position: center bottom;
    user-select: none;
}

/* Pastilla flotante con icono WhatsApp */
.virgen-pulse-pill {
    margin-top: -12px;
    margin-right: 0;
    background: var(--emerald-column);
    color: #FFFFFF;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(29, 61, 46, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.virgen-tab-trigger:hover .virgen-pulse-pill {
    background: #142B20;
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(29, 61, 46, 0.45);
}

/* Tarjeta Flyout / Tarjeta de Presentación Ejecutiva Lic. Claudia Di Diomede */
.virgen-flyout-card {
    position: absolute;
    bottom: 0;
    right: calc(100% + 14px);
    width: 298px;
    background: var(--bg-surface);
    border: 1.5px solid var(--gold);
    border-radius: 16px 16px 4px 16px;
    padding: 1.15rem 1.15rem 1rem 1.15rem;
    box-shadow: 0 12px 32px rgba(40, 34, 25, 0.16);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px) scale(0.96);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
    z-index: 2210;
}

.virgen-flyout-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.virgen-flyout-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-card-warm);
    border: 1px solid var(--gold-border);
    color: var(--text-headline);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.virgen-flyout-close:hover {
    background: var(--emerald-column);
    color: #FFFFFF;
}

/* Encabezado del Perfil (Retrato + Datos) — Más Espacioso y Visible */
.vcard-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
    padding-right: 0.2rem;
}

.vcard-avatar-box {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 10px rgba(40, 34, 25, 0.18), 0 0 8px rgba(184, 142, 62, 0.28);
    flex-shrink: 0;
}

.vcard-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
    transform: scale(1.14) translate(-4%, -3%);
    display: block;
}

.vcard-profile-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.vcard-kicker {
    font-family: 'Cinzel', serif;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 0.09em;
    display: block;
    line-height: 1.15;
    margin-bottom: 0.22rem;
    white-space: nowrap;
}

.vcard-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.52rem;
    font-weight: 700;
    color: var(--text-headline);
    line-height: 1.12;
    margin-bottom: 0.28rem;
    white-space: nowrap;
}

.vcard-cert-tag {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--emerald-column);
    background: var(--bg-card-warm);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-pill);
    padding: 0.22rem 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    width: fit-content;
    line-height: 1.2;
    white-space: nowrap;
}

.vcard-cert-tag i {
    color: var(--gold-dark);
    font-size: 0.86rem;
}

/* Línea Divisoria con Redes Sociales Oficiales D'ALROC */
.vcard-icons-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.95rem;
    position: relative;
}

.vcard-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 142, 62, 0.45), transparent);
}

.vcard-icons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.vcard-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-card-warm);
    border: 1px solid var(--gold-border);
    color: var(--emerald-column);
    font-size: 1.05rem;
    transition: all 0.22s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(40, 34, 25, 0.08);
}

.vcard-icon-badge:hover {
    background: var(--emerald-column);
    color: var(--gold-light);
    border-color: var(--gold);
    transform: translateY(-2px) scale(1.12);
    box-shadow: 0 4px 12px rgba(29, 61, 46, 0.35);
}

/* Botón directo a WhatsApp */
.virgen-flyout-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: var(--emerald-column);
    color: #FFFFFF;
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--gold-border);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(29, 61, 46, 0.3), 0 0 8px rgba(184, 142, 62, 0.2);
}

.virgen-flyout-wa-btn:hover {
    background: #142B20;
    border-color: var(--gold);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(29, 61, 46, 0.42), 0 0 12px rgba(184, 142, 62, 0.35);
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1100px) {
    .property-gallery-grid, .Opiniones .boxbox {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .topbar-contact-group { gap: 1.5rem; }
    .contact-location-block { display: none; }
    .topbar-search-form { width: 210px; }
    header.luxury-topbar .navbar a { font-size: 1.15rem; padding: 0.5rem 0.8rem; }
}

@media (max-width: 992px) {
    html { font-size: 55%; }
    section { padding: 9rem 6% 4rem 6%; }
    
    .topbar-tier1 { padding: 0.9rem 5%; }
    .topbar-contact-group { display: none; }
    .topbar-utility-group .topbar-search-form { display: none; }
    .menu-toggle-btn { display: flex; }
    
    .topbar-tier2 {
        display: none;
    }
    
    header.luxury-topbar .navbar,
    header .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(250, 248, 245, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 2rem 6%;
        border-top: 1px solid var(--gold-border);
        border-bottom: 2px solid var(--gold);
        box-shadow: 0 20px 45px rgba(44, 38, 28, 0.15);
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.3s ease;
        pointer-events: none;
        z-index: 1000;
        height: auto;
    }
    
    header.luxury-topbar .navbar.active,
    header .navbar.active {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    header.luxury-topbar .navbar a,
    header .navbar a {
        width: 100%;
        padding: 1.2rem 1.6rem;
        font-size: 1.5rem;
        border-radius: var(--radius-card);
        border: 1px solid var(--gold-border);
        background: var(--bg-surface);
        color: var(--text-headline);
        display: flex;
        align-items: center;
        gap: 1.2rem;
    }

    header.luxury-topbar .navbar a:hover,
    header.luxury-topbar .navbar a:active,
    header .navbar a:hover,
    header .navbar a:active {
        background: var(--bg-card-warm);
        border-color: var(--gold-dark);
        color: var(--gold-dark);
    }
    
    .hero-live-ticker {
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
        width: 100%;
        padding: 1rem 1.4rem;
    }
    .ticker-separator { display: none; }
    
    .editorial-main-title { font-size: 3.8rem; text-align: center; }
    .editorial-container .location { justify-content: center; }
    .hero-actions { justify-content: center; }
    
    .hero-trust-metrics {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        text-align: center;
    }
    .metric-item:not(:last-child)::after { display: none; }
    
    .hero-photo-showcase { 
        margin-top: 3rem; 
        padding: 1.5rem 0;
        width: 100%;
    }
    .secondary-photo-badge { display: none; }
    .hero-floating-stat-pill { display: none; }
    
    .hero-property-finder {
        padding: 2rem 1.6rem;
    }
    .finder-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .finder-body {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
    .finder-btn {
        width: 100%;
    }
    
    .property-gallery-grid, .Opiniones .boxbox {
        grid-template-columns: 1fr;
    }

    .scroll-compass-dock {
        display: none;
    }

    .investment-steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .investment-steps-grid::before {
        display: none;
    }

    .gallery-filter-tabs {
        gap: 0.8rem;
    }

    .gallery-filter-btn {
        width: 100%;
        justify-content: center;
    }

    /* ==========================================================================
       TOP CORNER ARQUITECTÓNICO ESTÁTICO D'ALROC (CELULARES)
       - Abarca el ancho completo excepto el bordesito redondeado en la derecha
         (width: calc(100% - 14px); border-bottom-right-radius: 90px).
       - Estático en el tope (position: absolute; top: 0; left: 0;) - NO persigue al hacer scroll.
       - Marca de agua de la Virgen visible tanto cerrado en el header como abierto en el pop-up.
       - Cero duplicados, colores originales (#FCFAF6 / var(--gold)), CERO GLOW.
       ========================================================================== */
    body::before {
        display: none !important;
    }

    .top-shape-popup {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        width: calc(100% - 14px) !important;
        max-width: calc(100% - 14px) !important;
        background: var(--bg-surface) !important;
        border: 2px solid var(--gold) !important;
        border-top: none !important;
        border-left: none !important;
        border-bottom-right-radius: 90px !important;
        border-bottom-left-radius: 0 !important;
        box-shadow: 0 8px 24px rgba(40, 34, 25, 0.12) !important;
        z-index: 2500 !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
        outline: none !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        transform: none !important;
        transition: box-shadow 0.3s ease, border-bottom-right-radius 0.3s ease !important;
    }

    .top-shape-popup:not(.active):hover {
        transform: none !important;
    }

    .top-shape-popup.active {
        box-shadow: 0 16px 45px rgba(40, 34, 25, 0.18) !important;
        border-bottom-right-radius: 100px !important;
    }

    /* Marca de agua sacra de la Virgen en móvil (Exactamente como en PC, visible al desplegar el pop-up) */
    .top-shape-popup::before {
        display: none !important;
    }

    .top-shape-popup.active .top-shape-body::before {
        content: '' !important;
        position: absolute !important;
        right: 12px !important;
        bottom: 20px !important;
        width: 130px !important;
        height: 145px !important;
        background: url('img/Ejemplo.png') no-repeat bottom right / contain !important;
        opacity: 0.18 !important;
        pointer-events: none !important;
        z-index: 0 !important;
        display: block !important;
    }

    /* Pestaña superior con el logo oficial D'ALROC */
    .top-shape-handle {
        order: 1 !important;
        width: 100% !important;
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 1.6rem !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 2 !important;
        user-select: none !important;
    }

    .shape-handle-logo {
        height: 44px !important;
        width: auto !important;
        object-fit: contain !important;
        filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15)) !important;
        transition: transform 0.2s ease !important;
    }

    .top-shape-handle:active .shape-handle-logo {
        transform: scale(0.95);
    }

    .shape-handle-text,
    .shape-handle-toggle,
    .handle-brand-wrap {
        display: none !important;
    }

    /* Cuerpo del Pop-Up en móvil */
    .top-shape-body {
        order: 2 !important;
        width: 100% !important;
        position: relative !important;
        background: var(--bg-surface) !important;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.35s ease !important;
    }

    .top-shape-body > * {
        position: relative !important;
        z-index: 1 !important;
    }

    .top-shape-popup:not(.active) .top-shape-body {
        max-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        padding: 0 1.6rem !important;
        overflow: hidden !important;
        pointer-events: none !important;
        border-top: none !important;
    }

    .top-shape-popup.active .top-shape-body {
        max-height: 86vh !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 1rem 1.6rem 2.8rem 1.6rem !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        pointer-events: auto !important;
        border-top: 1px solid var(--gold-border) !important;
    }

    /* Acciones al pie: botón Propiedades y teléfono 100% fieles a POPUPtelefono.png */
    .top-shape-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.95rem !important;
        padding-top: 1.1rem !important;
        padding-bottom: 0.4rem !important;
        margin-bottom: 0.4rem !important;
        border-top: 1px solid var(--gold-border) !important;
        width: 100% !important;
    }

    .top-shape-wa-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 1.4rem !important;
        font-family: 'Cinzel', serif !important;
        font-size: 1.18rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.06em !important;
        text-transform: uppercase !important;
        background: #1D3D2E !important;
        color: #FFFFFF !important;
        border-radius: 8px !important;
        justify-content: center !important;
        box-shadow: 0 4px 14px rgba(29, 61, 46, 0.3) !important;
        transition: all 0.25s ease !important;
    }

    .top-shape-phone-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.65rem !important;
        font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
        font-size: 1.25rem !important;
        font-weight: 800 !important;
        color: #1D3D2E !important;
        background: #FFFFFF !important;
        border: 1.5px solid var(--gold) !important;
        border-radius: 9999px !important;
        padding: 0.65rem 1.4rem !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
        white-space: nowrap !important;
        margin-bottom: 0.2rem !important;
    }

    .top-shape-phone-link i {
        color: var(--gold-dark) !important;
        font-size: 1.1rem !important;
    }
}

@media (max-width: 600px) {
    .virgen-floating-dock {
        bottom: 1.2rem;
        right: 0.6rem;
    }
    .virgen-mantle-img {
        height: clamp(85px, 12vh, 105px);
    }
    .virgen-pulse-pill {
        font-size: 0.75rem;
        padding: 0.25rem 0.65rem;
        margin-top: -8px;
    }
    .virgen-flyout-card {
        right: 0;
        bottom: calc(100% + 12px);
        width: min(315px, calc(100vw - 1.2rem));
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* ===== REFINAMIENTO RESPONSIVE INTEGRAL (MÓVIL & TABLET) ===== */

/* 1. Tablets & Pantallas medianas (<= 1024px) */
@media (max-width: 1024px) {
    .portfolio-grid,
    .property-gallery-grid {
        gap: 2.5rem;
    }
    .portfolio-info {
        padding: 2.2rem 2.2rem;
    }
    .portfolio-info h4 {
        font-size: 2rem;
    }
}

/* 2. Tablets pequeñas & Móviles apaisados (<= 820px) */
@media (max-width: 820px) {
    .portfolio-grid,
    .property-gallery-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        gap: 2.6rem;
    }
    .property-modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-media-col {
        min-height: 240px;
        max-height: 270px;
    }
    .modal-info-col {
        padding: 2.6rem 2.2rem;
    }
}

/* 3. Móvil Estándar (<= 600px) */
@media (max-width: 600px) {
    /* Hero armonioso y despejado */
    .airbnb-hero {
        height: auto;
        min-height: 100svh;
        min-height: 100dvh;
        overflow: visible;
        padding: calc(88px + env(safe-area-inset-top, 18px)) 1.4rem 4rem 1.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .airbnb-hero-title {
        font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
        font-size: clamp(2.2rem, 6.6vw, 3.3rem);
        font-weight: 800;
        line-height: 1.18;
        letter-spacing: -0.03em;
        color: #FFFFFF;
        margin-bottom: 2rem;
        text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55);
    }

    /* Widget de Búsqueda Móvil Armonioso y Ampliado (Combobox grande y confortable) */
    .airbnb-search-widget {
        padding: 1.3rem 1.3rem 1.5rem 1.3rem;
        border-radius: 24px;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32), 0 0 16px rgba(184, 142, 62, 0.2);
    }

    .airbnb-widget-tabs {
        gap: 1.4rem;
        display: flex;
        justify-content: center;
        border-bottom: 1px solid #ECE7DE;
        padding-bottom: 0.8rem;
        margin-bottom: 1.1rem;
    }

    .airbnb-tab-btn {
        font-size: 1.3rem;
        font-weight: 700;
        padding: 0.5rem 0.7rem;
        color: #666666;
    }

    .airbnb-inputs-bar {
        border-radius: 20px;
        padding: 0.8rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        background: #FFFFFF;
        border: 1.5px solid #E2DBCF;
    }

    .airbnb-field-group {
        width: 100%;
        padding: 0.85rem 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        border-radius: 14px;
        min-height: 60px;
        transition: background-color 0.2s ease;
    }

    .airbnb-field-group .field-icon {
        font-size: 1.6rem;
    }

    .airbnb-field-group .field-label {
        font-size: 1.18rem !important;
        font-weight: 800 !important;
        color: #1A1612 !important;
        letter-spacing: 0.03em !important;
        margin-bottom: 0.15rem !important;
    }

    .airbnb-field-group .field-input,
    .airbnb-field-group select.field-select {
        font-size: 1.35rem !important;
        font-weight: 600 !important;
        color: #2D271F !important;
        padding-top: 0.2rem !important;
        line-height: 1.3 !important;
    }

    select.field-select option {
        font-size: 16px;
        padding: 10px 14px;
    }

    .airbnb-field-group:active,
    .airbnb-field-group:focus-within {
        background-color: #F8F6F2;
    }

    .field-divider {
        width: 100%;
        height: 1px;
        background-color: #ECE7DE;
        margin: 0.1rem 0;
        display: block;
    }

    .airbnb-cta-btn {
        width: 100% !important;
        margin: 0.3rem 0 0 0 !important;
        border-radius: 14px !important;
        padding: 1.25rem 1.6rem !important;
        font-size: 1.4rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.04em !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #1D3D2E 0%, #2A5A44 100%) !important;
        border: 1.5px solid var(--gold) !important;
        box-shadow: 0 6px 20px rgba(29, 61, 46, 0.35) !important;
    }

    .airbnb-secondary-wrap {
        margin-top: 1.6rem;
    }

    .airbnb-secondary-link {
        font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
        font-size: 1.15rem;
        font-weight: 700;
        color: #FFFFFF;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(0, 0, 0, 0.45);
        padding: 0.65rem 1.3rem;
        border-radius: 9999px;
        border: 1px solid rgba(212, 176, 98, 0.45);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition: all 0.2s ease;
    }

    /* Header Divisionario */
    .portfolio-divider-header {
        padding: 2.4rem 1.4rem 2.2rem 1.4rem;
    }
    .portfolio-divider-title {
        font-size: clamp(2.2rem, 6vw, 3.2rem);
    }

    /* Corrección y Estandarización de Alineación en Móviles (Cero justificación forzada / ríos de espacio) */
    p, .hero-tagline, .hero-feature, .step-body p, .Opiniones .boxbox p,
    .portfolio-info p, .modal-property-body, .modal-property-lead,
    .top-shape-service-text p, .legado-card p, .agent-bio {
        text-align: left !important;
        text-justify: auto !important;
        hyphens: manual !important;
        word-spacing: normal !important;
    }

    /* Sección Portafolio */
    .Galeria {
        background-attachment: scroll;
        padding: 3.5rem 4% 6rem 4%;
    }
    .portfolio-media-holder,
    .gallery-card-img-wrapper {
        height: 235px;
    }
    .portfolio-info {
        padding: 2rem 1.8rem;
        text-align: left;
    }
    .portfolio-info h4 {
        font-size: 1.85rem;
        margin-bottom: 0.9rem;
        line-height: 1.3;
        text-align: left;
    }
    .portfolio-info p {
        font-size: 1.32rem;
        margin-bottom: 1.6rem;
        text-align: left;
        line-height: 1.6;
    }
    .meta-specs-row {
        font-size: 1.18rem;
        gap: 0.6rem 1.2rem;
        justify-content: flex-start;
    }
    .meta-action-row {
        flex-wrap: wrap;
        gap: 0.8rem;
        padding-top: 0.8rem;
    }
    .meta-cta-link {
        font-size: 1.1rem;
    }

    /* Modal Ficha Técnica */
    .property-modal-backdrop {
        padding: 1rem;
    }
    .property-modal-box {
        outline-offset: -5px;
        max-height: 92vh;
    }
    .property-modal-close {
        top: 1.2rem;
        right: 1.2rem;
        width: 36px;
        height: 36px;
        font-size: 1.8rem;
    }
    .modal-media-col {
        min-height: 200px;
        max-height: 230px;
    }
    .modal-info-col {
        padding: 2rem 1.6rem;
    }
    .modal-property-title {
        font-size: 1.95rem;
        margin-bottom: 0.8rem;
        text-align: left;
    }
    .modal-property-lead {
        font-size: 1.25rem;
        margin-bottom: 1.1rem;
        text-align: left;
        line-height: 1.5;
    }
    .modal-property-body {
        font-size: 1.22rem;
        margin-bottom: 1.4rem;
        text-align: left;
        line-height: 1.65;
    }
    .modal-property-body::first-letter {
        font-size: 2.1rem;
        margin-right: 0.5rem;
        line-height: 0.9;
        margin-top: 0;
    }
    .modal-specs-pills {
        gap: 0.6rem;
        margin-bottom: 1.6rem;
        justify-content: flex-start;
    }
    .modal-spec-pill {
        font-size: 1.05rem;
        padding: 0.45rem 0.85rem;
    }
    .modal-btn-wa {
        padding: 1.15rem 1.4rem;
        font-size: 1.15rem;
        gap: 0.8rem;
    }

    /* Pop-Up Arquitectónico Top Shape */
    .top-shape-popup.active {
        max-height: 94vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Cabecera Pop-Up Top Corner Left con jerarquía móvil optimizada */
    .top-shape-kicker {
        display: none !important;
    }
    .tagline-desktop {
        display: none !important;
    }
    .tagline-mobile {
        display: block !important;
        font-family: 'Playfair Display', Georgia, serif !important;
        font-style: italic !important;
        font-size: 1.25rem !important;
        color: #554D40 !important;
        margin-top: 0.35rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
    }
    .top-shape-title {
        font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
        font-size: 2.35rem !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
        margin-top: 0 !important;
        color: #1A1612 !important;
    }
    .top-shape-title em {
        font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
        font-style: italic !important;
        font-weight: 800 !important;
        color: var(--gold-dark) !important;
    }
    .top-shape-close-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.35rem !important;
        background: #EDE6D8 !important;
        border: 1.5px solid #D5C8B2 !important;
        color: #2A241A !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Tarjetas de servicios: Vista fiel a POPUPtelefono.png y soporte táctil PC */
    .top-shape-services-grid {
        gap: 0.75rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    .top-shape-service-card {
        padding: 0.95rem 1.15rem !important;
        gap: 1.15rem !important;
        background: #F7F3EB !important;
        border: 1.5px solid #E2D9CA !important;
        border-radius: 14px !important;
        box-shadow: 0 2px 8px rgba(40, 34, 25, 0.04) !important;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .top-shape-service-card:hover,
    .top-shape-service-card:active,
    .top-shape-service-card.touch-active {
        background: var(--emerald-column) !important;
        border-color: var(--gold) !important;
        transform: translateX(4px) !important;
        box-shadow: 0 6px 18px rgba(29, 61, 46, 0.35), 0 0 10px rgba(184, 142, 62, 0.25) !important;
    }
    .top-shape-service-icon {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        background: #EDE6D8 !important;
        border: 1.5px solid #D5C8B2 !important;
        color: var(--emerald-column) !important;
        font-size: 1.35rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        transition: all 0.25s ease !important;
    }
    .top-shape-service-card:hover .top-shape-service-icon,
    .top-shape-service-card:active .top-shape-service-icon,
    .top-shape-service-card.touch-active .top-shape-service-icon {
        background: var(--gold) !important;
        border-color: var(--gold-light) !important;
        color: #142B20 !important;
        transform: scale(1.06) !important;
    }
    .top-shape-service-text strong {
        font-family: 'Playfair Display', Georgia, serif !important;
        font-size: 1.55rem !important;
        font-weight: 700 !important;
        color: #1A1612 !important;
        line-height: 1.22 !important;
        margin-bottom: 0.22rem !important;
        letter-spacing: 0.01em !important;
        transition: color 0.2s ease !important;
    }
    .top-shape-service-card:hover .top-shape-service-text strong,
    .top-shape-service-card:active .top-shape-service-text strong,
    .top-shape-service-card.touch-active .top-shape-service-text strong {
        color: #FFFFFF !important;
    }
    .top-shape-service-text p {
        font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
        font-size: 1.25rem !important;
        font-weight: 500 !important;
        color: #554D40 !important;
        line-height: 1.35 !important;
        letter-spacing: normal !important;
        white-space: normal !important;
        transition: color 0.2s ease !important;
    }
    .top-shape-service-card:hover .top-shape-service-text p,
    .top-shape-service-card:active .top-shape-service-text p,
    .top-shape-service-card.touch-active .top-shape-service-text p {
        color: #E8E2D6 !important;
    }

    /* Píldora e items flotantes rotativos aumentados armónicamente */
    .top-shape-expand-row {
        height: 56px;
        margin-top: 0.8rem !important;
        margin-bottom: 0.8rem !important;
        transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .top-shape-pill-box {
        width: 54px;
        height: 54px;
        border: 2px solid var(--gold) !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                    height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                    border-radius 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                    box-shadow 0.4s ease !important;
    }

    /* Estado Expandido en móvil (Píldora Panorámica 100% interactiva al toque) */
    .top-shape-expand-row.expanded,
    .top-shape-expand-row.pill-hovered {
        height: 82px !important;
    }
    .top-shape-expand-row.expanded .top-shape-pill-box,
    .top-shape-expand-row.pill-hovered .top-shape-pill-box {
        width: 100% !important;
        height: 82px !important;
        border-radius: 42px !important;
        box-shadow: 0 8px 24px rgba(40, 34, 25, 0.22), 0 0 18px rgba(184, 142, 62, 0.38) !important;
    }
    .top-shape-expand-row.expanded .top-shape-pill-img,
    .top-shape-expand-row.pill-hovered .top-shape-pill-img {
        transform: scale(1.02) !important;
    }
    .top-shape-expand-row.expanded .top-shape-flyin-wrap,
    .top-shape-expand-row.pill-hovered .top-shape-flyin-wrap {
        opacity: 0 !important;
        transform: translateX(25px) !important;
        pointer-events: none !important;
    }

    .top-shape-flyin-wrap {
        left: 64px !important;
    }
    .top-shape-flyin-item span {
        font-family: 'Cinzel', serif !important;
        font-size: 1.25rem !important;
        font-weight: 800 !important;
        color: var(--emerald-column) !important;
        letter-spacing: 0.035em !important;
        line-height: 1.25 !important;
    }
    .top-shape-flyin-item i {
        font-size: 1.25rem !important;
        color: var(--gold-dark) !important;
    }

    .vcard-profile-header {
        gap: 1.15rem;
    }
    .vcard-avatar-box {
        width: 64px;
        height: 64px;
    }
    .vcard-kicker {
        font-size: 0.92rem;
        letter-spacing: 0.1em;
        margin-bottom: 0.28rem;
    }
    .vcard-name {
        font-size: 1.95rem;
        margin-bottom: 0.35rem;
        letter-spacing: 0.01em;
    }
    .vcard-cert-tag {
        font-size: 1.05rem;
        padding: 0.28rem 0.8rem;
        gap: 0.45rem;
    }
    .vcard-cert-tag i {
        font-size: 1.05rem;
    }
}

/* 4. Móvil Compacto (<= 480px) */
@media (max-width: 480px) {
    html {
        font-size: 52%;
    }
    .portfolio-info {
        padding: 1.8rem 1.4rem;
        text-align: left;
    }
    .portfolio-info h4 {
        font-size: 1.75rem;
        text-align: left;
    }
    .meta-specs-row {
        font-size: 1.12rem;
        gap: 0.5rem 1rem;
        justify-content: flex-start;
    }
    .meta-location {
        font-size: 1.18rem;
    }
    .meta-cta-link {
        font-size: 1.05rem;
        letter-spacing: 0.05em;
    }
    .modal-info-col {
        padding: 1.8rem 1.3rem;
    }
    .modal-property-body::first-letter {
        font-size: 1.9rem;
        margin-right: 0.4rem;
    }
    .modal-btn-wa {
        font-size: 1.05rem;
        padding: 1.05rem 1.2rem;
    }
}

/* 5. Móviles Estrechos (<= 375px) */
@media (max-width: 375px) {
    .top-shape-title {
        font-size: 2.15rem;
    }
    .tagline-mobile {
        font-size: 1.15rem !important;
    }
    .top-shape-service-text strong {
        font-size: 1.45rem !important;
    }
    .top-shape-service-text p {
        font-size: 1.18rem !important;
    }
    .top-shape-flyin-item span {
        font-size: 1.15rem !important;
    }
    .vcard-name {
        font-size: 1.72rem;
    }
}
