/* ============================================================
   RESET Y BASE - PROFESIONAL (SIN AZUL)
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: #f5f6f8;
    color: #1a1a1a;
    line-height: 1.5;
}

/* ============================================================
   BARRA DE NAVEGACIÓN
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 60px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    border-bottom: 1px solid #e8ecf0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #FF6B00;
    font-size: 26px;
}

.logo-text {
    font-weight: 300;
    color: #6B7280;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: #FF6B00;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #4a5a6a;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-links a:hover {
    color: #FF6B00;
    background: #f8f9fa;
}

.btn-primary-nav {
    background: #1a1a1a;
    padding: 8px 22px;
    border-radius: 25px;
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary-nav:hover {
    background: #FF6B00 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.25);
}

.usuario-bienvenido {
    color: #FF6B00;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef6f0;
    padding: 6px 16px;
    border-radius: 20px;
}
/* ============================================================
   HERO (VIDEO DE FONDO)
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    width: 92%;
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   BUSCADOR
   ============================================================ */
.search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box .field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 4px 14px 4px 12px;
    border-radius: 8px;
    flex: 1 1 150px;
    min-width: 130px;
    border: 1px solid #e8ecf0;
    transition: all 0.2s ease;
}

.search-box .field:hover {
    border-color: #FF6B00;
}

.search-box .field i {
    color: #6b7a8a;
    font-size: 15px;
}

.search-box select,
.search-box input {
    border: none;
    background: transparent;
    padding: 10px 4px;
    font-size: 14px;
    width: 100%;
    outline: none;
    color: #1a1a1a;
    font-weight: 500;
}

.search-box select {
    cursor: pointer;
}

.search-box select option {
    background: #ffffff;
    color: #1a1a1a;
}

.search-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 14px 38px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
}

.search-btn:hover {
    background: #FF6B00;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.25);
}

/* ============================================================
   LISTADO DE PROPIEDADES
   ============================================================ */
.properties-section {
    max-width: 1350px;
    margin: -50px auto 60px auto;
    padding: 0 30px;
    position: relative;
    z-index: 10;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 0 4px;
}

.section-header h2 {
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 700;
}

.section-header h2 i {
    color: #FF6B00;
    margin-right: 10px;
}

.section-header .count {
    font-size: 14px;
    color: #6b7a8a;
    font-weight: 500;
}

.grid-properties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ============================================================
   TARJETA DE PROPIEDAD
   ============================================================ */
.property-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    cursor: default;
    border: 1px solid #e8ecf0;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: #FF6B00;
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #f5f6f8;
}

.property-info {
    padding: 16px 18px 20px;
}

.property-tag {
    display: inline-block;
    background: #FF6B00;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.property-tag.venta {
    background: #FF6B00;
}

.property-tag.alquiler {
    background: #1a1a1a;
}

.property-info h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-weight: 600;
}

.property-info .location {
    color: #6b7a8a;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-info .location i {
    color: #6b7a8a;
    font-size: 13px;
}

.property-info .price {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.property-info .details {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: #4a5a6a;
    border-top: 1px solid #e8ecf0;
    padding-top: 12px;
    flex-wrap: wrap;
}

.property-info .details i {
    margin-right: 4px;
    color: #6b7a8a;
}

/* ============================================================
   SIN RESULTADOS
   ============================================================ */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    font-size: 18px;
    color: #6b7a8a;
    border: 1px solid #e8ecf0;
}

.no-results i {
    font-size: 48px;
    color: #d0d8e0;
    display: block;
    margin-bottom: 14px;
}

