/* 
 * Estilos personalizados para Laher Propiedades
 * Color corporativo: #ff861b (naranja)
 */

:root {
    --primary-color: #ff861b;
    --primary-dark: #e67610;
    --primary-light: #ffa347;
    --secondary-color: #ff2424;
    --secondary-dark: #e61f1f;
    --tertiary-color: #158aff;
    --tertiary-dark: #1177e6;
    --dark-color: #1a1a1a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-gray: #6c757d;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ==================== HEADER & NAVBAR ==================== */
.header-main {
    position: relative;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
}

.btn-ingresar {
    background-color: var(--primary-color);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: var(--white);
}

.btn-ingresar:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 134, 27, 0.3);
}

.header-spacer {
    height: 86px;
}

/* ==================== MAPA Y FILTROS AVANZADOS ==================== */
.filters-sidebar {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.filters-sidebar .form-label {
    font-size: 0.78rem;
    line-height: 1.3;
    margin-bottom: 0.45rem;
    display: block;
    white-space: normal;
    word-break: break-word;
}

.filters-sidebar .row.g-2 > [class^="col-"] {
    padding-left: 6px;
    padding-right: 6px;
}

.filters-sidebar .row.g-2 {
    --bs-gutter-x: 0.5rem;
}

.filters-sidebar .filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.filters-sidebar .filter-tab {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
}

.filters-sidebar .accordion-button {
    font-weight: 600;
}

.filters-sidebar .accordion-button:not(.collapsed) {
    background-color: rgba(255, 134, 27, 0.1);
    color: var(--primary-dark);
}

.map-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.map-container {
    width: 100%;
    height: 420px;
}

.map-popup {
    display: flex;
    gap: 10px;
}

.map-popup-image {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.map-popup-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.map-popup-price {
    font-weight: 700;
    color: var(--primary-color);
}

.map-popup-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.map-popup-link {
    font-size: 0.85rem;
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .filters-sidebar {
        position: static;
    }

    .map-container {
        height: 320px;
    }
}

/* ==================== BOTONES PRINCIPALES ==================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 134, 27, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Botones secundarios (rojo) */
.btn-danger {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 36, 36, 0.3);
}

.btn-outline-danger {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

/* Botones terciarios (azul) */
.btn-info,
.btn-success {
    background-color: var(--tertiary-color);
    border-color: var(--tertiary-color);
    color: var(--white);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-info:hover,
.btn-success:hover {
    background-color: var(--tertiary-dark);
    border-color: var(--tertiary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 138, 255, 0.3);
}

.btn-outline-info,
.btn-outline-success {
    border-color: var(--tertiary-color);
    color: var(--tertiary-color);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-info:hover,
.btn-outline-success:hover {
    background-color: var(--tertiary-color);
    border-color: var(--tertiary-color);
    color: var(--white);
}

/* ==================== BADGES ==================== */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-danger {
    background-color: var(--secondary-color) !important;
}

.badge.bg-success,
.badge.bg-info {
    background-color: var(--tertiary-color) !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* ==================== ALERTS ==================== */
.alert-success {
    background-color: rgba(21, 138, 255, 0.1);
    border-color: var(--tertiary-color);
    color: var(--tertiary-dark);
}

.alert-danger {
    background-color: rgba(255, 36, 36, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-dark);
}

.alert-info {
    background-color: rgba(255, 134, 27, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

/* ==================== FORMS ==================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 134, 27, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 134, 27, 0.25);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: radial-gradient(1200px 500px at 10% 10%, rgba(255, 196, 120, 0.35), transparent 60%),
                linear-gradient(135deg, rgba(255, 134, 27, 0.95) 0%, rgba(230, 118, 16, 0.95) 100%),
                url('../img/hero-bg.jpg') center/cover no-repeat;
    background-size: 180% 180%, 100% 100%, cover;
    animation: heroGlow 12s ease-in-out infinite;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 200px at 80% 20%, rgba(255, 255, 255, 0.18), transparent 60%);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: shimmer 10s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 16px;
    backdrop-filter: blur(6px);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-section h1,
.hero-section p,
.hero-actions {
    animation: textReveal 1.2s ease both;
}

.hero-section p { animation-delay: 0.15s; }
.hero-actions { animation-delay: 0.3s; }

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.compare-hero {
    min-height: 380px;
}

.hero-actions .btn {
    border-radius: 999px;
    padding: 0.9rem 1.6rem;
    font-weight: 600;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: floaty 8s ease-in-out infinite;
    filter: blur(0.2px);
}

.hero-shapes .shape-1 {
    width: 180px;
    height: 180px;
    top: -40px;
    right: 10%;
}

.hero-shapes .shape-2 {
    width: 140px;
    height: 140px;
    bottom: 30px;
    left: 8%;
    animation-delay: 1.5s;
}

.hero-shapes .shape-3 {
    width: 220px;
    height: 220px;
    bottom: -60px;
    right: 25%;
    animation-delay: 3s;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-12px) translateX(6px); }
}

@keyframes heroGlow {
    0% {
        background-position: 0% 50%, 0% 0%, center;
    }
    50% {
        background-position: 100% 50%, 0% 0%, center;
    }
    100% {
        background-position: 0% 50%, 0% 0%, center;
    }
}

@keyframes shimmer {
    0% { opacity: 0.25; transform: translateY(-10px); }
    50% { opacity: 0.55; transform: translateY(6px); }
    100% { opacity: 0.25; transform: translateY(-10px); }
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes textReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== FILTRO DE BÚSQUEDA ==================== */
.search-filter-container {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.filter-tab {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-tab.active {
    color: var(--primary-color);
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.filter-tab:hover {
    color: var(--primary-color);
}

.search-form .form-control,
.search-form .form-select {
    border-radius: 25px;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 134, 27, 0.25);
}

/* ==================== TARJETAS DE PROPIEDADES ==================== */
.property-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.property-badge.venta {
    background-color: var(--tertiary-color);
}

.property-badge.alquiler {
    background-color: var(--secondary-color);
}

.property-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.property-location {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.property-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.property-feature i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ==================== FOOTER ==================== */
.footer-main {
    background-color: var(--dark-color);
    margin-top: 80px;
}

.footer-logo {
    width: 60px;
    height: auto;
    border-radius: 8px;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.footer-contact i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.footer-contact a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 134, 27, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==================== WHATSAPP FLOTANTE ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: var(--white);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.8);
    }
}

/* ==================== SECCIONES ==================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ==================== LOGIN ==================== */
.login-container {
    min-height: calc(100vh - 86px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
}

.login-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
}

.login-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1.5rem;
}

/* ==================== ADMIN PANEL ==================== */
.navbar.navbar-dark.bg-dark {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
}

.admin-sidebar {
    background-color: var(--dark-color);
    min-height: calc(100vh - 86px);
    padding: 2rem 0;
    overflow-y: auto;
}

.admin-nav-link {
    color: var(--text-gray);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: normal;
    line-height: 1.3;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background-color: rgba(255, 134, 27, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.admin-content {
    padding: 2rem;
}

.sidebar-toggle {
    display: none;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle i {
    font-size: 1.4rem;
}

.admin-body .navbar .container-fluid {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-body .navbar-brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    max-width: 70vw;
    line-height: 1.2;
}

.admin-body .navbar-brand span {
    white-space: normal;
}

.admin-body .navbar .d-flex.align-items-center.gap-3 {
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

.admin-body .navbar .btn {
    white-space: normal;
}

.admin-page-header {
    gap: 1rem;
}

.stats-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Animación para iconos de contacto */
.stats-card:hover .stats-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
}

/* Estilos para captcha */
.input-group-text.bg-primary {
    background-color: var(--primary-color) !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        z-index: 1040;
        transform: translateX(-110%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        padding-top: 90px;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-body .navbar-brand {
        max-width: 100%;
        font-size: 1rem;
    }

    .admin-body .navbar-brand img {
        height: 34px;
    }

    .admin-body .navbar .d-flex.align-items-center.gap-3 {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-body .navbar .text-light {
        font-size: 0.9rem;
    }

    .admin-content h1 {
        font-size: 1.6rem;
    }

    .admin-nav-link {
        font-size: 0.95rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .search-filter-container {
        margin-top: -50px;
        padding: 1.5rem;
    }
    
    .filter-tab {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .filter-tabs {
        flex-direction: column;
        gap: 0.75rem;
        border-bottom: none;
    }
    
    .filter-tab {
        text-align: center;
        border: 2px solid var(--border-color);
        border-radius: 14px;
        background: var(--white);
        color: var(--dark-color);
        padding: 0.9rem 1rem;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    .filter-tab.active {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
    }

    .filter-tab.active::after {
        display: none;
    }

    .admin-content table th,
    .admin-content table td {
        white-space: normal;
    }

    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-page-header .btn {
        width: 100%;
        text-align: center;
    }

    .admin-form-actions {
        text-align: left !important;
    }

    .admin-form-actions .btn {
        width: 100%;
        margin: 0 0 0.75rem 0 !important;
    }

    .admin-form-actions .btn:last-child {
        margin-bottom: 0 !important;
    }

    .admin-form-actions .btn-lg {
        padding: 0.65rem 1rem;
        font-size: 1rem;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody tr {
        display: block;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 8px 10px;
        background: var(--white);
    }

    .admin-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        border: none;
    }

    .admin-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-gray);
        flex: 0 0 45%;
    }

    .admin-table tbody td:last-child {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-table .action-group {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .btn-favorito {
        width: 40px;
        height: 40px;
        top: 10px;
        left: 10px;
        z-index: 20;
    }

    .btn-favorito i {
        font-size: 1.1rem;
    }
}

/* ==================== UTILIDADES ==================== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* ==================== BOTÓN FAVORITO ==================== */
.btn-favorito {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.btn-favorito:hover {
    transform: scale(1.1);
    background: white;
}

.btn-favorito i {
    font-size: 1.3rem;
    color: #ccc;
    transition: all 0.3s ease;
}

.btn-favorito.active i,
.btn-favorito:hover i {
    color: var(--secondary-color);
}

.btn-favorito.active i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Botón de favorito en página de detalle */
.btn-outline-danger.active {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
}

/* ==================== TABLES ==================== */
.table-hover tbody tr:hover {
    background-color: rgba(255, 134, 27, 0.05);
}

.table thead {
    background-color: var(--light-bg);
    border-bottom: 2px solid var(--primary-color);
}

.compare-table th,
.compare-table td {
    min-width: 180px;
    vertical-align: middle;
}

.compare-table th:first-child,
.compare-table td:first-child {
    min-width: 160px;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
}

.compare-table thead th:first-child {
    z-index: 3;
}

.disabled-section {
    opacity: 0.5;
    filter: grayscale(0.2);
}

@media (max-width: 767px) {
    .compare-table th,
    .compare-table td {
        min-width: 150px;
        font-size: 0.85rem;
    }

    .compare-table th:first-child,
    .compare-table td:first-child {
        min-width: 140px;
    }
}

/* ==================== PAGINATION ==================== */
.page-link {
    color: var(--primary-color);
}

.page-link:hover {
    color: var(--primary-dark);
    background-color: rgba(255, 134, 27, 0.1);
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: var(--text-gray);
}
