/* =========================================
   VARIABLES & COLOR PALETTE
========================================= */
:root {
    --remax-blue: #003da5;
    --remax-blue-light: #e6eff9;
    --remax-red: #dc1c2e;
    --remax-red-light: #fbe8ea;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --green-light: #e8f5e9;
    --dark-light: #e9ecef;

}

/* =========================================
   BASE STYLES
========================================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #495057;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* UTILITIES */
.color-remax-blue {
    color: var(--remax-blue) !important;
}

.color-remax-red {
    color: var(--remax-red) !important;
}

.bg-remax-blue {
    background-color: var(--remax-blue) !important;
}

.bg-remax-red {
    background-color: var(--remax-red) !important;
}

.bg-remax-blue-light {
    background-color: #009688;
}

.bg-blue-light {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-red-light {
    background-color: rgba(220, 53, 69, 0.1);
}

.bg-green-light {
    background-color: var(--green-light);
}

.bg-dark-light {
    background-color: var(--dark-light);
}

.z-index-1 {
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

.transition-all {
    transition: all 0.3s ease-in-out;
}

/* =========================================
   BUTTONS
========================================= */
.btn-remax-blue {
    background-color: var(--remax-blue);
    border-color: var(--remax-blue);
    color: white;
    transition: all 0.3s ease;
}

.btn-remax-blue:hover {
    background-color: #002b7a;
    border-color: #002b7a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 61, 165, 0.2) !important;
}

.btn-remax-red {
    background-color: var(--remax-red);
    border-color: var(--remax-red);
    color: white;
    transition: all 0.3s ease;
}

.btn-remax-red:hover {
    background-color: #b51524;
    border-color: #b51524;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 28, 46, 0.2) !important;
}

.btn-outline-remax {
    color: var(--remax-blue);
    border-color: var(--remax-blue);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-remax:hover {
    background-color: var(--remax-blue);
    color: white;
    transform: translateY(-2px);
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
    padding: 1rem 0;
    transition: padding 0.3s, box-shadow 0.3s, background 0.3s;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.nav-link {
    color: #495057;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--remax-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 0;
    height: 2px;
    background-color: var(--remax-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, rgba(230, 239, 249, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--remax-blue-light);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--remax-red-light);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.hero-text {
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.hero-image-wrapper .hero-img {
    max-width: 90%;
    border: 8px solid white;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    color: #333;
    animation: float 4s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 15%;
    right: -10%;
    animation-delay: 1.5s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =========================================
   CARDS & ACCESOS
========================================= */
.access-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 1rem;
    overflow: hidden;
}

.access-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.access-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* =========================================
   SECTIONS
========================================= */
.list-item-hover {
    transition: transform 0.3s ease, background 0.3s ease;
    background: white;
}

.list-item-hover:hover {
    transform: translateX(10px);
    background: var(--remax-blue-light);
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box.bg-blue {
    background-color: var(--remax-blue);
}

.img-blob-wrapper {
    position: relative;
}

.blob-shape {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: var(--remax-blue-light);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.image-zoom {
    transition: transform 0.5s ease;
}

.image-zoom:hover {
    transform: scale(1.03);
}

.section-angled {
    clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
    padding-top: calc(5rem + 4vw) !important;
    padding-bottom: calc(5rem + 4vw) !important;
}

@media (max-width: 768px) {
    .section-angled {
        clip-path: none;
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

.profile-frame {
    width: 320px;
    height: 320px;
    position: relative;
}

.profile-frame::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--remax-blue);
    border-radius: 50%;
    z-index: -1;
}

.value-card {
    transition: all 0.3s ease;
}

.value-card:hover {
    background-color: var(--remax-blue-light) !important;
    transform: translateY(-5px);
}

/* =========================================
   FOOTER
========================================= */
.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--remax-red) !important;
}

.social-link {
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-link:hover {
    color: var(--remax-red) !important;
    transform: translateY(-3px);
}

/* =========================================
   FLOATING BUTTON
========================================= */
.floating-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    z-index: 1000;
    transition: transform 0.3s ease, background 0.3s;
}

.floating-wa:hover {
    background-color: #20b858;
    color: #fff;
    transform: scale(1.1);
}

/* =========================================
   DIGITAL CARD MODAL (IMAGE VERSION)
========================================= */
.tarjeta-wrapper {
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    background: #f0f0f0;
}

.tarjeta-img {
    transition: transform 0.5s ease;
    width: 100%;
    display: block;
}

.tarjeta-wrapper:hover .tarjeta-img {
    transform: scale(1.05);
}

.tarjeta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 61, 165, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tarjeta-wrapper:hover .tarjeta-overlay {
    opacity: 1;
}

#digitalCardModal .modal-content {
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#digitalCardModal .btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#digitalCardModal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* =========================================
   MOBILE RESPONSIVENESS FIXES
========================================= */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #ffffff;
        padding: 1.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }

    .hero {
        min-height: auto;
        padding-top: 130px;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
    }

    .hero-image-wrapper .hero-img {
        max-width: 80%;
    }

    .floating-badge {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    .badge-1 {
        left: 0%;
        top: 5%;
    }

    .badge-2 {
        right: 0%;
        bottom: 5%;
    }

    .display-4 {
        font-size: 2.5rem;
    }
}