/* ==========================================================================
   PETRONAS BIENES RAÍCES - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
    /* Color Palette */
    --gold-primary: #D4AF37;
    --gold-light: #F4E5B6;
    --gold-dark: #A88318;
    --gold-glow: rgba(212, 175, 55, 0.35);

    --slate-900: #0B0F19;
    --slate-800: #131A2A;
    --slate-700: #1E293B;

    /*--card-glass: rgba(13, 19, 33, 0.82);*/
    --card-glass: rgba(0, 45, 51, 0.82);
    --card-border: rgba(212, 175, 55, 0.3);
    --input-glass: rgba(255, 255, 255, 0.07);
    --input-border: rgba(255, 255, 255, 0.18);

    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-body);
    background-color: var(--slate-900);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Fixed Background Wrapper */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--slate-900);
}

.bg-wrapper.has-fallback {
    background-image: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
            rgba(11, 15, 25, 0.35) 0%,
            rgba(8, 11, 17, 0.65) 70%,
            rgba(5, 7, 12, 0.82) 100%);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* Main Container */
.page-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 60px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
    transition: transform var(--transition-normal), filter var(--transition-normal);
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.35));
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0.5px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-primary);
    animation: pulse 2s infinite;
}

/* Hero Section */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.hero-card {
    background: var(--card-glass);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-radius: 28px;
    padding: 3.5rem 3rem;
    width: 100%;
    max-width: 860px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(212, 175, 55, 0.12);
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-primary);
    margin-bottom: 1.2rem;
    background: rgba(212, 175, 55, 0.12);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.main-heading {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: #FFFFFF;
}

.highlight-gold {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold-primary);
    position: relative;
}

.hero-description {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
}

/* Countdown Grid */
.countdown-section {
    margin-bottom: 2.8rem;
}

.countdown-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.timer-box {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    min-width: 100px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.timer-box:hover {
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 18px rgba(212, 175, 55, 0.3);
}

.timer-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.timer-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.timer-separator {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold-primary);
    opacity: 0.6;
    margin-top: -1rem;
}

/* Subscription Form */
.newsletter-wrapper {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 1.8rem;
    margin-bottom: 2.5rem;
}

.form-prompt {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.subscribe-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.input-group {
    position: relative;
}

.custom-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--input-glass);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition-fast);
}

.custom-input::placeholder {
    color: var(--text-muted);
}

.custom-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.custom-select option {
    background-color: var(--slate-800);
    color: #FFFFFF;
}

.btn-submit {
    grid-column: span 2;
    background: linear-gradient(135deg, #E5C358 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    color: #0A0E17;
    border: none;
    padding: 1rem 1.8rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition-normal);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #F4E5B6 0%, #E5C358 50%, var(--gold-primary) 100%);
}

.btn-submit:active {
    transform: translateY(0);
}

.spin {
    animation: rotateSpin 1s linear infinite;
}

@keyframes rotateSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Contact Bar */
.contact-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold-light);
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-val {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Footer */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    animation: fadeInUp 0.9s ease-out;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: var(--gold-primary);
    color: var(--slate-900);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Modal Dialog */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 15, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-card {
    background: var(--slate-800);
    border: 1px solid var(--gold-primary);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.modal-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    line-height: 1.5;
}

.btn-close-modal {
    width: 100%;
    background: var(--gold-primary);
    color: var(--slate-900);
    border: none;
    padding: 0.85rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close-modal:hover {
    background: var(--gold-light);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Queries */
@media (max-width: 868px) {
    .hero-card {
        padding: 2.5rem 1.5rem;
    }

    .main-heading {
        font-size: 2.1rem;
    }

    .subscribe-form {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        grid-column: span 1;
    }

    .countdown-grid {
        gap: 0.4rem;
    }

    .timer-box {
        min-width: 70px;
        padding: 0.75rem 0.5rem;
    }

    .timer-value {
        font-size: 1.6rem;
    }

    .contact-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .brand-logo-img {
        height: 48px;
    }

    .timer-box {
        min-width: 60px;
        padding: 0.6rem 0.3rem;
    }

    .timer-value {
        font-size: 1.3rem;
    }

    .timer-separator {
        font-size: 1.3rem;
    }
}