body {
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
  height: 100%;
}
h1,h2,h3,h4,h5 {
  font-family: "Jost", sans-serif;

}
.bg-dark{
  background-color: #000!important;
}
/*MENU*/
/* NAV oculto correctamente */
#navbar-container {
  position: fixed;
  top: -120px; /* lo sacamos de la vista */
  left: 0;
  width: 100%;
  z-index: 1030;

  opacity: 0;
  transition: top 0.4s ease, opacity 0.4s ease;
}

/* NAV visible */
#navbar-container.nav-visible {
  top: 0;
  opacity: 1;
}
.navbar-brand img {
  height: 50px;
  width: auto;
}
.navbar {
  transition: background .3s ease, padding .3s ease;
}
.navbar-toggler{
  border:none;
}

.navbar.on-scroll {
  background: #000 !important;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ===== OFFCANVAS PERSONALIZADO ===== */

.custom-offcanvas {
  width: 50% !important;
  padding: 60px;
  background: #f2f2f2;
  border: 0;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}

@media (max-width: 992px) {
  .custom-offcanvas {
    width: 100% !important;
  }
}

.offcanvas-backdrop.show {
  backdrop-filter: blur(4px);
}

/* Labels */
.menu-label {
  font-size: .7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
  display: block;
  margin-bottom: 30px;
}

/* Links principales */
.menu-link {
  display: block;
  font-family: "Jost", sans-serif;
  font-size: 2rem;
  font-weight: 300;
  text-decoration: none;
  color: #999;
  margin-bottom: 15px;
  transition: .3s ease;
}

.menu-link:hover,
.menu-link.active {
  color: #000;
}

/* Sub links */
.sub-link {
  display: block;
  font-size: 1rem;
  color: #444;
  text-decoration: none;
  margin-bottom: 12px;
  transition: .3s ease;
}

.sub-link:hover {
  color: #000;
}

/* Social */
.social-icon {
  color: #fff;
  font-size: 16px;
  margin-left: 20px;
  opacity: 0.6;
  transition: all .3s ease;
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* SUBMENUS */

.submenu{
  display:none;
  animation: fadeMenu .3s ease;
  }
  
  .submenu.active{
  display:block;
  }
  
  @keyframes fadeMenu{
  from{
  opacity:0;
  transform:translateX(10px);
  }
  to{
  opacity:1;
  transform:translateX(0);
  }
  }

  
/* HERO */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url('../img/slide-bg.webp') center/cover no-repeat;
  color: white;
}
.hero-logo {
  width: 30%;
  height: auto;
}
@media (max-width: 767px) {
  .hero-logo{
    width:70%;
  }
}
.hero-title {
  font-family: "Jost", sans-serif;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.2;
}
.hero .btn{
  --bs-btn-border-radius:0 ;
  --bs-btn-font-size:0.8rem ;
  font-weight: 500;
  letter-spacing: 3px;
  border: 2px solid;
}


/* SECTIONS */
.section-dark {
  background: #000;
  padding: 120px 0;
}

.section-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: 3px;
  color:#666666;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2rem;
  max-width: 700px;
}
.section-text {
  opacity: .6;
  font-size:0.85rem;
}
.section-img {
  width: 100% !important;
  padding: auto;
}

/* ---------- SECCIÓN SUPERIOR E INFERIOR ---------- */
.top-section, .bottom-section {
  padding: 100px 0;
  text-align: center;
}

.split-link {
  position: relative;
  display: block;
  min-height: 100vh;
  overflow: hidden;
  color: white;
  text-decoration: none;
}

/* Capa de imagen */
.split-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.8s ease;
}

/* Overlay */
.split-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
  transition: 0.4s ease;
}

/* Zoom SOLO a la imagen */
.split-link:hover .split-bg {
  transform: scale(1.1);
}

/* Overlay más oscuro */
.split-link:hover::before {
  background: rgba(0,0,0,0.6);
}

/* Contenido encima */
.split-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Mobile */
@media (max-width: 767px) {
  .split-link {
    min-height: 50vh;
  }
}


/* ===== PORTFOLIO ===== */

.section-portfolio {
  background: #f5f5f5;
  padding: 120px 0;
}

