/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ======================
   NAVBAR
====================== */

header {
  width: 100%;
}

.container-fluid {
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.navbar img {
  height: 80px;
  width: 280px;
  margin: 10px 30px;
}

.nav-item {
  font-size: 20px;
  padding: 10px;
}

.navbar-nav .nav-link {
  position: relative;
  color: #000;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar-nav .nav-link:hover {
  color: #000000;
}

.navbar-brand .logo {
  transition: transform 0.3s ease;
}

.navbar-brand .logo:hover {
  transform: scale(1.08);
}

/* Navbar mobile */
@media (max-width: 768px) {
  .navbar img {
    height: 35px;
    width: 100px;
    margin: 0 5px;
  }

  .nav-item {
    font-size: 12px;
    padding: 0;
  }
}

/* ======================
   PROYECTOS
====================== */
.hero-proyectos {
  min-height: 45vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url("../Media/fondos/fondotit.jpg") center / cover no-repeat;
}

.hero-content {
  max-width: 1400px;
  padding: 0 0px;
  margin-left: 8%;
  color: #fff;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #e0e0e0;
}

main {
    min-height: 100vh;
background: #272727;
padding-top: 80px; /* evita que el navbar tape contenido */
}

.object-fit-cover {
  object-fit: cover;
}

/* Card proyecto */
/* CONTENEDOR PROYECTO */
.project-card {
    max-width: 1500px;
  margin: 0 auto 10px;
  display: flex;
  gap: 40px;
  border: 1px solid #2c2c2c;
  align-items: center;
  background: rgba(0,0,0,0.55);
  padding: 25px;
  border-radius: 14px;

  transition: transform 0.3s ease;
}

/* TEXTO */
.project-text {
  flex: 1;
  color: #e6e6e6;
}

.project-text h1 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 5px;
  border-left: 5px solid #c7c7c7;
  padding-left: 12px;
}

.project-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #d4d4d4;
  margin-bottom: 12px;
}

/* IMAGEN */
.project-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.project-img img {
  width: 100%;
  max-width: 520px !important;
  border-radius: 5px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}

/* Hover SOLO imagen */
.project-card:hover {
  transform: scale(1.01);
   border-color: #aaaaaa;
}

.linea{
  width: 100%;
  background-color: #383838;
  height: 20px;
}

/* CONTENEDOR DEL CARRUSEL */
.carousel-wrapper {
  position: relative;
  height: 285px;        /* 🔹 altura del preview */
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
}

/* CARRUSEL OCUPA TODO */
.carousel,
.carousel-inner,
.carousel-item,
.carousel-item img {
  height: 100%;
}

/* IMAGEN PROPORCIONAL */
.carousel-item img {
  object-fit: cover;
}

/* TEXTO OVERLAY */
.carousel-hint {
  z-index: 5;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* SOLO APARECE EL TEXTO */
.carousel-wrapper:hover .carousel-hint {
  opacity: 1;
}

/* MODAL */
.modal-content {
  max-height: 90vh;
}

/* CARRUSEL DEL MODAL */
#carouselModalInner,
#carouselModalInner .carousel-inner,
#carouselModalInner .carousel-item {
  height: 80vh;
}

/* IMAGEN GRANDE */
#carouselModalInner img {
  height: 100%;
  width: 100%;
  object-fit: contain; /* 🔥 NO se corta, NO se deforma */
  background-color: #000;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(1);
  width: 3rem;
  height: 3rem;
}
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ======================
   FOOTER
====================== */

footer {
  background: linear-gradient(180deg, #4a4a4a 0%, #2e2e2e 100%);
  color: #fff;
  padding: 50px 20px 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.footer-item h4 {
  font-size: 20px;
  margin-bottom: 12px;
  position: relative;
}

.footer-item h4::after {
  content: "";
  width: 70px;
  height: 3px;
  background-color: #fff;
  display: block;
  margin: 6px auto 0;
  border-radius: 2px;
}
.btn-banner {
  display: inline-block;
  margin-top: 15px;
  background-color: #636363a8;
  color: #fff;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  border: 2px solid #f3f3f3;
  transition: all 0.3s ease;
}

.btn-banner:hover {
  color: #000;
  background-color: #ffffff;
  border-color: #d47100;
  box-shadow: 0 0 15px #d47100;
  transform: scale(1.08);
}

.info p {
  margin: 10px 0;
  font-size: 16px;
}

.redes img {
  width: 60px;
  margin: 8px;
  transition: transform 0.25s ease;
}

.redes img:hover {
  transform: scale(1.2);
}

.mapa iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: 10px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
}

.footer-bottom hr {
  border-top: 1px solid #777;
  width: 80%;
  margin: 0 auto 10px;
}

.footer-bottom a {
  color: #00bcd4;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Footer responsive */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .redes img {
    width: 35px;
  }
}
@media (max-width: 992px) {
  .project-card {
    flex-direction: column;
    gap: 25px;
    padding: 20px;
  }

  .project-text h1 {
    font-size: 1.6rem;
    letter-spacing: 3px;
  }

  .project-text p {
    font-size: 1rem;
  }

  .project-img img {
    max-width: 100% !important;
  }
}
@media (max-width: 576px) {
  .project-card {
    padding: 16px;
    border-radius: 10px;
  }

  .project-text {
    text-align: center;
  }

  .project-text h1 {
    font-size: 1.3rem;
    letter-spacing: 2px;
    border-left: none;
    border-bottom: 3px solid #c7c7c7;
    padding-left: 0;
    padding-bottom: 8px;
  }

  .project-text p {
    font-size: 0.95rem;
  }
}
@media (max-width: 768px) {
  .hero-proyectos {
    margin-top: -30px;
    min-height: 30vh;
  }

  .hero-content {
    margin-left: 0;
    padding: 0 20px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 15px;
  }
}
@media (max-width: 576px) {
  .carousel-wrapper {
    height: 200px;
  }

  .carousel-hint {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }
}
@media (max-width: 576px) {
  #carouselModalInner,
  #carouselModalInner .carousel-item {
    height: 65vh;
  }
}
@media (max-width: 768px) {
  main {
    padding-top: 60px;
  }
}
