/*
 * styles.css — Galván Inmobiliaria
 * Estilos globales compartidos por todas las páginas
 */

/* ==============================
   VARIABLES Y BASE
============================== */
:root {
    --azul:         #1a2d5a;
    --azul-medio:   #1f3b82;
    --azul-claro:   #2e5198;
    --acento:       #4a7fd4;
    --acento-suave: #dbeafe;
    --texto-muted:  #64748b;
    --borde-suave:  #e2e8f0;
    --bg-page:      #f8fafc;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Nunito', system-ui, sans-serif;
    background-color: var(--bg-page);
    color: #1e293b;
    font-size: 15px;
    margin: 0;
}

/* ==============================
   TOP BAR
============================== */
.top-bar {
    background: var(--azul);
    color: #cbd5e1;
    font-size: 0.78rem;
    padding: 0.35rem 0;
}
.top-bar a { color: #93c5fd; text-decoration: none; }
.top-bar a:hover { color: #fff; text-decoration: underline; }
.top-bar .sep { opacity: 0.35; margin: 0 0.5rem; }

.btn-wa-top {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #25d366;
    color: #fff !important;
    border-radius: 999px;
    padding: 0.22rem 0.8rem;
    font-size: 0.78rem;
    text-decoration: none;
    transition: background .2s;
    font-weight: 600;
}
.btn-wa-top:hover { background: #1ebe5c; }

/* ==============================
   NAVBAR
============================== */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--borde-suave);
    padding: 0.55rem 0;
}
.brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.65rem;
    color: var(--azul);
    line-height: 1;
}
.brand-sub {
    font-size: 0.68rem;
    color: var(--texto-muted);
    letter-spacing: 1px;
}
.nav-link {
    font-size: 0.88rem;
    color: #374151 !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 8px;
    transition: background .15s, color .15s;
    font-weight: 500;
}
.nav-link:hover { background: var(--acento-suave); color: var(--azul-medio) !important; }
.nav-link.active { color: var(--azul-medio) !important; font-weight: 700; }
.offcanvas-start { width: 270px; }

/* ==============================
   HERO — SLIDESHOW
============================== */
.hero-wrapper { position: relative; overflow: hidden; }

.hero-carousel .carousel-item img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}
.hero-text-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        rgba(26,45,90,.78) 0%,
        rgba(26,45,90,.45) 42%,
        transparent 68%);
    display: flex;
    align-items: center;
    pointer-events: none;
}
.hero-content { pointer-events: auto; max-width: 500px; }
.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 0.5rem;
}
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}
.hero-title span { color: #60a5fa; }
.hero-desc { color: rgba(255,255,255,.7); font-size: .9rem; max-width: 400px; }
.hero-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .85rem; }
.hero-tag {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.25);
    color: #e0e7ff;
    border-radius: 999px;
    font-size: .72rem;
    padding: .22rem .65rem;
}
.ampi-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    padding: .3rem .75rem;
    font-size: .72rem;
    color: #93c5fd;
    margin-top: .9rem;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 44px; height: 44px;
    top: 50%; transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(26,45,90,.55);
    opacity: 1; position: absolute;
}
.carousel-control-prev { left: 14px; }
.carousel-control-next { right: 14px; }
.carousel-control-prev-icon,
.carousel-control-next-icon { width: 1.1rem; height: 1.1rem; }
.carousel-indicators [data-bs-target] {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none; margin: 0 4px; transition: all .2s;
}
.carousel-indicators .active {
    width: 22px; border-radius: 999px; background: #fff;
}

