:root {
    --gold: #d4b574;
    --gold-dim: #c1a364;
    --gold-dark: #8c7340;
    --text-main: #fcfcfc;
    --text-muted: #a9a9a9;
    --bg-dark: #0a0a0a;
    --bg-darker: #121212;
    --bg-darkest: #050505;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Oswald', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography base */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
}

.section {
    padding: 4rem 0;
}

/* Extra top spacing for sections after the full-screen hero */
.section-hero-child {
    padding-top: 10rem;
}

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

.gold-icon { color: var(--gold); }
.text-center { text-align: center; }

/* Buttons */
.btn-solid, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-solid {
    background-color: var(--gold);
    color: #1a1a1a;
}

.btn-solid:hover {
    background-color: var(--gold-dim);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: rgba(255,255,255,0.05);
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 0.2rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(5,5,5,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    justify-self: start;
}

.brand-logo-img {
    height: 120px;
    width: auto;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--text-main);
    white-space: nowrap;
}

.brand-tagline {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 3.5px; /* Ajustado para mayor precisión */
    color: rgba(255, 255, 255, 0.85); /* Mayor intensidad */
    text-transform: uppercase;
    margin-top: 0.3rem;
    display: block;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    justify-self: center;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-cta {
    display: flex;
    align-items: center;
    justify-self: end;
}

.btn-hablemos {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: var(--gold);
    color: #000;
    border-radius: 50px; /* Bordes circulares / Pill shape */
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(212, 181, 116, 0.3);
}

.btn-hablemos:hover {
    background-color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 181, 116, 0.5);
    color: #000;
}

.mobile-hablemos { display: none !important; }
.desktop-hablemos { display: inline-flex; }

.mobile-toggle { display: none; cursor: pointer; font-size: 1.5rem;}

.nav-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.1rem;
    width: 100%;
}

.nav-divider .line {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(212,181,116,0.3);
    max-width: 15vw;
}

.nav-divider .text {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
}

/* ---- HERO SECTION ---- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-bg-slider {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background-color: #000;
    /* Imagem base fija de fondo para evitar negro absoluto */
    background-image: url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
}

.no-mask img {
    mask: none;
    -webkit-mask: none;
    filter: none;
}

.hero-bg-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideFade 50s infinite linear;
}

/* 5 Espectaculares imágenes de alta resolución */
.hero-bg-slider .bg-1 {
    background-image: url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?auto=format&fit=crop&w=2000&q=80');
    animation-delay: 0s;
}
.hero-bg-slider .bg-2 {
    background-image: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=2000&q=80');
    animation-delay: -40s;
}
.hero-bg-slider .bg-3 {
    background-image: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=2000&q=80');
    animation-delay: -30s;
}
.hero-bg-slider .bg-4 {
    background-image: url('https://images.unsplash.com/photo-1600566753376-12c8ab20baf5?auto=format&fit=crop&w=2000&q=80');
    animation-delay: -20s;
}
.hero-bg-slider .bg-5 {
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2000&q=80');
    animation-delay: -10s;
}

@keyframes slideFade {
    0%    { opacity: 0; transform: scale(1.0); }
    5%    { opacity: 1; transform: scale(1.03); } /* Completamente visible a los 2.5s */
    35%   { opacity: 1; transform: scale(1.1); }  /* Se mantiene opaco hasta los 17.5s */
    40%   { opacity: 0; transform: scale(1.15); } /* Desaparece totalmente a los 20s */
    100%  { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Oscurecemos de forma más contundente el fondo para proteger el texto blanco y oro */
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.85) 100%);
    z-index: -1;
}

.hero-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 25vh; /* offset for fixed nav */
}

/* Centered Typo */
.hero-center {
    text-align: center;
    margin-bottom: 5vh;
}

.hero-pre-title {
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: none;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Seguridad extra sobre fotos reales */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title .line1 {
    font-size: 6rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -2px;
}

.hero-title .line2 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 6rem;
    color: var(--gold);
    font-weight: 700;
}