.portfolio-title {
  font-family: "Jost", sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 15px;
}

.portfolio-img {
  
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .6s ease;
}

.portfolio-card {
  overflow: hidden;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-text {
  font-size: 0.85rem;
  opacity: .7;
  margin-top: 8px;
}


/* CTA */

.parallax-img{
background:linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)), url('../img/cta-bg.webp');
background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 500px;
    position: relative;
  }

/* FOOTER */
.footer-section {
  background: #000;
  padding: 40px 0;
  color: #fff;
  position: relative;
}

.footer-section p {
  font-size: 14px;
  opacity: 0.7;
}

/* LOGO CENTRAL */
.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* REDES */
.social-icon {
  color: #fff;
  font-size: 18px;
  margin-left: 15px;
  opacity: 0.7;
  transition: 0.3s ease;
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .footer-section {
    padding: 30px 0;
  }

  .footer-logo {
    max-height: 60px;
  }

  .footer-right {
    margin-top: 10px;
  }
}


/* ANIMACIONES */
.fade-in {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1),
              transform .9s cubic-bezier(.16,1,.3,1);
}


.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .section-text {
    opacity: .6;
    font-size:1rem;
  }
  .section-img {
    width: 100%;
  height: auto;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .section-dark {
    padding: 90px 0;
  }
}
@media (max-width: 991px) {
  .parallax-img {
    background-attachment: scroll;
  }
}


/* PORFOLIO SECTION */

/* ===== PORTFOLIO PAGE ===== */

.portfolio-header {
  padding-top: 160px;
  padding-bottom: 60px;
}

.portfolio-title {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: .02em;
}

/* GRID */

.portfolio-grid {
  padding-bottom: 120px;
}

/* CARD */

.project-card {
  transition: all .25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
a .arrow-btn  {
  color: #000;
  text-decoration: none !important;
}
a .arrow.btn :hover{
  color: #fff;
  text-decoration: none !important; 
}
.arrow-btn:hover {
  background: #000;
  color: #fff;
  transition: all .2s ease;

}
.arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
    flex-shrink: 0;
  margin-left: 10px;
}

.project-card:hover .arrow-btn {
  background: #000;
  color: #fff;
}
.card-text-container {
  flex: 1;
  min-width: 0; /* ESTO SOLUCIONA EL BUG */
}


/* evita que el texto rompa el layout */
.card-title {
  font-size: 1rem;
  line-height: 1.2;
  overflow: hidden;

  /* estándar moderno (todavía experimental en algunos navegadores) */
  display: box;
  line-clamp: 2;

  /* fallback real que usan todos */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .portfolio-header {
    padding-top: 130px;
  }

  .project-img img {
    height: 240px;
  }
}
/* FIN PORFOLIO */

/* BUSCADOR DE PROYECTOS */

.projects-toolbar{

display:flex;
flex-wrap:wrap;

gap:20px;
align-items:center;

margin:40px 0;

}

/* SEARCH */
/* CONTENEDOR */

.search-box{
  position:relative;
  display:flex;
  align-items:center;
}

/* INPUT */

.search-box input{

  width:420px;
  max-width:100%;

  padding:14px 55px 14px 20px; /* espacio para icono */

  border-radius:40px;
  border:none;

  background:#f2f2f2;

  font-size:15px;
}

/* ICONO */

.search-icon{

  position:absolute;
  right:6px;

  width:38px;
  height:38px;

  border-radius:50%;

  background:#000;
  color:#fff;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:14px;

  pointer-events:none; /* importante: no bloquea el input */
}
.search-box input{

width:420px;
max-width:100%;

padding:14px 20px;

border-radius:40px;
border:none;

background:#f2f2f2;

font-size:15px;

}

/* FILTER BUTTON */

.filter-btn{

display:flex;
align-items:center;
gap:10px;

padding:12px 20px;

border-radius:30px;
border:2px solid #000;

background:white;

font-size:14px;

cursor:pointer;

}

/* ARROW */

.arrow{

width:8px;
height:8px;

border-right:2px solid #000;
border-bottom:2px solid #000;

transform:rotate(45deg);

transition:0.3s;

}

.filter-btn.active .arrow{

transform:rotate(-135deg);

}