/* ============================================================
   FORMULARIOS DE AUTENTICACIÓN - PROFESIONAL
   ============================================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 20px;
}

.auth-box {
    background: #ffffff;
    padding: 50px 55px 45px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    max-width: 450px;
    width: 100%;
    border: 1px solid #eef0f2;
}

.auth-box h1 {
    color: #1a1a1a;
    font-size: 28px;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-box .subtitle {
    text-align: center;
    color: #6b7a8a;
    font-size: 15px;
    margin-bottom: 32px;
    font-weight: 400;
}

.auth-box h1 i {
    color: #FF6B00;
    margin-right: 12px;
}

.auth-box .form-group {
    margin-bottom: 22px;
}

.auth-box .form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-box .form-group label i {
    color: #FF6B00;
    margin-right: 8px;
    width: 18px;
}

.auth-box .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    background: #fafbfc;
    color: #1a1a1a;
    font-weight: 500;
}

.auth-box .form-group input:focus {
    border-color: #FF6B00;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.06);
    background: #ffffff;
}

.auth-box .form-group input::placeholder {
    color: #aab3be;
    font-weight: 400;
}

.auth-box .btn-primary {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.auth-box .btn-primary:hover {
    background: #FF6B00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.25);
}

.auth-link {
    text-align: center;
    margin-top: 24px;
    color: #6b7a8a;
    font-size: 14px;
}

.auth-link a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.auth-link a:hover {
    color: #FF6B00;
    border-bottom-color: #FF6B00;
}

.auth-link i {
    color: #6b7a8a;
    margin-right: 6px;
    transition: all 0.2s ease;
}

.auth-link a:hover i {
    color: #FF6B00;
}

/* Alertas */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: #fdf2f0;
    color: #c0392b;
    border-left: 4px solid #c0392b;
}

.alert-success {
    background: #f0faf4;
    color: #1a7a4a;
    border-left: 4px solid #1a7a4a;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    text-align: center;
    padding: 28px 20px;
    color: #6b7a8a;
    font-size: 13px;
    border-top: 1px solid #e8ecf0;
    background: #ffffff;
    margin-top: 20px;
}

/* ============================================================
   ESTILOS PARA PUBLICAR INMUEBLE
   ============================================================ */
.publicar-container {
    max-width: 900px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

.publicar-box {
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid #eef0f2;
}

.publicar-box h1 {
    color: #1a1a1a;
    font-size: 28px;
    margin-bottom: 8px;
}

.publicar-box .subtitle {
    color: #6b7a8a;
    font-size: 15px;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label i {
    color: #FF6B00;
    margin-right: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    background: #fafbfc;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #FF6B00;
    box-shadow: 0 0 0 4px rgba(255,107,0,0.06);
    background: #ffffff;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group .help-text {
    font-size: 12px;
    color: #6b7a8a;
    margin-top: 4px;
}

.form-group .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.form-group .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #FF6B00;
    cursor: pointer;
}

.form-group .checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    text-transform: none;
    font-size: 14px;
    color: #1a1a1a;
}

.form-group .file-upload {
    border: 2px dashed #e8ecf0;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-group .file-upload:hover {
    border-color: #FF6B00;
    background: #fafbfc;
}

.form-group .file-upload i {
    font-size: 40px;
    color: #6b7a8a;
    display: block;
    margin-bottom: 10px;
}

.form-group .file-upload p {
    color: #6b7a8a;
    margin: 0;
}

.form-group .file-upload input[type="file"] {
    display: none;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #FF6B00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,0,0.25);
}

.btn-submit i {
    margin-right: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .navbar {
        padding: 10px 24px;
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        gap: 8px;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .search-box {
        border-radius: 10px;
        padding: 16px 18px;
        gap: 8px;
    }

    .search-box .field {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .properties-section {
        margin-top: -30px;
        padding: 0 16px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .auth-box {
        padding: 30px 25px;
    }

    .publicar-box {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 90vh;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .nav-links a {
        font-size: 12px;
        padding: 4px 8px;
    }

    .search-box {
        padding: 12px 10px;
        border-radius: 8px;
    }

    .search-box .field {
        padding: 2px 10px;
        min-width: 100%;
    }

    .search-box select,
    .search-box input {
        padding: 8px 2px;
        font-size: 13px;
    }

    .grid-properties {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .property-card img {
        height: 170px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .section-header .count {
        font-size: 12px;
    }

    .property-info h3 {
        font-size: 16px;
    }

    .property-info .price {
        font-size: 19px;
    }

    .auth-box {
        padding: 25px 18px;
    }

    .auth-box h1 {
        font-size: 24px;
    }

    .auth-box .subtitle {
        font-size: 14px;
    }

    .auth-box .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .auth-box .btn-primary {
        padding: 14px;
        font-size: 15px;
    }

    .publicar-box {
        padding: 25px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}