/* =============================================================================
 *  main.css — Daniel Goffi Servicios Inmobiliarios (GVAMAX Web 2.0)
 *  Marca: azul institucional (logo "G") + acento dorado (banner).
 *  Se carga DESPUÉS de bootstrap.min.css.
 * ========================================================================== */

:root {
    --gf-primary:       #1b3a8f;
    --gf-primary-dark:  #12285f;
    --gf-primary-light: #2f57c0;
    --gf-accent:        #f2c200;
    --gf-accent-dark:   #d9ae00;
    --gf-dark:          #1c2333;
    --gf-gray:          #64748b;
    --gf-light:         #f6f8fc;
    --gf-primary-rgb:   27, 58, 143;
    --gf-accent-rgb:    242, 194, 0;
    --gf-radius:        .7rem;
    --gf-shadow-sm:     0 2px 10px rgba(16, 30, 70, .08);
    --gf-shadow-md:     0 8px 28px rgba(16, 30, 70, .14);
    --gf-shadow-lg:     0 16px 46px rgba(16, 30, 70, .20);

    --bs-primary:       #1b3a8f;
    --bs-primary-rgb:   27, 58, 143;
    --bs-link-color:    #1b3a8f;
    --bs-link-hover-color: #12285f;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, sans-serif;
    color: var(--gf-dark);
    padding-top: 82px;               /* compensa navbar fixed-top */
    overflow-x: hidden;
}

/* [hidden] gana siempre, aunque haya display:flex/grid (B34) */
[hidden] { display: none !important; }

a { color: var(--gf-primary); }
a:hover { color: var(--gf-primary-dark); }

.text-primary { color: var(--gf-primary) !important; }
.bg-primary   { background-color: var(--gf-primary) !important; }
.btn-primary {
    --bs-btn-bg: var(--gf-primary);
    --bs-btn-border-color: var(--gf-primary);
    --bs-btn-hover-bg: var(--gf-primary-dark);
    --bs-btn-hover-border-color: var(--gf-primary-dark);
    --bs-btn-active-bg: var(--gf-primary-dark);
    --bs-btn-active-border-color: var(--gf-primary-dark);
    --bs-btn-disabled-bg: var(--gf-primary);
    --bs-btn-disabled-border-color: var(--gf-primary);
}
.btn-outline-primary {
    --bs-btn-color: var(--gf-primary);
    --bs-btn-border-color: var(--gf-primary);
    --bs-btn-hover-bg: var(--gf-primary);
    --bs-btn-hover-border-color: var(--gf-primary);
    --bs-btn-active-bg: var(--gf-primary);
}
.btn-accent {
    background: var(--gf-accent);
    border: 1px solid var(--gf-accent);
    color: var(--gf-dark);
    font-weight: 700;
}
.btn-accent:hover { background: var(--gf-accent-dark); border-color: var(--gf-accent-dark); color: var(--gf-dark); }

/* =============================================================================
 *  NAVBAR
 * ========================================================================== */
.gf-navbar {
    background: #fff;
    box-shadow: var(--gf-shadow-sm);
    padding: .4rem 0;
    border-bottom: 3px solid var(--gf-accent);
}
.gf-navbar .navbar-brand img { height: 62px; width: auto; }
.gf-navbar .nav-link {
    color: var(--gf-dark);
    font-weight: 600;
    padding: .5rem 1rem !important;
    position: relative;
}
.gf-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 1rem; right: 1rem; bottom: .35rem;
    height: 2px;
    background: var(--gf-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.gf-navbar .nav-link:hover,
.gf-navbar .nav-link.active { color: var(--gf-primary); }
.gf-navbar .nav-link:hover::after,
.gf-navbar .nav-link.active::after { transform: scaleX(1); }

@media (max-width: 991.98px) {
    body { padding-top: 74px; }
    .gf-navbar .navbar-brand img { height: 50px; }
    .gf-navbar .nav-link::after { display: none; }
}

/* =============================================================================
 *  HERO (home)
 * ========================================================================== */
.gf-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background-color: #12285f;
}
.gf-hero__bg {
    position: absolute;
    inset: -2%;
    z-index: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    animation: gfKenBurns 26s ease-in-out infinite alternate;
    will-change: transform;
}
.gf-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(100deg, rgba(11, 22, 55, .88) 0%, rgba(18, 40, 95, .62) 48%, rgba(18, 40, 95, .30) 100%),
        radial-gradient(ellipse at bottom right, rgba(var(--gf-accent-rgb), .18) 0%, transparent 55%);
    pointer-events: none;
}
.gf-hero__content { position: relative; z-index: 2; width: 100%; color: #fff; padding: 3.5rem 0; }
.gf-hero__badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(var(--gf-accent-rgb), .15);
    color: var(--gf-accent);
    border: 1px solid rgba(var(--gf-accent-rgb), .4);
    padding: .35rem 1rem; border-radius: 999px;
    font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
}
.gf-hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 1rem 0;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .3);
    animation: gfFadeUp .9s ease-out .1s both;
}
.gf-hero p.lead { font-size: 1.15rem; max-width: 540px; opacity: .95; animation: gfFadeUp .9s ease-out .3s both; }
.gf-hero__cta { animation: gfFadeUp .9s ease-out .5s both; }
.gf-hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 4px; z-index: 3;
    background: linear-gradient(90deg, var(--gf-primary) 0%, var(--gf-accent) 50%, var(--gf-primary) 100%);
    background-size: 200% 100%;
    animation: gfBarShift 5s ease-in-out infinite;
}

