/* --- VARIABLES DE COLOR Y FUENTES --- */
:root {
    --beet-primary: #00B4A8; /* Turquesa vibrante principal */
    --beet-secondary: #0A9396; /* Azul profundo secundario */
    --background-color: #eef5f9; /* Color base para el efecto neomórfico */
    --dark-footer: #212529;
    --font-primary: 'Raleway', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

/* --- ESTILOS GENERALES Y FONDO --- */
body {
    font-family: var(--font-secondary);
    font-weight: 400;
    color: #444;
    background-color: var(--background-color);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
}

/* --- ESTILO NEOMÓRFICO PARA BOTONES --- */
.btn-primary {
    background-color: var(--beet-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15), 
                -6px -6px 12px rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease-in-out;
}
.btn-primary:hover {
    color: white;
    transform: scale(1.05); /* Efecto de hover corregido: sutil y limpio */
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.2), 
                -8px -8px 16px rgba(255, 255, 255, 0.9);
}
.btn-primary:active {
    transform: scale(1); /* Regresa al tamaño normal al hacer clic */
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2), 
                inset -4px -4px 8px rgba(255, 255, 255, 0.7);
}

/* --- SECCIÓN PÚBLICA (FRONTEND) --- */

/* Navegación (Header Corregido) */
.navbar-custom {
    background-color: var(--beet-primary);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.navbar-brand img {
    height: 55px; /* Logo más grande */
    transition: transform 0.3s ease;
}
.navbar-brand img:hover {
    transform: scale(1.1);
}
.nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}
.social-icons-nav {
    align-items: center;
}
.social-icon {
    font-size: 1.2rem;
    color: white;
    margin: 0 0.5rem;
    transition: transform 0.2s ease;
}
.social-icon:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/hero.webp') no-repeat center center;
    background-size: cover;
}
.hero-section h1, .hero-section .lead {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Secciones con fondo claro */
.bg-light {
    background-color: var(--background-color) !important;
}

/* Tarjetas de Testimonios */
.testimonial-card {
    background: var(--background-color);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.1), -8px -8px 16px rgba(255, 255, 255, 0.7);
}
.testimonial-card img {
    object-fit: cover;
}

/* Tarjetas Generales (Propiedades, Blog) */
.property-card, .blog-card, .card {
    background: var(--background-color);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.1), -8px -8px 16px rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}
.property-card:hover, .blog-card:hover {
    box-shadow: inset 8px 8px 16px rgba(0, 0, 0, 0.1), inset -8px -8px 16px rgba(255, 255, 255, 0.7);
    transform: translateY(2px);
}
.card-img-top {
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

/* Iconos de Valores */
.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--background-color);
    color: var(--beet-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1), -6px -6px 12px rgba(255, 255, 255, 0.8);
}

/* Pie de Página (Footer Corregido) */
footer {
    background-color: var(--dark-footer) !important;
    font-family: var(--font-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 50px;
}
footer h5 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--beet-primary);
}
footer p, footer .footer-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer .footer-link:hover {
    color: white !important;
}
.footer-social-icon {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-social-icon:hover {
    color: white !important;
    transform: translateY(-3px);
}

/* Botón de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- SECCIÓN DE ADMINISTRACIÓN --- */
.admin-login-bg, .admin-bg {
    background-color: var(--background-color);
}
#admin-wrapper { display: flex; width: 100%; align-items: stretch; }
#sidebar-wrapper { min-height: 100vh; min-width: 250px; max-width: 250px; transition: margin .25s ease-out; }
#sidebar-wrapper .sidebar-heading { padding: 0.875rem 1.25rem; font-size: 1.2rem; }
#page-content-wrapper { min-width: 100vw; }
#admin-wrapper.toggled #sidebar-wrapper { margin-left: -250px; }
#admin-wrapper.toggled #page-content-wrapper { min-width: 0; width: 100%; }
@media (min-width: 768px) { #sidebar-wrapper { margin-left: 0; } #page-content-wrapper { min-width: 0; width: 100%; } #admin-wrapper.toggled #sidebar-wrapper { margin-left: -250px; } }
