/* ======================================================================
   ESTILOS PERSONALIZADOS - MI CANTÓN BIENES RAÍCES
   ====================================================================== */

:root {
    --color-primary: #17349F;
    --color-secondary: #FF3B4D;
    --color-light: #F8FAFC;
    --color-dark: #0F172A;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
}

/* Strict logo styling to prevent layout shift or overflow */
.header-logo {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
}
@media (max-width: 640px) {
    .header-logo {
        height: 40px !important;
        max-height: 40px !important;
    }
}
.footer-logo {
    height: 44px !important;
    max-height: 44px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
}

/* Micro-Interactions & Hover effects */
.btn-pulse {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-pulse:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(23, 52, 159, 0.35);
}
.btn-secondary-pulse {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-secondary-pulse:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 59, 77, 0.35);
}
.card-hover {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 30px -5px rgba(23, 52, 159, 0.08), 0 8px 16px -5px rgba(0, 0, 0, 0.02);
    border-color: rgba(23, 52, 159, 0.15);
}

/* Form styling */
select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem auto;
    appearance: none;
}

/* Glassmorphism Styles */
.glass-nav {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.05) !important;
}

.glass-info-box {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.12) !important;
}

.glass-badge {
    background: rgba(23, 52, 159, 0.06) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(23, 52, 159, 0.12) !important;
}

.glass-control {
    background: rgba(15, 23, 42, 0.3) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    transition: all 0.3s ease !important;
}
.glass-control:hover {
    background: rgba(15, 23, 42, 0.5) !important;
}

/* Smooth, premium scroll reveal styles */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.js-enabled .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero sequential fade-in animations on load */
.js-enabled .hero-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.js-enabled .hero-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Scroll Reveal */
.js-enabled .staggered-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.js-enabled .staggered-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Slide Down Animation */
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.animate-navbar {
    animation: slideDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Floating WhatsApp Bubble Animation */
@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.floating-bubble-anim {
    animation: bubbleFloat 4s ease-in-out infinite;
}

/* Hover Zooming */
.group:hover .group-hover\:scale-103 {
    transform: scale(1.03);
}
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}