@keyframes gfKenBurns {
    0%   { transform: scale(1)    translate(0, 0); }
    100% { transform: scale(1.1)  translate(.4%, .2%); }
}

@media (max-width: 991.98px) {
    .gf-hero { min-height: auto; padding: 1rem 0; }
    .gf-hero__content { padding: 2.5rem 0; }
}

/* =============================================================================
 *  SEARCH CARD (buscador)
 * ========================================================================== */
.gf-search {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--gf-shadow-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.gf-search::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--gf-primary), var(--gf-accent));
}
.gf-search__title {
    font-weight: 800; font-size: 1.05rem; color: var(--gf-dark);
    margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .03em;
}
.gf-search label {
    font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em;
    color: var(--gf-gray); margin-bottom: .25rem;
}
.gf-search .form-select,
.gf-search .form-control {
    border: 1.5px solid #e2e6ee;
    border-radius: .55rem;
    padding: .6rem .8rem;
    font-size: .95rem;
}
.gf-search .form-select:focus,
.gf-search .form-control:focus {
    border-color: var(--gf-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--gf-primary-rgb), .15);
}
.gf-search .btn { font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

/* buscador dentro del hero: fondo blanco, texto oscuro */
.gf-hero .gf-search { max-width: 460px; margin-left: auto; }

/* =============================================================================
 *  SECTION HEADINGS
 * ========================================================================== */
.gf-heading { text-align: center; margin-bottom: 2.5rem; }
.gf-heading h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    color: var(--gf-dark); margin-bottom: .5rem;
}
.gf-heading p { color: var(--gf-gray); max-width: 620px; margin: 0 auto; }
.gf-heading::after {
    content: ''; display: block; width: 64px; height: 4px;
    background: linear-gradient(90deg, var(--gf-primary), var(--gf-accent));
    margin: 1rem auto 0; border-radius: 2px;
}

/* =============================================================================
 *  PROPERTY CARDS
 * ========================================================================== */
