/*Vinculación tipografía externa*/
@font-face {
    font-family: "Amplitude-Comp-Bold";
    src: url(../fonts/Amplitude-Comp-Bold.ttf);
}

@font-face {
    font-family: "Inter-Regular";
    src: url(../fonts/Inter-Regular.ttf);
}

@font-face {
    font-family: "Inter-Semibold";
    src: url(../fonts/Inter-SemiBold.ttf);
}


/*Estilos del ejercicio*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: #FFFFFE;
    font-family: "Inter-Regular", sans-serif;
    line-height: 1.5;
}

/*Estilos del header*/
header {
    background-color: #222222;
}

.navbar {
    min-height: 80px;
}

.navbar-brand {
    font-family: "Amplitude-Comp-Bold", Verdana, Geneva, Tahoma, sans-serif;
    font-size: 25px;
    color: #B9D6BA;
}

.nav-link {
    color: #FFFFFE;
    font-size: 17px;
    font-weight: 500;
    margin-left: 2rem;
}

.nav-link:hover {
    color: #B9D6BA;
}


/* Animación del logo */
.navbar-brand {
    opacity: 0;
    filter: blur(10px);
    animation: foco 2.5s ease-out forwards;
}

@keyframes foco {
    to {
        opacity: 1;
        filter: blur(0);
    }
}


/*Estilos de la sección principal*/

.proyecto {
  margin-top: 100px;
  margin-bottom: 100px;
}

/* Intro */
.proyecto-intro h1 {
  font-family: "Amplitude-Comp-Bold", Verdana, Geneva, Tahoma, sans-serif;
  font-size: 56px;
  color: #222222;
  margin-bottom: 10px;
}

.proyecto-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #6E746F;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Descripción y logo */
.proyecto-logo {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: flex-start;
  margin-bottom: 85px;
}

.proyecto-texto p {
  font-size: 16px;
  line-height: 1.7;
  color: #6E746F;
  max-width: 600px;
}

/* Logo */
.proyecto-logo img {
  width: 80%;
  max-width: 220px;
  margin-top: -95px;
}

/* Bloques */
.proyecto-bloque {
  margin-bottom: 90px;
}

.proyecto-bloque h2 {
  font-family: "Amplitude-Comp-Bold", Verdana, Geneva, Tahoma, sans-serif;
  font-size: 32px;
  color: #222222;
  margin-bottom: 40px;
}

/* Grids */
.grid {
  display: grid;
  gap: 30px;
}

/* Identidad visual */
.grid.tres {
  grid-template-columns: repeat(3, 1fr);
}

.grid.tres img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Galería */
.grid.ocho {
  grid-template-columns: repeat(4, 1fr);
}

.grid.ocho img {
  aspect-ratio: 6 / 4;
  object-fit: cover;
}

/* Imágenes */
.grid img {
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.grid img:hover {
  transform: scale(1.03);
}

/* Banner */
.proyecto-banner img {
  width: 100%;
  border-radius: 6px;
}


/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}


/* Dots */
.carousel-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  background: #B9D6BA;
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {

  /* Aire lateral */
  .container {
    padding-left: 40px;
    padding-right: 40px;
    margin-top: 10px;
  }

  /* Centrado */
  .proyecto-intro,
  .proyecto-bloque,
  .proyecto-texto {
    text-align: center;
  }

  .proyecto-meta {
    justify-content: center;
  }

  /* Logo arriba */
  .proyecto-logo {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
  }

  .proyecto-logo img {
    order: -1;
    margin-top: 0;
  }

  /* Carrusel */
  .identidad-carousel {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 10px;
  }

  .identidad-carousel img {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .identidad-carousel::-webkit-scrollbar {
    display: none;
  }

  .carousel-dots {
    display: flex;
  }

  /* Galería */
  .grid.ocho {
    grid-template-columns: 1fr;
  }

  .proyecto-banner {
    margin-top: -50px; /* ⬅️ este valor */
  }
}


/* Estilos del Footer */
.footer-custom {
    background-color: #B3C4B7;
}

/* Fila principal */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Item */
.footer-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icono */
.icon-circle {
    width: 42px;
    height: 42px;
    background-color: #FFFFFE;
    color: #B3C4B7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    flex-shrink: 0;
}

.icon-circle:hover {
    background-color: #222222;
    color: #B3C4B7;
}

/* Texto */
.icon-label {
    font-size: 14px;
    color: #FFFFFE;
    white-space: nowrap;
}

/* Responsive Móvil */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;  
    }

    .icon-label {
        white-space: normal;
        text-align: center;
    }

    .footer-custom{
        margin-top: -20px;
    }
}