/* ============================================================
   777 INMOBILIARIA — CAPA PREMIUM
   Mejoras visuales de alto impacto que respetan la identidad
   de marca (dorado #F5BA0A · azul profundo #0A3B51 · crema).
   Este archivo se carga DESPUÉS de styles.css y solo añade
   o refina estilos; no elimina funcionalidades existentes.
   ============================================================ */

/* ---------- Detalles globales de lujo ---------- */
::selection {
    background: var(--color-primary);
    color: var(--color-secondary);
}

::-webkit-scrollbar {
    width: 11px;
}
::-webkit-scrollbar-track {
    background: #07293a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-gold), var(--color-amber-deep));
    border-radius: 8px;
    border: 2px solid #07293a;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Subrayado dorado animado bajo los títulos de sección */
.section-title {
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 68px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-amber-deep), var(--color-primary), var(--color-gold));
    background-size: 200% 100%;
    animation: pr-gold-flow 3.5s linear infinite;
}

@keyframes pr-gold-flow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ---------- HERO CINEMATOGRÁFICO ---------- */

/* Las etiquetas "Video 1 / Video 2" quedan ocultas: el nuevo
   contenido del hero ocupa ese espacio con mensaje de marca. */
.slide-label {
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(24px, 5vw, 64px);
    background: linear-gradient(to top,
        rgba(4, 26, 37, 0.88) 0%,
        rgba(4, 26, 37, 0.45) 38%,
        rgba(4, 26, 37, 0.05) 65%,
        transparent 100%);
    pointer-events: none;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 14px;
    opacity: 0;
    animation: pr-rise 0.9s ease 0.2s forwards;
}
.hero-kicker::before {
    content: '';
    width: 34px;
    height: 2px;
    background: var(--color-primary);
}

.hero-title {
    font-size: clamp(34px, 5.4vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    max-width: 14ch;
    margin-bottom: 16px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
    opacity: 0;
    animation: pr-rise 0.9s ease 0.35s forwards;
}

/* Texto con brillo dorado en movimiento */
.gold-shimmer {
    background: linear-gradient(100deg,
        var(--color-primary) 20%,
        #fff2c4 40%,
        var(--color-gold) 55%,
        var(--color-primary) 80%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pr-shimmer 4s linear infinite;
}

@keyframes pr-shimmer {
    0%   { background-position: 120% 50%; }
    100% { background-position: -100% 50%; }
}

.hero-sub {
    font-size: clamp(15px, 1.6vw, 19px);
    color: rgba(255, 255, 255, 0.88);
    max-width: 52ch;
    margin-bottom: 26px;
    opacity: 0;
    animation: pr-rise 0.9s ease 0.5s forwards;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    opacity: 0;
    animation: pr-rise 0.9s ease 0.65s forwards;
}
.hero-ctas > * {
    pointer-events: auto;
}

.hero-cta-ghost {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    backdrop-filter: blur(6px);
    transition: var(--transition);
}
.hero-cta-ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

@keyframes pr-rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Partículas doradas flotantes dentro del hero */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}
.hero-particles span {
    position: absolute;
    bottom: -12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 12px 2px rgba(245, 186, 10, 0.55);
    opacity: 0;
    animation: pr-float 11s linear infinite;
}
.hero-particles span:nth-child(1) { left: 8%;  animation-delay: 0s;    transform: scale(0.7); }
.hero-particles span:nth-child(2) { left: 22%; animation-delay: 2.4s;  transform: scale(1.1); }
.hero-particles span:nth-child(3) { left: 37%; animation-delay: 5s;    transform: scale(0.5); }
.hero-particles span:nth-child(4) { left: 52%; animation-delay: 1.2s;  transform: scale(0.9); }
.hero-particles span:nth-child(5) { left: 66%; animation-delay: 6.6s;  transform: scale(0.6); }
.hero-particles span:nth-child(6) { left: 79%; animation-delay: 3.6s;  transform: scale(1); }
.hero-particles span:nth-child(7) { left: 91%; animation-delay: 8s;    transform: scale(0.8); }

@keyframes pr-float {
    0%   { transform: translateY(0); opacity: 0; }
    8%   { opacity: 0.9; }
    70%  { opacity: 0.55; }
    100% { transform: translateY(-115vh); opacity: 0; }
}

/* Indicador de scroll */
.hero-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 4;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    pointer-events: none;
}
.hero-scroll-hint span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 3px;
    background: var(--color-primary);
    animation: pr-scroll-drop 1.8s ease-in-out infinite;
}