/* ==============================
   BUSCADOR DEBAJO DEL HERO
============================== */
.search-below {
    background: #fff;
    border-top: 3px solid var(--azul);
    border-bottom: 1px solid var(--borde-suave);
    padding: 1.25rem 0 1.35rem;
    box-shadow: 0 6px 20px rgba(26,45,90,.07);
}
.search-row-wrap {
    display: flex;
    gap: .65rem;
    align-items: flex-end;
    flex-wrap: wrap;
}
.search-group { flex: 1; min-width: 130px; }
.search-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #94a3b8;
    margin-bottom: .25rem;
    font-weight: 600;
}
.search-below .form-control,
.search-below .form-select {
    border-radius: 999px;
    border-color: #cbd5e1;
    font-size: .83rem;
    padding: .42rem 1rem;
    font-family: 'Nunito', sans-serif;
}
.search-below .form-control:focus,
.search-below .form-select:focus {
    border-color: var(--acento);
    box-shadow: 0 0 0 2px rgba(74,127,212,.2);
    outline: none;
}
.chips-row {
    display: flex;
    gap: .4rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: .7rem;
}
.chip-op { cursor: pointer; display: inline-flex; }
.chip-op input { position: absolute; opacity: 0; pointer-events: none; }
.chip-lbl {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: .74rem;
    padding: .2rem .75rem;
    color: #6b7280;
    transition: all .15s;
    user-select: none;
    font-weight: 500;
}
.chip-op:hover .chip-lbl { border-color: #cbd5e1; }
.chip-op input:checked + .chip-lbl {
    background: var(--azul-medio);
    border-color: var(--azul-medio);
    color: #fff;
}
.city-tab {
    border: 1px solid var(--borde-suave);
    border-radius: 999px;
    padding: .22rem .8rem;
    font-size: .73rem;
    cursor: pointer;
    color: var(--texto-muted);
    background: #fff;
    transition: all .15s;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}
.city-tab.active {
    background: var(--azul);
    border-color: var(--azul);
    color: #fff;
}
.btn-buscar {
    background: var(--azul-medio);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: .88rem;
    padding: .48rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    height: 38px;
    transition: background .2s, transform .15s;
}
.btn-buscar:hover { background: var(--azul-claro); transform: translateY(-1px); }

/* ==============================
   SERVICES STRIP
============================== */
.serv-strip { background: var(--azul); padding: 1.5rem 0; }
.serv-item { text-align: center; }
.serv-icon {
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .5rem;
    font-size: 1.3rem; color: #93c5fd;
}
.serv-label { font-size: .8rem; color: #93c5fd; font-weight: 700; }
.serv-text  { font-size: .72rem; color: rgba(255,255,255,.45); margin-top: .1rem; }

/* ==============================
   SECTION HEADERS
============================== */
.sec-label {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--acento);
    margin-bottom: .2rem;
    font-weight: 700;
}
.sec-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--azul);
    line-height: 1.15;
    margin-bottom: 0;
}
.sec-sub { color: var(--texto-muted); font-size: .85rem; margin-top: .3rem; }

/* ==============================
   PROPERTY CARDS
============================== */
.prop-card {
    background: #fff;
    border-radius: 1.1rem;
    border: 1px solid var(--borde-suave);
    overflow: hidden;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    position: relative;
    height: 100%;
}
.prop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(26,45,90,.12);
    border-color: #bfdbfe;
}
.prop-img-wrap { aspect-ratio: 4/3; overflow: hidden; background: #e8edf4; }
.prop-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .3s ease;
}
.prop-card:hover .prop-img-wrap img { transform: scale(1.04); }
.prop-body { padding: .85rem 1rem 1rem; }
.badge-op {
    background: var(--azul) !important;
    color: #fff !important;
    font-size: .67rem; font-weight: 700;
    padding: .2rem .55rem; border-radius: 999px;
    letter-spacing: .03em;
}
.badge-tipo {
    background: var(--acento-suave) !important;
    color: var(--azul-medio) !important;
    border: 1px solid #bfdbfe;
    font-size: .67rem; font-weight: 700;
    padding: .2rem .55rem; border-radius: 999px;
}
.badge-nueva {
    background: #dcfce7 !important;
    color: #166534 !important;
    font-size: .67rem; font-weight: 700;
    padding: .2rem .55rem; border-radius: 999px;
}
.prop-price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem; 
    color: var(--azul);
}
.prop-colonia { font-size: .82rem; color: var(--texto-muted); margin-top: .1rem; }
.pill-meta {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .7rem; color: #6b7280;
    background: #f1f5f9; border-radius: 999px;
    padding: .15rem .55rem;
}

