/* =============================================================================
 *  quintana-2.css — Polish Bootstrap 5.3 para Quintana Inmobiliaria
 *  Marca: violeta #402874 (primario) + naranja #E8502A (acento)
 * =============================================================================
 */
:root {
    --q-primary: #402874;
    --q-primary-dark: #2e1c54;
    --q-primary-light: #5a3a9c;
    --q-primary-rgb: 64, 40, 116;
    --q-accent: #E8502A;
    --q-accent-dark: #c63d1a;
    --q-accent-rgb: 232, 80, 42;
    --q-dark: #232323;
    --q-gray: #6b7280;
    --q-light: #f7f7f9;
    --q-shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --q-shadow-md: 0 6px 24px rgba(0,0,0,.12);
    --q-shadow-lg: 0 12px 40px rgba(0,0,0,.18);
    --q-radius: .6rem;
}

/* Defensa global: [hidden] siempre gana (B34) */
[hidden] { display: none !important; }

body {
    padding-top: 84px;
    color: var(--q-dark);
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}
a { color: var(--q-primary); }
a:hover { color: var(--q-primary-dark); }
.text-primary { color: var(--q-primary) !important; }
.bg-primary { background-color: var(--q-primary) !important; }
.btn-primary {
    --bs-btn-bg: var(--q-primary); --bs-btn-border-color: var(--q-primary);
    --bs-btn-hover-bg: var(--q-primary-dark); --bs-btn-hover-border-color: var(--q-primary-dark);
    --bs-btn-active-bg: var(--q-primary-dark); --bs-btn-active-border-color: var(--q-primary-dark);
}
.btn-accent {
    --bs-btn-color: #fff; --bs-btn-bg: var(--q-accent); --bs-btn-border-color: var(--q-accent);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--q-accent-dark); --bs-btn-hover-border-color: var(--q-accent-dark);
    --bs-btn-active-bg: var(--q-accent-dark);
}
.btn-outline-primary {
    --bs-btn-color: var(--q-primary); --bs-btn-border-color: var(--q-primary);
    --bs-btn-hover-bg: var(--q-primary); --bs-btn-hover-border-color: var(--q-primary);
    --bs-btn-active-bg: var(--q-primary-dark);
}

/* ===== NAVBAR ===== */
.navbar.fixed-top {
    box-shadow: var(--q-shadow-sm);
    background-color: #fff !important;
    padding: .4rem 0;
}
.navbar-brand img { max-height: 64px; width: auto; height: auto; }
.navbar-nav .nav-link {
    color: var(--q-dark); font-weight: 600;
    padding: .5rem 1rem !important; transition: color .15s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--q-primary); }
@media (max-width: 991.98px) {
    body { padding-top: 76px; }
    .navbar-brand img { max-height: 50px; }
}