.gf-card {
    background: #fff;
    border-radius: var(--gf-radius);
    overflow: hidden;
    box-shadow: var(--gf-shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.gf-card:hover { transform: translateY(-5px); box-shadow: var(--gf-shadow-md); }
.gf-card a { text-decoration: none; color: inherit; }
.gf-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef1f6;
}
.gf-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.gf-card:hover .gf-card__media img { transform: scale(1.08); }
.gf-card__badge {
    position: absolute; top: .8rem; left: .8rem; z-index: 2;
    background: var(--gf-primary); color: #fff;
    padding: .3rem .8rem; border-radius: 999px;
    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    box-shadow: var(--gf-shadow-sm);
}
.gf-card__badge--alquiler { background: var(--gf-accent); color: var(--gf-dark); }
.gf-card__price {
    position: absolute; bottom: .8rem; left: .8rem; z-index: 2;
    background: rgba(18, 40, 95, .92); color: #fff;
    padding: .4rem .9rem; border-radius: 999px;
    font-weight: 700; font-size: .95rem;
    box-shadow: var(--gf-shadow-sm);
}
.gf-card__body { padding: 1.1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.gf-card__type { color: var(--gf-primary); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.gf-card__title {
    font-size: 1.05rem; font-weight: 700; margin: .25rem 0 .5rem; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gf-card__loc { color: var(--gf-gray); font-size: .88rem; margin-bottom: .75rem; }
.gf-card__loc i { color: var(--gf-primary); }
.gf-card__features {
    display: flex; flex-wrap: wrap; gap: .9rem;
    margin-top: auto; padding-top: .75rem;
    border-top: 1px solid #eef1f6;
    color: var(--gf-dark); font-size: .85rem;
}
.gf-card__features span { display: inline-flex; align-items: center; gap: .35rem; }
.gf-card__features i { color: var(--gf-primary); }

/* =============================================================================
 *  PAGE HERO (inner pages)
 * ========================================================================== */
.gf-pagehero {
    background: linear-gradient(120deg, var(--gf-primary) 0%, var(--gf-primary-dark) 100%);
    color: #fff; text-align: center; padding: 3.5rem 0 3rem;
    position: relative; margin-bottom: 3rem;
}
.gf-pagehero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--gf-primary), var(--gf-accent), var(--gf-primary));
}
.gf-pagehero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: .5rem; }
.gf-pagehero p { opacity: .9; max-width: 640px; margin: 0 auto; }
.gf-pagehero .breadcrumb { justify-content: center; margin: .5rem 0 0; --bs-breadcrumb-divider-color: rgba(255,255,255,.6); }
.gf-pagehero .breadcrumb a { color: rgba(255,255,255,.85); }
.gf-pagehero .breadcrumb .active { color: #fff; }

/* =============================================================================
 *  SERVICES / FEATURE CARDS
 * ========================================================================== */
.gf-service {
    background: #fff; border-radius: var(--gf-radius); padding: 2rem 1.25rem; text-align: center;
    box-shadow: var(--gf-shadow-sm); height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
    border-bottom: 3px solid transparent;
}
.gf-service:hover { transform: translateY(-5px); box-shadow: var(--gf-shadow-md); border-bottom-color: var(--gf-accent); }
.gf-service__icon {
    width: 72px; height: 72px; margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--gf-primary), var(--gf-primary-light));
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.gf-service h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.gf-service p { color: var(--gf-gray); font-size: .9rem; margin: 0; }

/* =============================================================================
 *  DETAIL PAGE
 * ========================================================================== */
.gf-detail-carousel .carousel-item img { width: 100%; height: 520px; object-fit: cover; }
.gf-detail-carousel .carousel-item iframe { width: 100%; height: 520px; border: 0; display: block; }
.gf-detail-carousel { border-radius: var(--gf-radius); overflow: hidden; box-shadow: var(--gf-shadow-sm); background: #000; }
@media (max-width: 767.98px) {
    .gf-detail-carousel .carousel-item img,
    .gf-detail-carousel .carousel-item iframe { height: 300px; }
}
.gf-price-tag {
    display: inline-block; background: var(--gf-primary); color: #fff;
    padding: .5rem 1.2rem; border-radius: 999px; font-weight: 800; font-size: 1.25rem;
}
.gf-panel {
    background: #fff; border-radius: var(--gf-radius);
    box-shadow: var(--gf-shadow-sm); padding: 1.5rem; margin-bottom: 1.5rem;
}
.gf-panel h2 {
    font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
    color: var(--gf-dark); margin-bottom: 1rem; padding-bottom: .6rem;
    border-bottom: 2px solid var(--gf-accent); display: inline-block;
}
.gf-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; }
.gf-spec {
    background: var(--gf-light); border-radius: .5rem; padding: .8rem; text-align: center;
}
.gf-spec i { color: var(--gf-primary); font-size: 1.3rem; }
.gf-spec .gf-spec__val { font-weight: 700; font-size: 1.05rem; display: block; margin-top: .2rem; }
.gf-spec .gf-spec__label { color: var(--gf-gray); font-size: .78rem; text-transform: uppercase; }
.gf-amenities { columns: 2; column-gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.gf-amenities li { break-inside: avoid; padding: .3rem 0; }
.gf-amenities li i { color: var(--gf-primary); margin-right: .5rem; }
.gf-detail-map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--gf-radius); }
.gf-contact-sidebar { position: sticky; top: 100px; }
@media (max-width: 991.98px) { .gf-contact-sidebar { position: static; } }

/* =============================================================================
 *  CONTACT FORM (propio — reemplaza iframe GVAMAX B7)
 * ========================================================================== */
