body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.navbar-brand {
    font-size: 1.6rem;
}
.btn-primary {
    background-color: #0a58ca;
    border-color: #0a58ca;
}
.card {
    transition: transform 0.2s ease-in-out;
}
.card:hover {
    transform: translateY(-5px);
}
footer a:hover {
    text-decoration: underline !important;
    color: #0a58ca !important;
}

html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
}
main {
    flex: 1 0 auto;
}
footer {
    flex-shrink: 0;
}

/* Navbar: todos los enlaces, iconos y texto en azul */
.navbar-nav .nav-link,
.navbar-nav .nav-link i,
.navbar-nav .nav-link span {
    color: #0d6efd !important;
    transition: all 0.2s ease-in-out;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link:hover span {
    color: #0a58ca !important;
    transform: translateY(-2px);
}
.navbar .btn-outline-primary,
.navbar .btn-primary {
    transition: all 0.2s ease-in-out;
}
.navbar .btn-outline-primary:hover,
.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Efecto hover en tarjetas */
.hover-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1) !important;
}
.btn-outline-primary.rounded-pill {
    border-radius: 50px !important;
    transition: all 0.2s;
}
.btn-outline-primary.rounded-pill:hover {
    background-color: #0d6efd;
    color: white;
}
.carousel, .carousel-inner, .carousel-item {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    overflow: hidden;
}
.badge.rounded-pill {
    font-weight: 500;
    letter-spacing: 0.3px;
}
#estrellas-input i {
    transition: transform 0.1s ease, color 0.1s;
}
#estrellas-input i:hover {
    transform: scale(1.1);
}
.row.g-0 {
    margin: 0;
}
.row.g-0 > [class*="col-"] {
    padding: 0 !important;
}
img {
    vertical-align: middle;
}

/* ================= MODO OSCURO - AJUSTES GLOBALES ================= */
[data-bs-theme="dark"] body {
    background-color: #1a1e21;
}
[data-bs-theme="dark"] .bg-light {
    background-color: #2b3035 !important;
}
[data-bs-theme="dark"] .bg-white {
    background-color: #212529 !important;
}
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .card-footer,
[data-bs-theme="dark"] .card-header {
    background-color: #2b3035;
    border-color: #495057;
}
[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}
[data-bs-theme="dark"] .shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3) !important;
}
[data-bs-theme="dark"] .hero-section .text-white-50 {
    color: #ccc !important;
}
[data-bs-theme="dark"] .hover-card:hover {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3) !important;
}
[data-bs-theme="dark"] footer.bg-dark {
    background-color: #0f1113 !important;
}

/* Botones outline */
[data-bs-theme="dark"] .btn-outline-primary {
    color: #6ea8fe;
    border-color: #6ea8fe;
}
[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: #6ea8fe;
    color: #000;
}
[data-bs-theme="dark"] .btn-outline-secondary {
    color: #adb5bd;
    border-color: #495057;
}
[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #495057;
    color: #f8f9fa;
}
[data-bs-theme="dark"] .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Formularios y filtros */
[data-bs-theme="dark"] .card.bg-white {
    background-color: #212529 !important;
}
[data-bs-theme="dark"] .input-group-text {
    background-color: #2b3035 !important;
    border-color: #495057 !important;
    color: #adb5bd !important;
}
[data-bs-theme="dark"] .input-group-text i,
[data-bs-theme="dark"] .input-group-text .bi {
    color: #f8f9fa !important;
}
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #2b3035 !important;
    border-color: #495057 !important;
    color: #f8f9fa !important;
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #2b3035 !important;
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    color: #f8f9fa !important;
}
[data-bs-theme="dark"] .form-control::placeholder {
    color: #adb5bd !important;
}

/* Bloque de contador (propiedades en venta) */
[data-bs-theme="dark"] .bg-white.bg-opacity-75,
[data-bs-theme="dark"] .theme-aware-bg {
    background-color: #2b3035 !important;
    border: 1px solid #495057;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2) !important;
}
[data-bs-theme="dark"] .theme-aware-bg h2,
[data-bs-theme="dark"] .theme-aware-bg .fw-bold {
    color: #f8f9fa !important;
}
[data-bs-theme="dark"] .badge.bg-primary {
    background-color: #0d6efd !important;
    color: white;
}

/* Centro de ayuda - modo oscuro (fondo claro, texto negro) */
[data-bs-theme="dark"] .accordion-button {
    background-color: #f8f9fa !important;
    color: #000 !important;
    border-color: #dee2e6 !important;
}
[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #e9ecef !important;
    color: #000 !important;
    box-shadow: none !important;
}
[data-bs-theme="dark"] .accordion-button:focus {
    box-shadow: none !important;
    border-color: #86b7fe !important;
}
[data-bs-theme="dark"] .accordion-button::after,
[data-bs-theme="dark"] .accordion-button:not(.collapsed)::after {
    filter: invert(0);
}
[data-bs-theme="dark"] .accordion-body {
    background-color: #fff !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

/* ================= BOTÓN DE TEMA (estilos adicionales) ================= */
#theme-toggle {
    transition: all 0.2s ease;
    border-width: 2px;
}
#theme-toggle:hover {
    transform: scale(1.05);
}

/* Bordes según tema global */
#theme-toggle {
    border-color: #6c757d !important;
}
[data-bs-theme="dark"] #theme-toggle {
    border-color: #adb5bd !important;
}

/* Clases auxiliares para efectos (opcionales, pero se asignan desde JS) */
#theme-toggle.theme-sun {
    border-color: #ffc107 !important;
    box-shadow: 0 0 4px rgba(255,193,7,0.5);
}
#theme-toggle.theme-moon {
    border-color: #c0c0c0 !important;
}



/* Iconos sociales con Bootstrap Icons */
.social-icon {
    transition: all 0.3s ease-in-out;
}
.social-icon i {
    font-size: 4rem !important;  /* Tamaño grande (puedes ajustar a 5rem si quieres más) */
    transition: all 0.3s ease;
}
.social-icon:hover {
    transform: translateY(-10px);
}
.social-icon:hover i {
    transform: scale(1.1);
    text-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.social-icon span {
    font-size: 1rem;
    transition: color 0.3s;
}
.social-icon:hover span {
    color: #0d6efd !important;  /* Cambia el texto a azul al hacer hover */
}

/* Responsive: ajustar tamaño en móviles */
@media (max-width: 768px) {
    .social-icon i {
        font-size: 3rem !important;
    }
}