/* --- 5. Apply Fonts & Define CSS Variables --- */
        :root {
            --primary-blue: #3498db;
            --dark-blue: #2c3e50;
            --text-color: #333;
            --light-bg: #f9f9f9;
            --font-nunito: 'Nunito Sans', sans-serif;
            --font-roboto-slab: 'Nunito Sans', serif;
			
        }

        body {
            margin: 0;
            font-family: var(--font-nunito);
            color: var(--text-color);
            line-height: 1.6;
        }

        /* Set headings to Roboto Slab */
        h1, h2, h3, h4, h5 {
            font-family: var(--font-roboto-slab);
            font-weight: 700;
        }

        a { text-decoration: none; color: inherit; }
        ul { list-style: none; padding: 0; margin: 0; }
        img { max-width: 100%; height: auto; display: block; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

        /* --- 1. Header & Mobile Menu --- */
        .top-container {
            background-color: #fff;
            padding: 20px 0;
            border-bottom: 1px solid #eee;
            position: sticky; top: 0; z-index: 1000;
        }
        .header-content { display: flex; justify-content: space-between; align-items: center; }
        .logo { font-size: 24px; font-weight: bold; color: var(--primary-blue); display: flex; align-items: center; }
        .logo i { margin-right: 8px; }
        
        /* Mobile hamburger button */
        .hamburger-menu { display: none; font-size: 24px; cursor: pointer; color: #777; margin-left: auto;}
        
        .nav-and-actions { display: flex; align-items: center; gap: 30px; transition: right 0.3s ease-in-out; }
        nav ul { display: flex; gap: 25px; font-size: 14px; color: #555; }
        nav a:hover { color: var(--primary-blue); }

        .user-actions { display: flex; align-items: center; gap: 15px; font-family: var(--font-nunito); }
        .user-icon { font-size: 18px; color: #777; cursor: pointer; }
        .btn-create {
            background-color: var(--primary-blue);
            color: #fff;
            padding: 10px 20px;
            border-radius: 5px;
            font-size: 14px;
            font-weight: 800;
            border: none;
            cursor: pointer;
            transition: background 0.3s;
            font-family: var(--font-nunito);
        }
        .btn-create:hover { background-color: #2980b9; }

        /* --- Hero Section & 2. Hero Scroll --- */
        .hero {
            background-color: var(--light-bg);
            padding: 80px 0;
            position: relative;
        }
        /* Geometric background element hint */
        .hero::before {
            content: ''; position: absolute; top: 0; right: 0;
            width: 40%; height: 100%;
            background-color: #f1f8fc;
            z-index: 0;
            clip-path: polygon(100% 0, 100% 100%, 0 100%);
        }

        .hero-content { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
        .hero-text { flex: 1; }
        .hero-text h1 { font-size: 52px; color: black; margin-bottom: 20px; line-height: 1.3; }
        .hero-text p { font-size: 16px; color: #666; margin-bottom: 40px; }
        
        /* 2. Style the hero property scroll area */
        .hero-scroll-area {
            width: 340px;
            height: 380px;
            overflow-x: auto;
            display: flex;
            gap: 20px;
            padding: 10px 0;
            scroll-snap-type: x mandatory;
            /* Hide scrollbar for Chrome, Safari and Opera */
            &::-webkit-scrollbar { display: none; }
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }
        
        .hero-scroll-area .prop-card {
            min-width: 320px;
            background-color: #fff;
            padding: 10px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            scroll-snap-align: center;
        }
        .hero-scroll-area .prop-card .tag {
            background-color: #2ecc71; color: #fff; text-transform: uppercase;
            font-size: 10px; padding: 3px 8px; border-radius: 3px; position: absolute; top: 15px; left: 15px;
        }
        .hero-scroll-area .prop-card .prop-img { height: 180px; background-color: #e0e0e0; border-radius: 5px; margin-bottom: 10px; position: relative; }
        .hero-scroll-area .prop-card .details { padding: 5px; }
        .hero-scroll-area .prop-card h4 { margin: 0 0 5px; font-size: 14px; color: #333; font-family: var(--font-nunito); }
        .hero-scroll-area .prop-card .price { color: var(--primary-blue); font-weight: bold; font-size: 16px; margin-bottom: 8px; font-family: var(--font-nunito); }
        .hero-scroll-area .prop-card .specs { display: flex; gap: 15px; font-size: 12px; color: #777; font-family: var(--font-nunito); }
        .hero-scroll-area .prop-card .specs i { margin-right: 4px; color: #999; }
        .hero-scroll-pagination { display: flex; gap: 5px; justify-content: center; margin-top: -15px; }
        .hero-scroll-pagination span { width: 6px; height: 6px; background-color: #ddd; border-radius: 50%; }
        .hero-scroll-pagination span.active { background-color: var(--primary-blue); }

        /* --- Search Bar --- */
        .search-area { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); margin-top: -40px; position: relative; z-index: 2; border: 1px solid #eee; }
        .search-bar { display: flex; gap: 10px; }
        .search-input { flex: 1; padding: 15px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; font-family: var(--font-nunito); }
        .btn-search {
            background-color: var(--primary-blue); color: #fff;
            padding: 0 40px; border: none; border-radius: 5px;
            font-size: 16px; font-weight: bold; cursor: pointer;
            display: flex; align-items: center; gap: 8px;
            transition: background 0.3s;
            font-family: var(--font-nunito);
        }
        .btn-search:hover { background-color: #2980b9; }

        /* --- 3. Discover Section - Converted to Scroll --- */
        .discover { padding: 80px 0 20px; }
        .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
        .section-header h2 { font-size: 28px; color: var(--dark-blue); margin: 0; }
        .nav-arrows { display: flex; gap: 10px; color: #999; cursor: pointer; }
        .nav-arrows i:hover { color: var(--primary-blue); }

        /* 3. Style the discover property scroll container */
        .properties-scroll-container {
            overflow-x: auto;
            display: flex;
            gap: 30px;
            padding: 10px 0 30px;
            scroll-snap-type: x mandatory;
            &::-webkit-scrollbar { display: none; }
            scrollbar-width: none;
        }
        
        .properties-scroll-container .prop-card {
            min-width: calc(33.333% - 20px);
            background-color: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            border: 1px solid #eee;
            scroll-snap-align: start;
        }
        .properties-scroll-container .prop-card .card-img { height: 200px; background-color: #e0e0e0; position: relative; }
        .properties-scroll-container .prop-card .tag {
            background-color: #888; color: #fff; text-transform: uppercase;
            font-size: 10px; padding: 3px 8px; border-radius: 3px; position: absolute; top: 15px; left: 15px;
        }
        .properties-scroll-container .prop-card .tag.venta { background-color: var(--dark-blue); }
        .properties-scroll-container .prop-card .card-content { padding: 20px; }
        .properties-scroll-container .prop-card h4 { margin: 0 0 8px; font-size: 15px; color: #333; height: 3.2em; overflow: hidden; font-family: var(--font-nunito); }
        .properties-scroll-container .prop-card .price { color: var(--primary-blue); font-weight: bold; font-size: 17px; margin-bottom: 12px; font-family: var(--font-nunito); }
        .properties-scroll-container .prop-card .specs { display: flex; gap: 20px; font-size: 13px; color: #777; border-top: 1px solid #eee; padding-top: 12px; font-family: var(--font-nunito); }
        .properties-scroll-container .prop-card .specs i { margin-right: 6px; color: #999; }
        
        .discover-pagination { display: flex; gap: 8px; justify-content: center; margin-bottom: 60px; }
        .discover-pagination span { width: 8px; height: 8px; background-color: #ddd; border-radius: 50%; }
        .discover-pagination span.active { background-color: var(--primary-blue); }

        /* --- 4. Join Banner - Blurred Background with Dark Overlay --- */
        .join-banner {
            background-color: #444; color: #fff;
            padding: 100px 0;
            background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://via.placeholder.com/1600x600/555'); /* Replace with actual blurred background image */
            background-size: cover; background-position: center;
            text-align: center;
            border-bottom: 1px solid #eee;
        }
        .join-banner h2 { font-size: 36px; margin: 0 0 15px; center; }
        .join-banner p { font-size: 16px; color: #ccc; max-width: 700px; margin: 0 auto; center; }

        /* --- Services Section --- */
        .services { padding: 60px 0 80px; background-color: #fff; }
        .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
            text-align: center;
        }
		
		 .service-item
		 {
			text-align:left;
		 }
        .service-item .icon-box {
            font-size: 40px; color: var(--primary-blue);
            background-color: #f1f8fc;
            width: 80px; height: 80px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
           margin-bottom:20px;
        }
        .service-item h3 { font-size: 18px; color: var(--dark-blue); margin: 0 0 10px; }
        .service-item p { font-size: 14px; color: #666; margin: 0; line-height: 1.5; font-family: var(--font-nunito); }

        /* --- Footer --- */
        footer {
            background-color: #fff;
            padding: 60px 0 30px;
            border-top: 1px solid #eee;
            font-size: 13px; color: #666;
            font-family: var(--font-nunito);
        }
        .footer-content { display: flex; gap: 80px; margin-bottom: 40px; }
        .footer-column h5 { font-size: 14px; color: #333; margin: 0 0 15px; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-nunito); font-weight: 800;}
        .footer-column ul li { margin-bottom: 8px; }
        .footer-column a:hover { color: var(--primary-blue); }

        .footer-bottom {
            border-top: 1px solid #eee;
            padding-top: 30px;
            text-align: center;
        }
        .footer-logo { font-size: 20px; font-weight: bold; color: #999; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; }
        .footer-logo i { margin-right: 6px; }
        
        .social-links { display: flex; justify-content: center; gap: 20px; font-size: 16px; color: #bbb; margin-bottom: 15px; }
        .social-links a:hover { color: var(--primary-blue); }
        .copyright { font-size: 12px; color: #aaa; }

        /* --- 1. Mobile Menu Open State --- */
        .show-menu .nav-and-actions { display: flex !important; }

        /* --- Responsiveness & 1. Mobile Styles --- */
        @media (max-width: 1024px) {
            .hero-text h1 { font-size: 30px; }
            .hero-scroll-area { display: none; } /* Hide featured card scroll on tablets for hero space */
            .hero-scroll-pagination { display: none; }
            .properties-scroll-container .prop-card { min-width: calc(50% - 15px); } /* Show 2 per slide on tablets */
            .services-grid { gap: 20px; }
        }

        @media (max-width: 768px) {
            /* 1. Mobile Hamburger Button & Menu styling */
            .hamburger-menu { display: block; order: 1;}
            .logo { order: 0; }
            
            .nav-and-actions {
                display: none;
                flex-direction: column;
                background-color: #fff;
                position: absolute; top: 100%; right: 0; width: 100%;
                padding: 30px; box-shadow: 0 8px 15px rgba(0,0,0,0.1);
                border-top: 1px solid #eee;
                gap: 20px;
                z-index: 1001;
            }
			
			
            nav ul { flex-direction: column; gap: 15px; text-align: center; }
            .user-actions { flex-direction: column; gap: 15px; }
            .btn-create { width: 100%; }
            
            .hero { padding: 60px 0; text-align: center; }
            .hero::before { display: none; }
            .hero-content { flex-direction: column; align-items: center; }
            .hero-text { max-width: 100%; }
            
            .search-area { margin-top: -60px; margin-bottom: -1px; }
            .search-bar { flex-direction: column; }
            .btn-search { padding: 15px; justify-content: center; }
            
            .properties-scroll-container .prop-card { min-width: calc(100% - 20px); } /* Show 1 per slide on mobile */
            .services-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
            .footer-content { flex-direction: column; gap: 30px; text-align: center; }
            .section-header { flex-direction: column; gap: 10px; text-align: center; }
            
            .join-banner h2 { font-size: 28px; }
        }
		
		
		/* --- Slider Header & Buttons --- */
.discover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.slider-nav-buttons .slider-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.slider-nav-buttons .slider-btn:hover {
    background: var(--primary-blue, #007bff);
    color: #fff;
    border-color: var(--primary-blue, #007bff);
}

/* --- Hide Scrollbar but keep functionality --- */
.properties-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px; /* Room for shadow */
    
    /* Hide scrollbar for Firefox */
    scrollbar-width: none; 
    /* Hide scrollbar for IE/Edge */
    -ms-overflow-style: none; 
}

/* Hide scrollbar for Chrome, Safari and Opera */
.properties-scroll-container::-webkit-scrollbar {
    display: none;
}

/* --- Polish the Property Cards (Matching Image 2) --- */
.properties-scroll-container .prop-card {
    flex: 0 0 calc(33.333% - 14px); /* Show 3 cards on desktop */
    scroll-snap-align: start;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.properties-scroll-container .prop-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* Responsive constraints for the cards */
@media (max-width: 992px) {
    .properties-scroll-container .prop-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 576px) {
    .properties-scroll-container .prop-card { flex: 0 0 100%; }
}


.hero-scroll-area {
    /* Hide scrollbar for Firefox */
    scrollbar-width: none; 
    /* Hide scrollbar for IE/Edge */
    -ms-overflow-style: none; 
    
    /* Optional: reduce the bottom padding if the gap is still too large */
    padding-bottom: 10px; 
    margin-bottom: 10px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hero-scroll-area::-webkit-scrollbar {
    display: none;
}

/* Bring the dots closer to the cards */
.hero-scroll-pagination {
    margin-top: 5px; 
    display: flex;
    justify-content: center;
    gap: 8px; /* Spaces the dots nicely */
}


/* --- Hero Slider Layout Fix --- */
.hero-slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* This centers the dots precisely under the cards */
    max-width: 100%;
}

.hero-scroll-area {
    /* Hide scrollbar for Chrome, Safari, Firefox, IE */
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
.hero-scroll-area::-webkit-scrollbar {
    display: none;
}

.hero-scroll-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px; /* Creates clean spacing between cards and dots */
}


.search-area {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-top: -60px; /* Pulls the search box up over the hero background */
    position: relative;
    z-index: 2;
    border: 1px solid #eee;
}

.advanced-search-form .search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.advanced-search-form .form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.advanced-search-form label {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 4px;
    font-family: var(--font-nunito);
}

.advanced-search-form .search-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: var(--font-nunito);
    color: #555;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.advanced-search-form .search-input:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.advanced-search-form .input-group {
    display: flex;
    gap: 10px;
}

.advanced-search-form .input-group .search-input {
    flex: 1;
}

.advanced-search-form .btn-search {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 14px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
    font-family: var(--font-nunito);
    height: 47px; /* Matches input heights */
    margin-top: 26px; /* Aligns button with inputs below the labels */
    width: 100%;
}

.advanced-search-form .btn-search:hover {
    background-color: #2980b9;
}

/* Responsive layout for tablets and phones */
@media (max-width: 992px) {
    .advanced-search-form .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .advanced-search-form .search-grid {
        grid-template-columns: 1fr;
    }
    .advanced-search-form .btn-search {
        margin-top: 10px;
    }
}


/* --- ESTILOS DEL FORMULARIO DE CONTACTO MODERNO --- */
.modern-contact-form {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    max-width: 800px;
    margin: 0 auto;
}

.modern-contact-form .form-section {
    margin-bottom: 30px;
}

.modern-contact-form .section-title {
    font-size: 18px;
    color: var(--dark-blue, #2c3e50);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-family: var(--font-roboto-slab, 'Roboto Slab', serif);
}

.modern-contact-form .form-group {
    margin-bottom: 20px;
}

.modern-contact-form .form-row {
    display: flex;
    gap: 20px;
}

.modern-contact-form .half-width {
    flex: 1;
}

.modern-contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-blue, #2c3e50);
    margin-bottom: 8px;
    font-family: var(--font-nunito, 'Nunito', sans-serif);
}

.modern-contact-form .required {
    color: #e74c3c;
}

.modern-contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-nunito, 'Nunito', sans-serif);
    font-size: 15px;
    color: #555;
    background-color: #fdfdfd;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modern-contact-form textarea.form-control {
    resize: vertical;
}

.modern-contact-form .form-control:focus {
    border-color: var(--primary-blue, #3498db);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Estilo para el Captcha */
.modern-contact-form .captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modern-contact-form .captcha-img {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    background: #fff;
    height: 47px; /* Igual que el input */
    display: flex;
    align-items: center;
}

/* Botón de Envío */
.modern-contact-form .form-action {
    text-align: right;
    margin-top: 20px;
}

.modern-contact-form .btn-submit {
    background-color: var(--primary-blue, #3498db);
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-family: var(--font-nunito, 'Nunito', sans-serif);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.modern-contact-form .btn-submit:hover {
    background-color: #2980b9;
}

/* Responsive para Móviles */
@media (max-width: 768px) {
    .modern-contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    .modern-contact-form .captcha-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    .modern-contact-form .btn-submit {
        width: 100%;
        justify-content: center;
    }
}


/* --- ESTILOS DEL FORMULARIO DE REGISTRO MODERNO --- */
.modern-registration-container {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.modern-registration-container .section-title {
    font-size: 24px;
    color: var(--dark-blue, #2c3e50);
    margin-top: 0;
    margin-bottom: 5px;
    font-family: var(--font-roboto-slab, 'Roboto Slab', serif);
}

.modern-registration-container .form-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modern-form .form-group {
    margin-bottom: 20px;
}

.modern-form .form-row {
    display: flex;
    gap: 20px;
}

.modern-form .half-width {
    flex: 1;
}

.modern-form label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-blue, #2c3e50);
    margin-bottom: 8px;
    font-family: var(--font-nunito, 'Nunito', sans-serif);
}

.modern-form .required {
    color: #e74c3c;
}

.modern-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-nunito, 'Nunito', sans-serif);
    font-size: 15px;
    color: #555;
    background-color: #fdfdfd;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modern-form textarea.form-control {
    resize: vertical;
}

.modern-form .form-control:focus {
    border-color: var(--primary-blue, #3498db);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Captcha */
.modern-form .captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modern-form .captcha-img {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    background: #fff;
    height: 47px;
    display: flex;
    align-items: center;
}

/* Checkbox */
.modern-form .checkbox-group {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.modern-form .checkbox-label {
    font-weight: normal;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #555;
}

.modern-form .checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Footer del Formulario */
.modern-form .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.modern-form .required-note {
    font-size: 13px;
    color: #777;
    margin: 0;
}

.modern-form .btn-submit {
    background-color: var(--primary-blue, #3498db);
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-family: var(--font-nunito, 'Nunito', sans-serif);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.modern-form .btn-submit:hover {
    background-color: #2980b9;
}

/* Responsive para Móviles */
@media (max-width: 768px) {
    .modern-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    .modern-form .captcha-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    .modern-form .form-footer {
        flex-direction: column-reverse;
        gap: 15px;
    }
    .modern-form .btn-submit {
        width: 100%;
        justify-content: center;
    }
}


/* --- ESTILOS DEL FORMULARIO DE LOGIN MODERNO --- */
.modern-login-container {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    max-width: 500px; /* Más estrecho que el de registro para mejor estética */
    margin: 40px auto; /* Centrado en la página */
}

.modern-login-container .section-title {
    font-size: 24px;
    color: var(--dark-blue, #2c3e50);
    margin-top: 0;
    margin-bottom: 5px;
    font-family: var(--font-roboto-slab, 'Roboto Slab', serif);
    text-align: center;
}

.modern-login-container .form-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
}

.modern-login-container .form-group {
    margin-bottom: 20px;
}

.modern-login-container label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-blue, #2c3e50);
    margin-bottom: 8px;
    font-family: var(--font-nunito, 'Nunito', sans-serif);
}

.modern-login-container .required {
    color: #e74c3c;
}

.modern-login-container .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-nunito, 'Nunito', sans-serif);
    font-size: 15px;
    color: #555;
    background-color: #fdfdfd;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modern-login-container .form-control:focus {
    border-color: var(--primary-blue, #3498db);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.modern-login-container .login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 15px;
}

.modern-login-container .forgot-password-link {
    font-size: 14px;
    color: var(--primary-blue, #3498db);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.modern-login-container .forgot-password-link:hover {
    color: var(--dark-blue, #2c3e50);
    text-decoration: underline;
}

.modern-login-container .btn-submit {
    background-color: var(--primary-blue, #3498db);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-family: var(--font-nunito, 'Nunito', sans-serif);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modern-login-container .btn-submit:hover {
    background-color: #2980b9;
}

/* Botones especiales cuando el usuario ya está logueado */
.modern-login-container .logged-in-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.modern-login-container .btn-logout {
    background-color: #e74c3c; /* Rojo para cerrar sesión */
}

.modern-login-container .btn-logout:hover {
    background-color: #c0392b;
}

/* Responsive para Móviles */
@media (max-width: 576px) {
    .modern-login-container .login-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .modern-login-container .btn-submit {
        width: 100%;
        justify-content: center;
    }
    .modern-login-container .logged-in-actions {
        flex-direction: column;
    }
}