/* Colores de marca */
:root {
    --naranja: #E46F32;
    --azul: #1C2F5D;
    --azul-claro: #6B7A99;
}

/* Generales */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--azul);
}

/* Navbar */
.navbar {
    background: var(--azul);
}

.nav-link, .navbar-brand {
    color: #1C2F5D !important;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--azul);
    color: white;
    padding: 40px 0;
}

/* ========================= */
/* HERO MODERNO Y PROFESIONAL */
/* ========================= */

.hero-mouilleron {
    height: 100vh;
    background: 
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)),
        url("../img/edificio_mouilleron.jpeg") center center / cover no-repeat;
    position: relative;
    /*padding-top: 20px;  por si el menú es fixed */
}

.hero-mouilleron h1 {
    text-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

.hero-mouilleron p {
    text-shadow: 0 3px 15px rgba(0,0,0,0.5);
}

.btn-naranja {
    background-color: #ff7a00;
    border: none;
    color: white;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn-naranja:hover {
    background-color: #ff8f26;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}


/* Botones 
.btn-naranja {
    background: var(--naranja);
    color: white;
}
.btn-naranja:hover {
    background: #c65d28;
}*/

/* Banner */
.hero {
    background: url('img/banner.jpg') center/cover no-repeat;
    padding: 180px 0;
    color: white;
}

/* Card propiedades */
.card-prop {
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
/* Navbar moderna con glass effect */
.navbar {
   /* background: rgba(28, 47, 93, 0.75) !important; /* azul del logo con opacidad */
    background: rgba(255, 255, 255) !important; /* azul del logo con opacidad */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s ease;
}

/* Hover moderno en los enlaces */
.nav-link {
    position: relative;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #E46F32; /* naranja del logo */
    left: 0;
    bottom: 0;
    transition: width .3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Efecto del menú al scrollear */
.navbar.scrolled {
    /*background: rgba(28, 47, 93, 0.95) !important;*/
	background: rgba(255, 255, 255, 0.90) !important;
}
/* LOGO QUE SE DIBUJA */
.logo-stroke {
    width: 90px;
    animation: stroke 2s ease forwards, fillLogo 1s ease 2s forwards;
    stroke: #E46F32;   /* Naranja del logo */
    fill: transparent;
}

@keyframes stroke {
    0% {
        stroke-dasharray: 500;
        stroke-dashoffset: 500;
    }
    100% {
        stroke-dasharray: 500;
        stroke-dashoffset: 0;
    }
}

@keyframes fillLogo {
    0% { fill: transparent; }
    100% { fill: #E46F32; }
}

/* EFECTO CLICK 3D */
.nav-link:active {
    transform: scale(0.92) translateY(1px);
    transition: transform 0.05s;
}

/* efectos logo 1*/
.navbar-brand img {
    opacity: 0;
    transform: scale(0.85);
    animation: logoIn 1s ease-out forwards;
}

@keyframes logoIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* efectos logo 2*/

/* NAVBAR con glassmorphism */
.navbar {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Logo con brillo suave */
.navbar-brand img {
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: drop-shadow(0px 0px 6px rgba(255, 255, 255, 0.15));
}

/* Hover moderno */
.navbar-brand img:hover {
    transform: scale(1.06);
    filter: drop-shadow(0px 0px 12px rgba(255, 255, 255, 0.25));
}





/* ================================
   NAVBAR GLOBAL
================================ */

:root {
  --navbar-height: 170px;
  --navbar-height-scrolled: 100px;
}

body {
  padding-top: var(--navbar-height);
}

/* Navbar base */
.main-navbar {
  transition: all 0.35s ease;
  padding: 20px 0;
  background-color: rgba(0,0,0,.85);
}

/* Logo */
.main-navbar img {
  height: 150px;
  transition: all 0.35s ease;
}

/* Navbar al hacer scroll */
.main-navbar.scrolled {
  padding: 5px 0;
}

.main-navbar.scrolled img {
  height: 90px;
}

/* Hero / secciones principales */
.hero-quienes,
.hero {
  margin-top: calc(var(--navbar-height) * -1);
  padding-top: var(--navbar-height);
}

/* Responsive */
@media (max-width: 991px) {
  :root {
    --navbar-height: 120px;
    --navbar-height-scrolled: 80px;
  }

  .main-navbar img {
    height: 110px;
  }
}




/* ================================
   LINKS DEL MENU
================================ */

.navbar-nav .nav-link {
  position: relative;
  color: rgba(255,255,255,.85);
  padding: 8px 12px;
  transition: color .3s ease;
}

/* Hover */
.navbar-nav .nav-link:hover {
  color: #e16231;
}

/* Línea animada */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #e16231;
  transition: all .3s ease;
  transform: translateX(-50%);
}

/* Hover anima línea */
.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* ACTIVO */
.navbar-nav .nav-link.active {
  color: #e16231;
  font-weight: 500;
}

.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* ================================
   BUSCADOR FLOTANTE PROPIEDADES
================================ */

.search-wrapper {
  position: relative;
  z-index: 100;
}

.search-overlay {
  position: sticky;
  top: 120px; /* navbar compacta */
  margin: -70px auto 40px auto; /* SUBE sobre el hero */
  width: 75%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 20px 45px rgba(0,0,0,.18);
  transition: all .3s ease;
}

/* Inputs más finos */
.search-overlay .form-select,
.search-overlay .btn {
  height: 42px;
  border-radius: 10px;
}

/* Botón */
.search-overlay .btn {
  font-weight: 500;
  letter-spacing: .5px;
}

/* Sticky activo */
.search-overlay.is-sticky {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .search-overlay {
    width: 95%;
    margin: -50px auto 30px auto;
    top: 100px;
  }
}

.social-link {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    color: #caa56a; /* dorado elegante */
}

.carousel-item img {
    height: 450px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 280px;
    }
}

.carousel-img {
    height: 450px;
    object-fit: cover;
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .carousel-img {
        height: 280px;
    }
}

/* Miniaturas */
.miniaturas img {
    height: 70px;
    width: 100px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    opacity: 0.7;
    border: 2px solid transparent;
    transition: 0.3s;
}

.miniaturas img:hover,
.miniaturas img.active {
    opacity: 1;
    border-color: #caa56a;
}

/* Badge */
.badge-operacion {
    position: absolute;
    z-index: 10;
    margin: 15px;
    padding: 8px 14px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
}

#carouselPropiedad {
    position: relative;
}

.carousel-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .carousel-img {
        height: 280px;
    }
}
.badge-operacion {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    padding: 8px 14px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
}

#carouselPropiedad,
#carouselPropiedad .carousel-inner,
#carouselPropiedad .carousel-item {
    height: 450px;
}

#carouselPropiedad .carousel-item img {
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    #carouselPropiedad,
    #carouselPropiedad .carousel-inner,
    #carouselPropiedad .carousel-item {
        height: 280px;
    }
}

.miniaturas {
    position: static;      /* ⬅️ clave */
    margin-top: 12px;
    flex-wrap: wrap;
}

.miniaturas img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.miniaturas img.active,
.miniaturas img:hover {
    opacity: 1;
    border: 2px solid #e16231;
}

.badge-operacion {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #e16231; /* naranja */
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
