/* 
    YEXTHÓ REAL ESTATE - GLOBAL STYLES
    Branding: Forest Green, Slate Grey, Earth Sand, Mexican Pink.
    Typography: Playfair Display (Titles), Montserrat (Body).
*/

/* --- 1. FONTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --yext-green: #2C4A3E;
    --yext-green-light: #4E7D56;
    --yext-pink: #C2278E;
    --yext-pink-light: #FFF2FA;
    --yext-grey: #4A4A4A;
    --yext-sand: #F4F1EA;
    --yext-white: #FFFFFF;
    --yext-black: #1A1A1A;
    --yext-earth: #8C6239;
    --transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

/* --- 2. GLOBAL RESET & BASE --- */
body {
    background-color: var(--yext-sand);
    color: var(--yext-black);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    scroll-padding-top: 100px;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* --- 3. HEADER & NAVIGATION --- */
header.sticky-top {
    top: 0;
    z-index: 1030;
    background-color: var(--yext-white) !important;
}

.navbar {
    padding: 0.8rem 0;
}

.navbar-brand img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.nav-link {
    font-weight: 700;
    color: var(--yext-grey) !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0 10px;
    position: relative;
    padding-bottom: 5px;
}

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 3px;
        bottom: 0;
        left: 0;
        background-color: var(--yext-green);
        transition: var(--transition);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

/* Dropdown Menu Customization */
.dropdown-menu {
    border-radius: 0 !important;
    border: 1px solid var(--yext-green);
    margin-top: 0;
    padding: 0;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.dropdown-item {
    font-size: 0.85rem;
    padding: 12px 20px;
    color: var(--yext-grey);
    text-transform: uppercase;
    transition: var(--transition);
}

    .dropdown-item:hover {
        background-color: var(--yext-green);
        color: var(--yext-white) !important;
    }

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.2s ease-in;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-toggle::after {
    display: none;
}

/* --- 4. GLOBAL COMPONENTS --- */
.btn-dark {
    background-color: var(--yext-black);
    border: none;
    padding: 10px 20px;
    border-radius: 0;
    letter-spacing: 1px;
    transition: var(--transition);
}

    .btn-dark:hover {
        background-color: var(--yext-green);
        transform: translateY(-2px);
    }

.form-control, .form-select {
    border: 1px solid #D1D1D1;
    border-radius: 0;
    padding: 12px;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--yext-green);
        box-shadow: none;
    }

.section-padding {
    padding: 80px 0;
}

/* --- 5. FOOTER --- */
.footer-yext {
    background-color: var(--yext-pink) !important;
    color: var(--yext-white);
}

.greca-footer {
    height: 5px;
    width: 100%;
    background-color: #000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='5' viewBox='0 0 10 5'%3E%3Cpolygon points='0,5 2.5,0 5,5' fill='%23fff'/%3E%3Cpolygon points='5,0 7.5,5 10,0' fill='%23fff'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 10px 5px;
}

.logo-asociacion-footer {
    height: 220px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-link-item {
    color: var(--yext-white) !important;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
    padding: 6px 0;
    transition: var(--transition);
}

    .footer-link-item:hover {
        transform: translateX(8px);
        opacity: 0.8;
    }

.social-link-large {
    color: var(--yext-white) !important;
    font-size: 2.5rem;
    margin-left: 20px;
    transition: var(--transition);
}

    .social-link-large:hover {
        transform: scale(1.2);
    }

.copyright-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.lang-switcher a {
    text-decoration: none;
    color: var(--yext-grey);
}

    .lang-switcher a.active {
        color: var(--yext-black);
        border-bottom: 2px solid var(--yext-black);
    }

/* --- 6. UTILITIES --- */
.border-start-lg {
    border-left: 1px solid rgba(255,255,255,0.25);
}

@media (max-width: 991px) {
    .border-start-lg {
        border-left: none;
    }
}


/*temporal:*/
.bg-sand {
    background-color: #FDFBF7;
}

.modal-progress {
    display: flex;
    position: absolute;
    top: 0;
    width: 100%;
    height: 4px;
    gap: 4px;
    padding: 0 10px;
    margin-top: 10px;
}

.progress-bar-segment {
    flex: 1;
    background: #eee;
    height: 100%;
    border-radius: 2px;
    transition: 0.3s;
}

    .progress-bar-segment.active {
        background: var(--yext-pink);
    }

.timer-box {
    background: white;
    padding: 10px;
    border-radius: 8px;
    min-width: 70px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

    .timer-box span {
        display: block;
        font-size: 24px;
        font-weight: bold;
        color: var(--yext-pink);
    }

    .timer-box label {
        font-size: 10px;
        text-transform: uppercase;
        margin: 0;
        color: #777;
    }

.btn-yext {
    background-color: var(--yext-pink);
    color: white;
    border: none;
}

    .btn-yext:hover {
        background-color: #b0154b;
        color: white;
    }

/* Flecha Trazada a Mano */
.hand-arrow {
    position: fixed;
    top: 75px; /* Ajustar según altura de su navbar */
    right: 180px;
    z-index: 9999;
    pointer-events: none;
}

.arrow-text {
    position: absolute;
    bottom: -15px;
    left: -60px;
    font-family: 'Brush Script MT', cursive; /* To emphasize hand-drawn feel */
    color: var(--yext-pink);
    font-size: 1.2rem;
    white-space: nowrap;
    transform: rotate(-10deg);
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(10px, -10px) rotate(5deg);
    }
}

/* Ajuste al timer para segundos */
.timer-box.border-yext-red {
    border: 1px solid var(--yext-pink);
}