/* ===== HERO ===== */
.q-hero {
    position: relative; min-height: 520px; overflow: hidden;
    isolation: isolate; display: flex; align-items: center;
    background-color: #1f1f1f;
}
.q-hero .hero-bg {
    position: absolute; inset: -2%; z-index: 0;
    background-position: center; background-size: cover; background-repeat: no-repeat;
    background-color: #1f1f1f; transform-origin: center;
    animation: qKenBurns 26s ease-in-out infinite alternate; will-change: transform;
}
.q-hero .hero-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(100deg, rgba(46,28,84,.82) 0%, rgba(46,28,84,.5) 45%, rgba(0,0,0,.25) 100%);
}
.q-hero .hero-content { position: relative; z-index: 2; color: #fff; padding: 3rem 1rem; width: 100%; }
.q-hero h1 { font-weight: 800; font-size: 2.6rem; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.q-hero .hero-lead { font-size: 1.15rem; opacity: .96; max-width: 540px; }
.q-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; z-index: 3;
    background: linear-gradient(90deg, var(--q-primary) 0%, var(--q-accent) 50%, var(--q-primary) 100%);
    background-size: 200% 100%; animation: qBarShift 5s ease-in-out infinite;
}
@keyframes qKenBurns {
    0% { transform: scale(1) translate(0,0); }
    50% { transform: scale(1.08) translate(-.5%,-.3%); }
    100% { transform: scale(1.12) translate(.3%,.2%); }
}
@keyframes qBarShift { 0%,100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.q-hero h1 { animation: qFadeUp .9s ease-out .1s both; }
.q-hero .hero-lead { animation: qFadeUp .9s ease-out .3s both; }
.q-hero .hero-cta { animation: qFadeUp 1s ease-out .5s both; }
@media (max-width: 991.98px) {
    .q-hero { min-height: 360px; }
    .q-hero h1 { font-size: 1.8rem; }
    .q-hero .hero-lead { font-size: 1rem; }
}

/* CTA chips del hero (Ventas / Alquileres / Administración) */
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-cta .cta-chip {
    flex: 1 1 180px; text-align: center; text-decoration: none; color: #fff;
    background: rgba(var(--q-accent-rgb), .92); border-radius: 10px;
    padding: 1rem 1.25rem; font-weight: 700; letter-spacing: .03em;
    box-shadow: 0 6px 18px rgba(var(--q-accent-rgb), .35);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.hero-cta .cta-chip small { display: block; font-weight: 400; font-size: .75rem; opacity: .9; }
.hero-cta .cta-chip:hover { transform: translateY(-3px); filter: brightness(1.06); color: #fff; }

/* ===== PAGE HERO (interior) ===== */
.page-hero {
    position: relative; padding: 3.5rem 0 2.5rem; text-align: center; color: #fff; margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--q-primary) 0%, var(--q-primary-dark) 100%);
}
.page-hero h1 { font-weight: 800; font-size: 2.2rem; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.page-hero p.lead { opacity: .95; max-width: 600px; margin: .5rem auto 0; }
@media (max-width: 575.98px) { .page-hero { padding: 2.25rem 0 1.75rem; } .page-hero h1 { font-size: 1.6rem; } }

/* ===== HEADING TITLE ===== */
.heading-title { text-align: center; margin: 3rem 0 2.25rem; }
.heading-title h2 {
    font-size: 1.7rem; font-weight: 800; letter-spacing: .04em;
    color: var(--q-dark); text-transform: uppercase;
}
.heading-title::after {
    content: ''; display: block; width: 64px; height: 4px; border-radius: 2px;
    background: var(--q-accent); margin: .9rem auto 0;
}

/* ===== BUSCADOR (form) ===== */
.q-search { background: #fff; border-radius: 14px; box-shadow: var(--q-shadow-md); padding: 1.5rem; }
.q-search.in-hero {
    max-width: 460px; margin-left: auto; box-shadow: 0 20px 50px rgba(0,0,0,.3);
    border-top: 4px solid var(--q-accent);
}
.q-search .form-select, .q-search .form-control {
    border: 1.5px solid #e0e3e8; border-radius: 10px; padding: .65rem .85rem;
    font-size: .95rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.q-search .form-select:focus, .q-search .form-control:focus {
    border-color: var(--q-primary); box-shadow: 0 0 0 .2rem rgba(var(--q-primary-rgb),.15);
}
.q-search label { font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--q-gray); margin-bottom: .3rem; }

/* ===== PROPERTY CARD ===== */
.property-card { border: none; border-radius: var(--q-radius); overflow: hidden; box-shadow: var(--q-shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.property-card:hover { transform: translateY(-4px); box-shadow: var(--q-shadow-md); }
.property-card .pc-media { position: relative; }
.property-card .pc-media .ratio { background: #f1f1f1; }
.property-card .pc-media img { object-fit: cover; transition: transform .35s ease; }
.property-card:hover .pc-media img { transform: scale(1.06); }
.property-card .pc-badge {
    position: absolute; top: .75rem; left: .75rem; z-index: 3;
    background: var(--q-primary); color: #fff; padding: .3rem .8rem;
    border-radius: 999px; font-size: .78rem; font-weight: 700; box-shadow: var(--q-shadow-sm);
}
.property-card .pc-price {
    position: absolute; bottom: .75rem; left: .75rem; z-index: 3;
    background: rgba(var(--q-accent-rgb), .95); color: #fff; padding: .35rem .9rem;
    border-radius: 999px; font-size: .95rem; font-weight: 700; box-shadow: var(--q-shadow-sm);
}
.property-card .card-body { padding: 1rem; }
.property-card .pc-type { color: var(--q-gray); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.property-card .pc-title { font-size: 1rem; font-weight: 700; margin: .25rem 0 .5rem; line-height: 1.3; color: var(--q-dark); }
.property-card .pc-loc { color: var(--q-gray); font-size: .85rem; margin-bottom: .5rem; }
.property-card .pc-features { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .85rem; color: var(--q-dark); border-top: 1px solid #eee; padding-top: .6rem; }
.property-card .pc-features i { color: var(--q-primary); }

/* ===== DETALLE ===== */
.detalle-carousel .carousel-item img { width: 100%; height: 480px; object-fit: cover; }
.detalle-carousel .carousel-item iframe { width: 100%; height: 480px; border: 0; }
@media (max-width: 767.98px) { .detalle-carousel .carousel-item img, .detalle-carousel .carousel-item iframe { height: 280px; } }
.detalle-price { background: var(--q-primary); color: #fff; border-radius: var(--q-radius); padding: 1rem 1.25rem; }
.detalle-price .amount { font-size: 1.6rem; font-weight: 800; }
.amenity-list { list-style: none; padding: 0; margin: 0; columns: 2; }
.amenity-list li { padding: .25rem 0; font-size: .92rem; }
.amenity-list li i { color: var(--q-accent); margin-right: .4rem; }
.detalle-map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--q-radius); }
.contact-sidebar { position: sticky; top: 100px; }
@media (max-width: 991.98px) { .contact-sidebar { position: static; } }

/* ===== SERVICE CARD ===== */
.service-card {
    position: relative; background: #fff; border-radius: var(--q-radius); padding: 1.75rem 1.5rem; text-align: center;
    box-shadow: var(--q-shadow-sm); height: 100%; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--q-primary), var(--q-accent)); transform: scaleX(0);
    transform-origin: left; transition: transform .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--q-shadow-md); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .svc-icon {
    width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--q-primary-rgb), .1); color: var(--q-primary); font-size: 1.6rem; margin-bottom: 1rem;
    transition: background .2s ease, color .2s ease;
}
.service-card:hover .svc-icon { background: var(--q-primary); color: #fff; }
.service-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--q-dark); margin: 0 0 .5rem; }
.service-card p { font-size: .9rem; color: var(--q-gray); margin: 0; line-height: 1.5; }

/* ===== NOSOTROS: stats + misión/visión ===== */
.about-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 0 auto 2.5rem; }
.about-stats .stat-item {
    flex: 1 1 160px; max-width: 220px; text-align: center; padding: 1.25rem 1rem;
    background: #fff; border-radius: var(--q-radius); box-shadow: var(--q-shadow-sm);
}
.about-stats .stat-item i { font-size: 1.7rem; color: var(--q-accent); }
.about-stats .stat-item .stat-num { font-size: 1.5rem; font-weight: 800; color: var(--q-primary); margin-top: .35rem; }
.about-stats .stat-item .stat-label { font-size: .82rem; color: var(--q-gray); text-transform: uppercase; letter-spacing: .03em; }
.mv-card {
    height: 100%; background: #fff; border-radius: var(--q-radius); padding: 1.5rem;
    box-shadow: var(--q-shadow-sm); border-left: 4px solid var(--q-primary);
}
.mv-card.visic { border-left-color: var(--q-accent); }
.mv-card h5 { font-weight: 700; display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.mv-card.mision h5 i { color: var(--q-primary); }
.mv-card.visic h5 i { color: var(--q-accent); }
.mv-card p { color: var(--q-gray); margin: 0; }

/* ===== ADMINISTRACIÓN ===== */
.admin-highlight {
    background: linear-gradient(135deg, var(--q-primary) 0%, var(--q-primary-dark) 100%);
    color: #fff; border-radius: var(--q-radius); padding: 2rem; text-align: center; box-shadow: var(--q-shadow-md);
}
.admin-highlight .day5 {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    width: 96px; height: 96px; border-radius: 50%; background: var(--q-accent); margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(var(--q-accent-rgb), .4);
}
.admin-highlight .day5 .d-num { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.admin-highlight .day5 .d-lbl { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; }
.admin-feature {
    display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: var(--q-radius);
    padding: 1.25rem; box-shadow: var(--q-shadow-sm); height: 100%;
}
.admin-feature .af-icon {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--q-primary-rgb), .1); color: var(--q-primary); font-size: 1.25rem;
}
.admin-feature h5 { font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; }
.admin-feature p { font-size: .9rem; color: var(--q-gray); margin: 0; }

/* ===== CONTACT FORM ===== */
.rf-contact-form .form-label { font-weight: 600; font-size: .9rem; }
.rf-contact-form .form-label .required { color: var(--q-accent); }
.rf-contact-form .form-control { border-radius: .5rem; }
.rf-contact-form .form-control:focus { border-color: var(--q-primary); box-shadow: 0 0 0 .2rem rgba(var(--q-primary-rgb),.15); }
.rf-contact-form textarea.form-control { min-height: 110px; resize: vertical; }
.rf-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rf-contact-submit {
    background: var(--q-primary); color: #fff; border: none; border-radius: .5rem;
    padding: .85rem 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    width: 100%; cursor: pointer; transition: background .15s ease, transform .15s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
}
.rf-contact-submit:hover:not(:disabled) { background: var(--q-primary-dark); transform: translateY(-1px); }
.rf-contact-submit:disabled { background: var(--q-gray); cursor: wait; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: qSpin .8s linear infinite; }
@keyframes qSpin { to { transform: rotate(360deg); } }
.rf-contact-feedback { margin-top: 1rem; padding: .8rem 1rem; border-radius: .5rem; font-weight: 600; font-size: .9rem; text-align: center; }
.rf-contact-feedback.is-success { background: rgba(40,167,69,.12); color: #1e7e34; border: 1px solid rgba(40,167,69,.3); }
.rf-contact-feedback.is-error { background: rgba(220,53,69,.1); color: #b71d2b; border: 1px solid rgba(220,53,69,.3); }

/* ===== WHATSAPP FAB ===== */
.div-flotante, .div-flotante-mobile { display: none !important; }
.wa-fab {
    position: fixed; bottom: 28px; right: 28px; width: 60px; height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; z-index: 9999;
    color: #fff; font-size: 1.8rem; text-decoration: none;
    box-shadow: 0 8px 28px rgba(37,211,102,.45); animation: qWaBob 3s ease-in-out infinite;
}
.wa-fab i { color: #fff; }
.wa-fab::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: qWaPulse 2.4s ease-out infinite; }
.wa-fab:hover { transform: scale(1.1); color: #fff; animation-play-state: paused; }
@keyframes qWaPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes qWaBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 575.98px) { .wa-fab { bottom: 18px; right: 18px; width: 54px; height: 54px; } }

/* ===== FOOTER ===== */
#footer { background: var(--q-dark); color: #d1d5db; padding: 2.5rem 0 1.5rem; }
#footer a { color: #d1d5db; text-decoration: none; }
#footer a:hover { color: #fff; }
#footer .footer-brand img { max-height: 70px; background: #fff; padding: .4rem .6rem; border-radius: 8px; }
#footer .social-links a {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    background: rgba(255,255,255,.1); color: #fff; border-radius: 50%; margin-right: .4rem;
    transition: background .15s ease, transform .15s ease;
}
#footer .social-links a:hover { background: var(--q-accent); transform: translateY(-2px); }

/* ===== FADE-IN (solo contenido estático, NO cards AJAX — B38) ===== */
.fade-in-section { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }
@keyframes qFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .fade-in-section { opacity: 1; transform: none; transition: none; }
    .q-hero .hero-bg, .wa-fab, .wa-fab::before { animation: none; }
}

/* ===== MOBILE padding (B14b — matar 3 capas BS5) ===== */
@media (max-width: 768px) {
    .container, .container-fluid { padding-left: 12px !important; padding-right: 12px !important; }
}