.hero-desc {
    max-width: 800px;
    margin: 2rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    text-align: center;
}

.hero-desc strong {
    color: var(--text-main);
    font-weight: 600;
}

.hero-actions {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.section {
    padding: 6.5rem 0; /* Más compacto para que quepa en pantalla */
    position: relative;
    scroll-margin-top: 120px; /* Compensación para la cabecera fija */
}

.services.section {
    scroll-margin-top: 100px;
}

.hero-actions .btn-hablemos {
    z-index: 2;
    position: relative;
    box-shadow: 5px 0 25px rgba(0,0,0,0.4);
}

.btn-outline-rounded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.8rem 0.5rem 2.8rem; /* Más estrecho y con espacio para el solape */
    background-color: rgba(10, 10, 10, 0.85);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
    margin-left: -35px; /* Solape justo para que parezca una extensión */
    z-index: 1;
    position: relative;
    cursor: pointer;
}

.btn-outline-rounded:hover {
    color: var(--gold);
    background-color: #000;
    transform: translateX(8px); /* Pequeño avance */
}

/* ---- COMMON SECTIONS ---- */

/* ---- COMMON SECTIONS ---- */
.section-header h2 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.section-header h2 span {
    font-style: italic;
    color: var(--gold);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* ---- QUIENES SOMOS (ABOUT) ---- */
.about {
    position: relative;
    overflow: hidden; /* Para el fondo con zoom */
}

.about::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(to bottom, rgba(10,10,10,0.8), rgba(10,10,10,0.8)), url('../images/008.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0; /* Comienza invisible */
    z-index: 0;
    transition: transform 9s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 5s ease-in-out,
                clip-path 4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.3);
    clip-path: circle(0% at 50% 50%); /* Comienza desde el centro */
}

.about.active::before {
    opacity: 0.5; /* Aumentada la visibilidad al 50% según petición del usuario */
    transform: scale(1);
    clip-path: circle(120% at 50% 50%); /* Se expande hacia los bordes */
}

.about .container {
    position: relative;
    z-index: 1; /* Por encima del fondo */
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image-wrapper {
    flex: 0 0 320px; /* Ancho fijo para que la altura coincida mejor con el texto */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-image {
    position: relative;
    width: 100%;
}

/* CONTENEDOR CON TRANSICIÓN DE PERFIL */
.profile-interactive-container {
    position: relative;
    width: 100%;
    border-radius: 4px;
    background-color: #1e1e1e;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(212,181,116,0.3);
    cursor: default; /* Ya no es un enlace */
    display: block; 
}

.profile-interactive-container img {
    display: block;
    width: 100%;
    border-radius: 4px;
    filter: grayscale(10%) contrast(1.1);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease;
}

.profile-interactive-container .profile-hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    filter: grayscale(15%) contrast(1.15); /* Efecto un poco más dramático para la segunda */
}

/* OVERLAY Y TEXTO */
.profile-interactive-container {
    display: block; /* Aseguramos que el anchor actúe como bloque contenedor */
}

.profile-hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%);
    border-radius: 4px;
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
}

.hover-text {
    position: absolute;
    bottom: 0.8rem; /* Sitúa el texto mucho más abajo */
    left: -3rem; /* Lo saca más hacia la izquierda */
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 2.3rem; /* Tamaño reducido para mayor sutileza */
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0px;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 5px 20px rgba(0,0,0,0.9), 2px 2px 0px rgba(0,0,0,1);
    white-space: nowrap;
}

.hover-text i {
    font-size: 1.4rem; /* Icono ligeramente reducido en proporción */
    margin-right: 5px;
}

/* Efectos al pasar el ratón */
.profile-interactive-container:hover .profile-base {
    opacity: 0;
}

.profile-interactive-container:hover .profile-hover-img {
    opacity: 1;
    transform: scale(1.03);
}