.gf-form .form-label { font-weight: 600; font-size: .88rem; color: var(--gf-dark); margin-bottom: .3rem; }
.gf-form .form-label .req { color: var(--gf-primary); }
.gf-form .form-control {
    border: 1px solid #d5dae4; border-radius: .5rem; padding: .6rem .8rem; font-size: .95rem;
}
.gf-form .form-control:focus {
    border-color: var(--gf-primary); box-shadow: 0 0 0 .2rem rgba(var(--gf-primary-rgb), .15);
}
.gf-form textarea.form-control { min-height: 120px; resize: vertical; }
.gf-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gf-form__submit {
    background: var(--gf-primary); color: #fff; border: none; border-radius: .5rem;
    padding: .8rem 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;
}
.gf-form__submit:hover:not(:disabled) { background: var(--gf-primary-dark); transform: translateY(-1px); }
.gf-form__submit:disabled { opacity: .7; cursor: wait; }
.gf-spinner {
    width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
    border-radius: 50%; animation: gfSpin .8s linear infinite; display: inline-block;
}
@keyframes gfSpin { to { transform: rotate(360deg); } }
.gf-form__feedback { margin-top: 1rem; padding: .8rem 1rem; border-radius: .5rem; font-weight: 600; font-size: .9rem; text-align: center; }
.gf-form__feedback.is-ok  { background: rgba(40,167,69,.12);  color: #1e7e34; border: 1px solid rgba(40,167,69,.3); }
.gf-form__feedback.is-err { background: rgba(220,53,69,.10);  color: #b71d2b; border: 1px solid rgba(220,53,69,.3); }

/* =============================================================================
 *  WHATSAPP FAB
 * ========================================================================== */
.wa-fab {
    position: fixed; bottom: 26px; right: 26px; width: 62px; height: 62px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    z-index: 1050; color: #fff; font-size: 1.9rem; text-decoration: none;
    box-shadow: 0 8px 28px rgba(37,211,102,.45), 0 2px 6px rgba(0,0,0,.15);
    animation: gfWaBob 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: gfWaPulse 2.4s ease-out infinite;
}
.wa-fab:hover { transform: scale(1.08); color: #fff; animation-play-state: paused; }
.wa-tooltip {
    position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%);
    background: var(--gf-dark); color: #fff; padding: .5rem .9rem; border-radius: 8px;
    white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease;
    font-size: .82rem; font-weight: 600;
}
.wa-fab:hover .wa-tooltip { opacity: 1; }
@keyframes gfWaPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes gfWaBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 575.98px) { .wa-fab { width: 54px; height: 54px; font-size: 1.6rem; } .wa-tooltip { display: none; } }

/* =============================================================================
 *  FOOTER
 * ========================================================================== */
.gf-footer { background: var(--gf-dark); color: #cbd3e1; padding: 3rem 0 1.25rem; }
.gf-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; }
.gf-footer img { max-height: 76px; width: auto; margin-bottom: 1rem; background: #fff; padding: .5rem; border-radius: 8px; }
.gf-footer a { color: #cbd3e1; text-decoration: none; }
.gf-footer a:hover { color: #fff; }
.gf-footer__contact li { display: flex; gap: .6rem; margin-bottom: .6rem; }
.gf-footer__contact i { color: var(--gf-accent); margin-top: .2rem; }
.gf-footer__social { display: flex; gap: .6rem; }
.gf-footer__social a {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1);
    display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
    transition: background .15s ease, transform .15s ease;
}
.gf-footer__social a:hover { background: var(--gf-primary-light); transform: translateY(-2px); }
.gf-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; }
.gf-footer__powered a { color: #fff; font-weight: 700; }
.gf-footer__powered a:hover { color: var(--gf-accent); }

/* =============================================================================
 *  RESULTS TOOLBAR + EMPTY STATE
 * ========================================================================== */
.gf-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.gf-toolbar .gf-count { font-weight: 700; color: var(--gf-dark); }
.gf-toolbar .gf-count b { color: var(--gf-primary); }
.gf-empty { text-align: center; padding: 3rem 1rem; color: var(--gf-gray); }
.gf-empty i { font-size: 3rem; color: #cbd3e1; margin-bottom: 1rem; }

/* =============================================================================
 *  SCROLL ANIMATIONS (IntersectionObserver — solo contenido estático) (B38)
 * ========================================================================== */
[data-animate] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
[data-animate].in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    [data-animate], .gf-hero__bg, .wa-fab, .wa-fab::before { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

@keyframes gfFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gfBarShift { 0%,100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