@keyframes pr-scroll-drop {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ---------- BANDA DE ESTADÍSTICAS ---------- */
.stats-band {
    position: relative;
    padding: 72px 0;
    background:
        radial-gradient(circle at 12% 15%, rgba(245, 186, 10, 0.14), transparent 42%),
        radial-gradient(circle at 88% 85%, rgba(255, 209, 102, 0.1), transparent 45%),
        linear-gradient(135deg, #072a3b, var(--color-secondary) 55%, #0e4a64);
    color: #fff;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 30px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}
.stat-item:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 186, 10, 0.55);
    background: rgba(245, 186, 10, 0.08);
}

.stat-value {
    font-size: clamp(38px, 4.5vw, 54px);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    text-shadow: 0 6px 26px rgba(245, 186, 10, 0.35);
}

.stat-suffix {
    color: var(--color-gold);
}

.stat-label {
    margin-top: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* ---------- MARQUESINA DE CONFIANZA ---------- */
.brand-marquee {
    overflow: hidden;
    background: var(--color-primary);
    padding: 16px 0;
    border-top: 3px solid var(--color-amber-deep);
    border-bottom: 3px solid var(--color-amber-deep);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 48px;
    animation: pr-marquee 30s linear infinite;
}
.brand-marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 48px;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-secondary);
    white-space: nowrap;
}
.marquee-track span::after {
    content: '✦';
    font-size: 13px;
    color: #7c5e00;
}

@keyframes pr-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- REVELADO AL HACER SCROLL ---------- */
.pr-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease var(--pr-delay, 0s),
        transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--pr-delay, 0s);
    will-change: opacity, transform;
}
.pr-reveal.pr-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- TARJETAS CON INCLINACIÓN 3D Y BRILLO ---------- */
.pr-tilt {
    position: relative;
    transform-style: preserve-3d;
}
.pr-tilt:hover {
    transform: perspective(900px)
        rotateX(var(--pr-rx, 0deg))
        rotateY(var(--pr-ry, 0deg))
        translateY(-8px);
}
/* Destello dorado que sigue al cursor */
.pr-tilt::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--pr-mx, 50%) var(--pr-my, 50%),
        rgba(245, 186, 10, 0.16), transparent 45%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.pr-tilt:hover::after {
    opacity: 1;
}

/* ---------- FAQ CON ESTILO DE TARJETA ---------- */
.faq .faq-item {
    background: #fff;
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    padding: 22px 26px;
    box-shadow: 0 8px 24px rgba(10, 59, 81, 0.07);
    transition: var(--transition);
}
.faq .faq-item:hover {
    transform: translateX(6px);
    box-shadow: 0 14px 34px rgba(10, 59, 81, 0.12);
}

/* ---------- BOTÓN VOLVER ARRIBA CON ANILLO DE PROGRESO ---------- */
.back-to-top {
    position: fixed;
    bottom: 104px;
    right: 34px;
    z-index: 900;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: var(--color-secondary);
    color: var(--color-primary);
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(7, 42, 59, 0.45);
}
.back-to-top::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(var(--color-primary) var(--pr-progress, 0deg),
        rgba(245, 186, 10, 0.18) var(--pr-progress, 0deg));
    z-index: -1;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-4px);
}

/* ---------- AJUSTES RESPONSIVE ---------- */
@media (max-width: 768px) {
    .hero-overlay {
        justify-content: flex-end;
        padding-bottom: 48px;
    }
    .hero-title {
        max-width: 100%;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .back-to-top {
        right: 22px;
        bottom: 96px;
    }
}

/* ---------- MOVIMIENTO REDUCIDO ---------- */
@media (prefers-reduced-motion: reduce) {
    .section-title::after,
    .gold-shimmer,
    .marquee-track,
    .hero-particles span,
    .hero-scroll-hint span {
        animation: none !important;
    }
    .hero-kicker,
    .hero-title,
    .hero-sub,
    .hero-ctas {
        opacity: 1;
        animation: none;
    }
    .pr-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