.profile-interactive-container:hover .profile-hover-overlay {
    opacity: 1;
}

.profile-interactive-container:hover .hover-text {
    transform: translateY(0);
}

.experience-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--gold);
    color: #000;
    padding: 0.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 2;
}

.experience-badge .number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.about-image-wrapper h3 {
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-top: 1.5rem;
    font-style: italic;
    text-align: center;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.about-content h2 span {
    color: var(--gold);
    font-style: italic;
}

.about-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify;
}

.about-list {
    list-style: none;
    margin-top: 2rem;
}

.about-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #ddd;
}

/* ---- SERVICES VERTICAL LAYOUT ---- */
.services {
    position: relative;
    overflow: hidden; /* Para el fondo con zoom */
}

.services::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(to bottom, rgba(10,10,10,0.8), rgba(10,10,10,0.8)), url('../images/005.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0; /* Comienza invisible */
    z-index: 0;
    transition: transform 9s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 5s ease-in-out,
                clip-path 4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.3);
    clip-path: circle(0% at 50% 50%); /* Empieza circular desde el centro */
}

.services.active::before {
    opacity: 0.5; /* Aumentada la visibilidad al 50% para consistencia */
    transform: scale(1); /* Zoom out lento */
    clip-path: circle(120% at 50% 50%); /* Se expande hacia los bordes */
}

.services .container {
    position: relative;
    z-index: 1; /* Por encima del fondo */
}