/* DROPDOWN MENU */

.filter-dropdown{

position:relative;

}

.filter-menu{
display:none;
position:absolute;
top:100%;
left:0;
background:white;
border-radius:10px;
box-shadow:0 15px 40px rgba(0,0,0,0.15);
padding:10px 0;
min-width:220px;
z-index:2000;
}
.filter-dropdown.open .filter-menu{
display:block;
}


.filter-menu.show{

opacity:1;
pointer-events:auto;
display:block;
transform:translateY(0);

}

.filter-menu div{
padding:10px 18px;
cursor:pointer;
transition:background .2s;
}

.filter-menu div:hover{
background:#f3f3f3;
}

/* SORT */
.sort-controls{
    display:flex;
    gap:10px;
}

.sort-btn{
    display:flex;
    align-items:center;
    gap:8px;

    padding:8px 16px;
    border-radius:30px;

    border:1px solid #ddd;
    background:white;

    font-size:14px;
    font-weight:500;

    cursor:pointer;

    transition:all .25s ease;
}

.sort-btn:hover{
    background:#f5f5f5;
}

.sort-btn.active{
    background:#111;
    color:white;
    border-color:#111;
}

.sort-btn i{
    font-size:12px;
    transition:transform .25s ease;
}

.sort-btn.asc i{
    transform:rotate(180deg);
}
/* GRID */

.projects-grid{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(320px,1fr));

gap:30px;

}

/* animación suave al filtrar */

.portfolio-grid .col-lg-4{

transition: 
opacity .35s ease,
transform .35s ease;

}

.project-hidden{

opacity:0;
transform:scale(.95);

pointer-events:none;

display:none !important;

}

/*  MODAL DE CARRUSEL DE PROYECTO */ 

.modal-content{
background:black;
}

.carousel-item img{
height:80vh;
object-fit:cover;
}
.modal-close-btn{
position:absolute;
top:20px;
right:25px;
z-index:1055;

background:rgba(0,0,0,0.6);
border:none;
color:white;

width:42px;
height:42px;

border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

font-size:20px;
cursor:pointer;

transition:.25s;
}

.modal-close-btn:hover{
background:white;
color:black;
}
.project-info-overlay{
position:absolute;
bottom:30px;
left:40px;
z-index:1055;

color:white;
}

.project-info-overlay h4{
font-size:22px;
font-weight:500;
margin-bottom:6px;
}

.carousel-counter{
font-size:14px;
opacity:0.8;
}

#projectModal img{
height:85vh;
object-fit:contain;
background:black;
}

/* PROYECTO INDIVIDUAL */

.project-nav{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: #fff;
  z-index: 900; /* por encima del contenido */
  margin-top:76px;
}

/* Mantiene alineado al grid */
.project-navbar .container {
  max-width: 1320px;
}

/* Altura del navbar */
.project-navbar .breadcrumb {
  margin: 0;
  padding: 14px 0;
}
.project-breadcrumb{
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#999;
}

.breadcrumb-link{
  color:#999;
  text-decoration:none;
}

.breadcrumb-link:hover{
  color:#fff;
}

.breadcrumb-separator{
  margin:0 10px;
  color:#ccc;
}

.breadcrumb-current{
  color:#fff;
  font-weight:500;
}


@media (max-width: 768px) {
  .project-breadcrumb {
    font-size: 12px;
    letter-spacing: .05em;
  }
}
.project-nav {
  animation: fadeIn .6s ease forwards;
}

@keyframes fadeIn {
  from { opacity:0; transform:translateY(-10px); }
  to { opacity:1; transform:translateY(0); }
}

/* HERO PROYECTO */

.project-hero{
  position:relative;
  height:80vh;
  overflow:hidden;
}

.project-hero img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.project-title{
  position:absolute;
  bottom:40px;
  left:60px;
  color:white;
  font-family:Jost,sans-serif;
  font-size:2.5rem;
  font-weight:300;
}

/* TAG */

.project-tag{
  position:absolute;
  bottom:40px;
  right:60px;
  background:rgba(255,255,255,.9);
  padding:8px 18px;
  border-radius:30px;
  font-size:.8rem;
}

/* TEXTO */

