/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos generales */
body {
  
  font-family: "Helvetica Neue" !important;
  color: #333;
  line-height: 1.6;
  letter-spacing: 0.02em;
  background-color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: underline;
  font-size: 12px;
}

p {
  font-size: 16px;
  color: #2c2c2c;
  text-align: left;
  margin: 2rem auto;
  max-width: 800px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* Contenedor principal */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: relative;
  padding: 20px 0;
  text-align: center;
  margin-right: 30px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
}

.logo {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.2em;
  padding: 20px 0;
}

/* Estilos de navegación principal */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #000;
  font-size: 28px;
  cursor: pointer;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-nav {
  display: flex;
  list-style: none;
  justify-content: center;
  width: 100%;
}

.main-nav li {
  margin: 0 50px;
}

.main-nav a {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 0;
  display: block;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #999;
}

/* Estilos del submenú */
.main-nav li .submenu-container {
  position: absolute;
  top: 100%;
  left: 0%;
  width: 100vw;
  background-color: #000;
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 100;
}

.main-nav li:hover .submenu-container {
  opacity: 1;
  visibility: visible;
}

.back-button {
  display: none;
}

.submenu {
  display: flex;
  flex-direction: column;
  list-style: none;
  align-items: center;
}

.submenu li {
  margin: 8px 0;
  position: relative;
}

.submenu a {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.05em;
  color: #fff;
  text-align: center;
}

.submenu a:hover {
  color: #ccc;
}

.main-nav .submenu li {
  font-size: 1.2rem;
  padding: 8px 12px;
  line-height: 1.4;
}

/* Redes sociales */
.social-icons {
  display: flex;
  gap: 30px;
}

.social-icons a {
  color: rgb(0, 0, 0);
  font-size: 30px;
  text-decoration: none;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #f39c12;
}

/* Secciones */
.section {
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero image */
.hero-image {
  width: 80%;
  margin-bottom: 30px;
  border-radius: 15px;
}

.hero-image2 {
  width: 50%;
  height: auto;
  max-width: 500px;
  margin-bottom: 30px;
  object-fit: cover;
  object-position: center center;
}

/* Texto */
.text-content {
  max-width: 600px;
  text-align: center;
  margin-bottom: 30px;
}

.title {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 15px;
}

.description {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

/* Galería de miniaturas */
.thumbnail-gallery {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
}

.thumbnail {
  width: 15%;
}

/* Sección beige */
.beige-section {
  background-color: #f8f0e3;
  padding: 40px 20px;
  width: 100%;
  margin-bottom: 60px;
}

.featured-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto;
}

.featured-image {
  width: 30%;
  border-radius: 5px;
  margin-right: 20px;
}

.featured-text {
  text-align: left;
  max-width: 600px;
}

.category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.hero1-image {
  width: 600px;
  height: 600px;
  margin-bottom: 30px;
}

/* Proyectos */
.projects-title {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
  text-align: center;
}

/* Catalogo */
.container1 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
  align-items: center;
  text-align: center;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.collection-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.collection-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
}

.collection-name {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 1rem 0 2rem 0;
}

.divider {
  height: 1px;
  background-color: #d4d4d4;
  width: 100%;
}

.imagen-grande {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.imagen-grande img {
  max-width: 90%;
  max-height: 90%;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.modal-contenido {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 90%;
  max-height: 90%;
  gap: 2rem;
  flex-wrap: wrap;
}

.modal-contenido img {
  max-width: 500px;
  max-height: 80vh;
  object-fit: contain;
}

.descripcion {
  color: white;
  max-width: 400px;
}

#cerrarModal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

#anterior,
#siguiente {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  transform: translateY(-50%);
  user-select: none;
}

#anterior {
  left: 20px;
}

#siguiente {
  right: 20px;
}

.t {
   font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 16px;
  color: #2c2c2c;
  text-align: center;
  margin: 2rem auto;
  max-width: 800px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* Proyectos */
.containers {
  display: flex;
  justify-content: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.site-footer {
  background-color: #111;
  color: #ddd;
  padding: 50px 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-logo .logo-footer {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-column h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column p {
  color: #aaa;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #f39c12;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 3px;
}

.newsletter-form button {
  background-color: #f39c12;
  color: #111;
  border: none;
  padding: 8px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: #fff;
  color: #111;
}

.footer-social {
  margin-top: 20px;
}

.footer-social a {
  color: #ddd;
  font-size: 20px;
  margin-right: 15px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #f39c12;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #333;
  padding-top: 20px;
  color: #666;
  font-size: 12px;
}

.p {
  text-align: center;
  color: white;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    cursor: pointer;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-container {
    width: 100%;
    order: 2;
    display: none;
    flex-direction: column;
    align-items: center;
  }

  .nav-container.active {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .main-nav li {
    margin: 15px 0;
    position: relative;
    width: 100%;
  }

  .social-icons {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    order: 3;
    display: none;
  }

  .social-icons.active {
    display: flex;
  }

  .main-nav li .submenu-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    display: none;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    padding: 20px 0;
  }

  .main-nav li .submenu-container.active {
    display: block;
  }

  .submenu {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .submenu li {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }

  .back-button {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    text-align: left;
    width: 100%;
    padding: 15px 20px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .hero-image {
    width: 100%;
    height: auto;
  }

  .hero-image2 {
    width: 100%;
    height: auto;
  }

  .thumbnail-gallery {
    flex-direction: grid;
    gap: 20px;
  }

  .thumbnail {
    width: 100%;
    max-width: 150px;
  }

  .featured-content {
    flex-direction: column-reverse;
    align-items: center;
  }

  .featured-image {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .featured-text {
    text-align: center;
  }

  .title {
    font-size: 22px;
  }

  .description {
    font-size: 16px;
  }

  p {
    font-size: 1.2rem;
  }

  .container1 h1 {
    font-size: 1.8rem;
  }

  .collection-name {
    font-size: 1rem;
    padding: 0.5rem 0 1rem 0;
  }

  .imagen-grande img {
    max-width: 95%;
    max-height: 80%;
  }

  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .t {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    width: 100%;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
  .imagen-grande {
  
  flex-direction: column; /* Para que la imagen y texto se acomoden verticalmente */
  overflow-y: auto; /* Para poder hacer scroll si el contenido es muy alto en móvil */
  
}
}