.services-vertical-layout {
    display: flex;
    background: rgba(15, 15, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    min-height: 550px;
    margin-top: 2rem; /* Separación más estrecha */
}

.services-sidebar {
    flex: 0 0 280px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.service-v-tab {
    padding: 1.2rem 2.5rem; /* Más compacto verticalmente (antes 2rem) */
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.service-v-tab i {
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
}

.service-v-tab span {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-v-tab:hover {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

.service-v-tab.active {
    background: rgba(212, 181, 116, 0.03);
    color: var(--gold);
    border-left-color: var(--gold);
}

.services-panels {
    flex: 1;
    padding: 1.45rem 3.5rem 3.5rem 2.8rem; /* Ajuste milimétrico para alineación exacta (1.45rem) y tabulación (2.8rem) */
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-v-panel {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.service-v-panel.active {
    display: block;
}

.service-v-panel h3 {
    font-size: 2.1rem;
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.1;
}

.service-desc {
    text-align: justify;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9); /* Más brillante para mejorar lectura */
    max-width: 750px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6); /* Sombra suave para separar del fondo */
}

.hero-featured-text {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-style: italic;
    font-size: 1.25rem; /* Un poco superior al 1.1rem del texto base */
    font-weight: 500;
}

.hero-featured-number {
    font-size: 1.15em; /* Aumentado 2-3px relativo al padre */
    font-weight: 700;
    line-height: 0; /* Para que no afecte el flujo line-height de la frase */
}

.v-panel-content {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr; /* Más espacio para la imagen */
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
    min-height: 400px; /* Evita que el panel colapse */
}

.v-panel-list {
    list-style: none;
    z-index: 5;
}

.v-panel-img {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end; /* Alineada a la derecha según esquema */
    align-items: center;
}

.v-panel-img img {
    width: 100%;
    max-width: 600px; /* Mucho más grande */
    height: auto;
    object-fit: contain;
    /* Centro 60% totalmente nítido, desvanecimiento amplio al final */
    mask-image: radial-gradient(ellipse at center, black 0% 60%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0% 60%, transparent 95%);
    filter: contrast(1.1) brightness(0.95);
    pointer-events: none;
}

/* Filtros de oscuridad para integración luxury (ajustados) */
.v-img-dark img {
    filter: brightness(0.5) contrast(1.1) grayscale(0.2);
    opacity: 0.8;
}

/* Imágenes sin máscara y sin filtro (según viene) */
.v-panel-img.no-mask img {
    mask-image: none !important;
    -webkit-mask-image: none !important;
    filter: none !important;
    opacity: 1 !important;
    object-fit: contain;
    max-width: 500px;
}

@media (max-width: 1100px) {
    .v-panel-content {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 3rem;
    }
    .v-panel-img { justify-content: center; }
    .v-panel-img img { max-width: 80%; }
}

.service-v-panel h3 {
    font-size: 2.1rem; /* Más proporcionado al nuevo espacio */
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.1;
}

.service-v-panel p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    max-width: 650px;
}

.v-panel-list {
    list-style: none;
}

.v-panel-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.1rem;
    color: #fcfcfc;
}

.v-panel-list i {
    color: var(--gold);
    font-size: 0.9rem;
}

/* ---- PORTFOLIO / ESCAPARATE ---- */
.properties .section-header p {
    margin-bottom: 4rem; /* Más espacio respecto a las viviendas */
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.property-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(212, 181, 116, 0.2); /* Base dorada muy fina */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden; /* Para que la imagen respete el radio si lo ponemos */
}

.property-card:hover { 
    transform: translateY(-12px); 
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 181, 116, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.property-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.property-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover img {
    transform: scale(1.05);
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: var(--bg-darkest);
    color: #fff;
    border: 1px solid var(--gold);
}

/* ---- STAMP SEAL ANIMATION ---- */
.stamp-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(4);
    padding: 0.8rem 2rem;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--gold);
    border: 5px solid var(--gold);
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 15px rgba(212, 181, 116, 0.2);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.property-card:hover .stamp-seal {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1) rotate(-12deg);
}

.property-content {
    padding: 2rem;
}

.property-title {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.property-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.property-features {
    display: flex;
    gap: 1.5rem;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1.5rem;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-price {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold);
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Espaciado unificado para cabeceras de sección con rejillas */
.portfolio.section .section-header p,
.testimonials .section-header p {
    margin-bottom: 4rem; /* Separación respecto a los cuadros/tarjetas */
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.07); /* Más opaco para más 'luz' */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 2.8rem;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Borde más nítido */
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 15px 35px rgba(0,0,0,0.3);
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 181, 116, 0.6);
    box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0,0,0,0.5);
}

.testimonial-card .stars {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.testimonial-card .quote {
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: auto; /* Empuja el autor hacia abajo */
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 6; /* Limita líneas para mantener el cuadrado limpio */
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

/* Imágenes sin máscara y sin filtro (según viene) */
.v-panel-img.no-mask img {
    mask-image: none !important;
    -webkit-mask-image: none !important;
    filter: none !important;
    opacity: 1 !important;
    max-width: 550px;
}

.author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: rgba(212,181,116,0.1);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 1.2rem;
}

.author-info h4 { font-family: var(--font-sans); font-size: 1rem; }
.author-info span { font-size: 0.8rem; color: var(--text-muted); }

/* ---- FOOTER ---- */
.footer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }

.footer-desc {
    color: var(--text-muted);
    margin: 1.5rem 0;
    max-width: 320px;
    font-size: 0.95rem;
    text-align: justify;
    line-height: 1.6;
}
.footer h3 { font-family: var(--font-sans); font-size: 1.1rem; margin-bottom: 2rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 1rem; color: var(--text-muted); transition: color 0.3s;}
.footer ul li a:hover { color: var(--gold); }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; transition: all 0.3s; }
.social-links a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 2rem 0; font-size: 0.85rem; color: var(--text-muted); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.legal-links { display: flex; gap: 2rem; }
.legal-links a:hover { color: #fff; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: -100%; left: 0; width: 100%; background-color: rgba(5,5,5,0.95); backdrop-filter: blur(10px); padding: 1.5rem; display: flex; justify-content: center; align-items: center; gap: 2rem; z-index: 1000; transition: bottom 0.5s ease; border-top: 1px solid var(--gold); }
.cookie-banner.show { bottom: 0; }
.cookie-content { max-width: 800px; font-size: 0.9rem; line-height: 1.6; }
.cookie-actions { display: flex; gap: 1rem; }

/* ---- SERVICES TICKER ---- */
.services-ticker {
    width: 100%;
    background-color: rgba(10, 10, 10, 0.4); /* Fondo oscuro muy transparente */
    backdrop-filter: blur(14px); /* El efecto cristal */
    -webkit-backdrop-filter: blur(14px);
    color: var(--gold); /* Texto en dorado sobre el cristal */
    padding: 0.7rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid rgba(212, 181, 116, 0.15);
    border-bottom: 1px solid rgba(212, 181, 116, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.ticker-track {
    display: inline-block;
    animation: ticker linear 30s infinite;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ticker-track span {
    padding-right: 3rem;
    display: inline-block;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-title .line1 { font-size: 4.5rem; }
    .hero-title .line2 { font-size: 4.5rem; }
    .nav-container { padding: 0 2rem; }
    .nav-divider .text { font-size: 0.6rem; letter-spacing: 1px; }
}

@media (max-width: 992px) {
    .nav-divider { display: none; }
    .nav-brand .brand-tagline { display: none; } /* Ocultar para hacer hueco al botón */
    
    /* Escalar elementos de marca para evitar recortes */
    .brand-logo-img { height: 45px; }
    .logo-text { font-size: 1.3rem; letter-spacing: 3px; }
    
    .nav-cta { margin-left: auto; margin-right: 1.2rem; }
    .nav-cta .btn-hablemos { padding: 0.4rem 0.8rem; font-size: 0.7rem; letter-spacing: 1px; }
    
    .desktop-hablemos { display: none !important; }
    .mobile-hablemos { display: inline-flex !important; }
    
    .mobile-toggle { display: block; }

    /* Mobile dropdown menu */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(5,5,5,0.98);
        padding: 2rem 2.5rem;
        border-top: 1px solid rgba(212,181,116,0.2);
        gap: 2rem;
        z-index: 200;
        box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    }
    .nav-links.open { display: flex; }

    .hero-left-content { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .stats-flex { flex-direction: column; gap: 2rem; }
    .stat-divider { width: 100px; height: 1px; }
    .about-flex { flex-direction: column; }
    .services-vertical-layout { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .flex-between { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Ocultar el indicador de móvil por defecto en ordenador */
.mobile-scroll-hint {
    display: none;
}

@media (max-width: 768px) {
    .section-hero-child {
        padding-top: 5rem;
    }

    /* ---- MOBILE SERVICES OPTIMIZATION ---- */
    .mobile-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: var(--gold);
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
        letter-spacing: 1px;
        animation: sideTip 2s infinite ease-in-out;
        opacity: 0.8;
    }

    .services-sidebar {
        flex: none;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        padding: 5px 0 20px 0 !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 10px;
        justify-content: flex-start;
        border-right: none !important;
        border-bottom: 1px solid rgba(212,181,116,0.1);
        margin-bottom: 20px;
    }

    .services-sidebar::-webkit-scrollbar {
        display: none;
    }

    .service-v-tab {
        flex: 0 0 auto;
        padding: 0.7rem 1.4rem !important;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(212,181,116,0.2) !important;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .service-v-tab.active {
        background: rgba(212,181,116,0.15);
        border-color: var(--gold) !important;
        color: var(--gold);
    }

    .service-v-tab i {
        margin: 0 !important;
        font-size: 0.9rem;
    }

    .service-v-tab span {
        font-size: 0.8rem;
        display: inline-block !important;
    }

    .services-panels {
        padding: 0.5rem 0 !important;
    }

    .v-panel-content {
        grid-template-columns: 1fr;
    }

    .v-panel-img {
        height: 250px;
    }
}

@keyframes sideTip {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(8px); opacity: 1; }
}