/* ==============================
   DESARROLLOS GRID
============================== */
.desarrollos-section { background: var(--bg-page); }
.des-card {
    border-radius: .9rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--borde-suave);
    background: var(--azul);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.des-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(26,45,90,.2);
}
.des-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--azul-medio);
}
.des-card-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .3s ease;
}
.des-card:hover .des-card-img img { transform: scale(1.05); }
.des-card-body { padding: .6rem .8rem .7rem; background: #fff; }
.des-card-name {
    font-family: 'Poppins', sans-serif;
    font-size: .78rem; font-weight: 700;
    color: var(--azul);
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.des-card-sub { font-size: .68rem; color: var(--texto-muted); margin-top: .05rem; }

/* ==============================
   VIDEO SECTION
============================== */
.video-section { background: var(--azul); padding: 3.5rem 0; }
.video-sec-label {
    font-size: .72rem; letter-spacing: .12em;
    text-transform: uppercase; color: #60a5fa;
    margin-bottom: .25rem; font-weight: 700;
}
.video-sec-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem; font-weight: 700; color: #fff; line-height: 1.15;
}
.video-sec-sub { color: #93c5fd; font-size: .85rem; margin-top: .4rem; }
.video-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 1rem; overflow: hidden;
    transition: transform .2s, border-color .2s;
}
.video-card:hover { transform: translateY(-2px); border-color: rgba(96,165,250,.5); }
.video-embed-wrap {
    position: relative;
    width: 100%; aspect-ratio: 9/16;
    max-height: 480px;
    background: #0f1f3f; overflow: hidden;
}
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .65rem;
    background: linear-gradient(160deg, #0f1f3f 0%, #1a2d5a 100%);
}
.video-play-btn {
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(96,165,250,.22);
    border: 2px solid rgba(96,165,250,.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #93c5fd; transition: all .2s;
}
.video-placeholder:hover .video-play-btn { background: rgba(96,165,250,.4); transform: scale(1.06); }
.video-net-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px; padding: .22rem .65rem;
    font-size: .72rem; color: #e0e7ff;
}
.video-info { padding: .75rem .9rem; }
.video-title { font-size: .83rem; font-weight: 600; color: #e0e7ff; }
.video-meta  { font-size: .7rem; color: #64748b; margin-top: .15rem; }
.btn-redes {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: #e0e7ff !important;
    border-radius: 999px;
    font-size: .82rem; padding: .42rem 1.1rem;
    text-decoration: none; transition: background .2s;
    font-weight: 600;
}
.btn-redes:hover { background: rgba(255,255,255,.16); }

/* ==============================
   FOOTER
============================== */
footer { background: var(--azul); color: #94a3b8; padding-top: 2.5rem; }
.footer-brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.55rem; color: #fff;
}
.footer-tagline { font-size: .75rem; color: #475569; margin-top: .1rem; }
.footer-heading {
    font-size: .68rem; letter-spacing: .12em;
    text-transform: uppercase; color: #60a5fa;
    margin-bottom: .7rem; font-weight: 700;
}
footer a { color: #93c5fd; text-decoration: none; }
footer a:hover { color: #fff; }
.footer-city-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; padding: .6rem .85rem; margin-bottom: .5rem;
}
.footer-city-name { font-size: .78rem; font-weight: 700; color: #e0e7ff; }
.footer-city-tel { font-size: .85rem; color: #60a5fa; font-weight: 700; }
.footer-wa-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.2);
    border-radius: 999px; font-size: .7rem;
    padding: .15rem .5rem; color: #4ade80; text-decoration: none;
}
.social-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: inline-flex; align-items: center; justify-content: center;
    color: #93c5fd; font-size: 1.1rem;
    transition: all .2s; text-decoration: none;
}
.social-icon:hover { background: var(--acento); color: #fff; transform: translateY(-2px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: .75rem 0; margin-top: 1.5rem;
    font-size: .75rem; color: #475569;
}

/* ==============================
   FLOATING WHATSAPP
============================== */
.whatsapp-float {
    position: fixed; right: 18px; bottom: 18px;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.28);
    z-index: 2000; transition: transform .18s, background .18s;
}
.whatsapp-float:hover { background: #1ebe5c; transform: translateY(-3px) scale(1.05); color: #fff; }

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 991.98px) {
    .hero-carousel .carousel-item img { height: 380px; }
    .hero-title { font-size: 1.9rem; }
}
@media (max-width: 767.98px) {
    .hero-carousel .carousel-item img { height: 310px; }
    .hero-title { font-size: 1.5rem; }
    .search-row-wrap { flex-direction: column; }
    .search-row-wrap .search-group { width: 100%; }
    .search-row-wrap .btn-buscar { width: 100%; justify-content: center; }
}
@media (max-width: 575.98px) {
    .hero-carousel .carousel-item img { height: 260px; }
    .hero-title { font-size: 1.3rem; }
    .hero-desc { display: none; }
}
