* {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

  font-family: 'Georgia', serif;

}



body {

  background: #f7ebe5;

  color: #3b2f2f;

}



/* NAV */

.nav {

  display: flex;

  justify-content: space-between;
 background-color: #f6f6f6;
  padding: 30px 70px;

}



.nav a {

  margin-left: 20px;

  text-decoration: none;

  color: #3b2f2f;

}

/*AREA DE SLIDER PRINCIPAL*/
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Contenedor full width */
.container-slider {
  width: 100vw;
  margin: 0;
  padding: 0;
}

/* Slider */
.slider-one {
  position: relative;
  width: 100%;
  height: 400px; /* ajusta si deseas */
  overflow: hidden;
}

/* Imágenes */
.slide-one {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

/* Imagen visible */
.slide-one.active-one {
  opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .slider-one {
    height: 250px;
  }
}


/* HERO 

.hero {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

}



.hero img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}*/



.hero-text {

  text-align: center;

  margin: 40px 0;

  font-size: 32px;

}



/* MAIN */

.container {

  display: grid;
  display: flex;

  grid-template-columns: 2fr 1fr;

  gap: 30px;

  padding: 40px 80px;

}



.post {
  justify-content: center;
  display: flex;
  grid-area: auto;
  margin-bottom: 50px;
  align-items: center;
}

.title-post {
  margin-bottom: 5px;
}



.post img {

  min-width: 300px;
  height: 180px;
  object-fit: cover;
  margin-right: 20px;
  border-radius: 10px;
}



/* Popup overlay */
.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease;
}

/* Popup content container */
.popup-content {
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 400px;
  margin: 10% auto;
  padding: 30px 25px;
  text-align: center;
  transform: translateY(-50px);
  opacity: 0;
  transition: all 0.5s ease;
}

/* Show animation */
.popup.show .popup-content {
  transform: translateY(0);
  opacity: 1;
}

/* Close button */
.close-btn {
  color: #555;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #222;
}

/* Heading and paragraph */
.popup-content h2 {
  margin-bottom: 10px;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

.popup-content p {
  font-family: 'Segoe UI', sans-serif;
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Input field */
.popup-content input[type="email"] {
  width: 90%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border-radius: 25px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 1rem;
  transition: 0.3s all;
}

.popup-content input[type="email"]:focus {
  border-color: #070404;
  box-shadow: 0 0 5px rgba(218, 157, 247, 0.3);
}

/* Submit button */
.popup-content button {
  padding: 12px 30px;
  background: #c52bf0;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s all;
}

.popup-content button:hover {
  background: #f2c8f4;
  transform: translateY(-2px);
}

/* Form message */
.form-message {
  margin-top: 15px;
  color: green;
  font-size: 0.9rem;
}
/* INSTAGRAM */

.hero-slider {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  border-radius: 22px;
  overflow: hidden;
}

/* Aspect-ratio keeps mobile PERFECT */
.slides {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f6f6f6;
}

@media (max-width: 768px) {
  .slides {
    aspect-ratio: 4 / 5;
  }
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text overlay */
.overlay {
  position: absolute;
  bottom: 8%;
  left: 6%;
  max-width: 80%;
  background-color: #f6f6f6;
  padding: 15px;
  border-radius: 10px;
  opacity: 0.8; 
}

.overlay h1 {
  font-size: clamp(22px, 4vw, 34px);
  margin-bottom: 8px;
  color: #a74a25;
}

.overlay p {
  font-size: clamp(14px, 2.5vw, 16px);
  opacity: 0.85;
}

/* Dots */
.dots {
  display: flex;
  justify-content: center;
  padding: 14px 0;
}

.dot {
  width: 10px;
  height: 10px;
  border: 1px solid #000;
  border-radius: 50%;
  background: transparent;
  margin: 0 6px;
  cursor: pointer;
}

.dot.active {
  background: #000;
}


/* Mobile */
@media (max-width: 768px) {
  .caption h2 {
    font-size: 20px;
  }

  .caption p {
    font-size: 14px;
  }
}





form {

  max-width: 600px;

  margin: auto;

}


.post-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }



input, textarea {

  width: 100%;

  padding: 10px;

  margin: 10px 0;

}

.container-post {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}



/* FOOTER */

footer {

  background: #c46a46;

  color: white;

  text-align: center;

  padding: 15px;

}



/* MOBILE */

@media (max-width: 900px) {

  .container {

    grid-template-columns: 1fr;

  }



  .hero {

    grid-template-columns: 1fr;
  }

  .container-post {
    flex-direction: column;
  }

   .post {
    flex-direction: column;
    align-items: center;
  }

  .post img {
    width: 90%;
    margin: 0 auto 20px auto; /* 👈 centra horizontalmente */
    display: block;          /* 👈 importante */
  }

  .post-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

}

.bio-links {

  max-width: 420px;

  margin: 40px auto;

  display: flex;

  flex-direction: column;

  gap: 15px;

  padding: 28px;

}



.bio-links a {

  text-decoration: none;

  background: #c46a46;

  color: white;

  padding: 15px;

  text-align: center;

  border-radius: 6px;

  font-size: 16px;

}



.bio-links a:hover {

  opacity: 0.9;

}