.project-text{
  max-width:760px;
  margin:auto;
  padding:80px 20px;
  line-height:1.8;
  color:#444;
  font-size:.95rem;
}

/* GALERIA */

.project-gallery{
  padding:60px 0;
}

.gallery-img{
  width:100%;
  height:520px;
  object-fit:cover;
}

/* FOOTER SPACING */

.footer-space{
  margin-top:80px;
}

/* MOBILE */

@media(max-width:768px){

.project-title{
  left:20px;
  font-size:1.8rem;
}

.project-tag{
  right:20px;
}

.gallery-img{
  height:300px;
}

}

/*----------*/
/* CONTACTO */
/*----------*/
/* ========================= */
/* HERO CONTACTO */
/* ========================= */

.contact-hero{
position:relative;
height:45vh;
min-height:320px;
overflow:hidden;
display:flex;
align-items:flex-end;
}

.hero-img{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
object-fit:cover;
z-index:1;
}

.hero-overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
z-index:2;
}

.hero-content{
position:relative;
z-index:3;
color:white;
padding-bottom:40px;
}

.hero-content h1{
font-family:'Jost', sans-serif;
font-size:52px;
font-weight:500;
letter-spacing:-1px;
margin-bottom:6px;
}

.hero-content p{
font-size:16px;
opacity:.85;
margin:0;
}


/* ========================= */
/* SECCION CONTACTO */
/* ========================= */

.contact-section{
padding-top:80px;
padding-bottom:60px;
}

.contact-info h3{
font-size:30px;
font-weight:500;
margin-bottom:40px;
letter-spacing:-0.5px;
}


/* ========================= */
/* ITEMS CONTACTO */
/* ========================= */

.contact-item{
display:flex;
gap:18px;
align-items:flex-start;
margin-bottom:28px;
}

.contact-item i{
width:42px;
height:42px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
background:#f3f3f3;
font-size:16px;
color:#333;
flex-shrink:0;
}

.contact-item strong{
display:block;
font-size:14px;
letter-spacing:.3px;
margin-bottom:3px;
}

.contact-item p{
margin:0;
font-size:15px;
color:#666;
line-height:1.5;
}


/* ========================= */
/* FORMULARIO */
/* ========================= */

.contact-form{
background:white;
border-radius:14px;
box-shadow:0 15px 40px rgba(0,0,0,0.05);
padding: 50px;
}

.contact-form h3{
font-size:26px;
font-weight:500;
margin-bottom:30px;
}


/* ========================= */
/* INPUTS */
/* ========================= */

.contact-form .form-control{
border:1px solid #e5e5e5;
border-radius:8px;
padding:14px 14px;
font-size:15px;
transition:all .25s ease;
box-shadow:none;
}

.contact-form .form-control:focus{
border-color:#111;
box-shadow:none;
}

.contact-form textarea{
resize:none;
}


/* ========================= */
/* BOTON */
/* ========================= */

.btn-default{
background:#111;
color:white;
border:none;
padding:12px 28px;
border-radius:40px;
font-size:14px;
letter-spacing:.4px;
transition:all .25s ease;
}

.btn-default:hover{
background:#333;
transform:translateY(-1px);
}

.contact-form .form-status {
display:none;
width:100%;
margin-top:20px;
padding:14px 18px;
border-radius:10px;
font-size:15px;
line-height:1.4;
font-weight:500;
}

.contact-form .form-status.is-visible {
display:block;
}

.contact-form .form-status.is-success {
background-color:#dff5e3;
color:#166534;
border:1px solid #b7e4c1;
}

.contact-form .form-status.is-error {
background-color:#fde8e8;
color:#991b1b;
border:1px solid #f5b5b5;
}


/* ========================= */
/* MAPA */
/* ========================= */

.map-section{
margin-top:80px;
}

.map-section iframe{
width:100%;
height:420px;
display:block;
border:0;
}


/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width:992px){

.contact-form{
padding:35px;
}

.hero-content h1{
font-size:40px;
}

.contact-section{
padding-top:60px;
}

}

@media (max-width:768px){

.contact-item{
gap:14px;
}

.hero-content h1{
font-size:34px;
}

.map-section iframe{
height:320px;
}

}
