
body {
  background-color: #f8f9fa;
}

section {
  background-color: #ffffff;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.timeline-container {
  position: relative;
  margin: 0 auto;
  padding-left: 20px;
  border-left: 3px solid #8b5e3c;
  max-width: 600px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: -11px;
  top: 5px;
  width: 20px;
  height: 20px;
  background-color: #513a45;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #513a45;
}

.timeline-content {
  padding-left: 20px;
}

.timeline-content h5 {
  margin-bottom: 5px;
  color: #513a45;
}

.timeline-content p {
  margin: 0;
  color: #513a45;
}

.countdown-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.time-segment {
  background-color: #fff;
  border: 2px solid #8b5e3c;
  border-radius: 10px;
  padding: 15px 20px;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 4px 10px #513a45;
  flex: 1 1 100px;
}

.time-segment span {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #8b5e3c;
}

.time-segment small {
  font-size: 0.9rem;
  color: #513a45;
}


.img-story{
  width:60%;  
}

 .header-text{

      font-size: 55px; 
      margin-top: -55px;

    }

.hero-header {
  position: relative;
  height: 100vh;
  background: url('images/carousel/4.jpg') center center / cover no-repeat;
  color: white;
  padding: 2rem;
  text-align: center;
}

.hero-header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-header .content {
  z-index: 1;
  position: relative;
  max-width: 800px;
  width: 100%;
  padding: 1rem;
}
#header-timer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

#header-timer .time-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.50rem;
  border-radius: 8px;
  text-align: center; 
  flex: 1 1 30px;
  max-width: 120px;
  max-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


#header-timer .time-box span {
  font-size: 3rem;
  font-weight: bold;
  display: block;
}

#header-timer .time-box small {
  font-size: 1 rem;
  opacity: 0.8;
  margin-top: -35px;
}


/* Ajustes para pantallas pequeñas */
@media (max-width: 538px) {
  #header-timer {
    gap: 0.5rem;
  }

  #header-timer .time-box {
    flex: 1 1 45px;
    max-width: 83px;
    max-height: 60px;
    padding: 0.5rem 0.5rem;
  }

  #header-timer .time-box span {
    font-size: 1.2rem;
  }

  #header-timer .time-box small {
    font-size: 1.1rem;
      }

  
}

@media (max-width: 392px) {
  .header-text{

      font-size: 45px; margin-top: -55px;

    }
  #header-timer .time-box span {
    font-size: 1rem;
  }

  #header-timer .time-box small {
    font-size: 0.9rem;
      }

        #header-timer {
    gap: 0.3rem;
  }

  #header-timer .time-box {
    flex: 1 1 45px;
    max-width: 83px;
    max-height: 60px;
    padding: 0.3rem 0.3rem;
  }

}

/* Responsivo para pantallas pequeñas */
@media (max-width: 576px) {
  .hero-header {
    height: auto;
    padding: 4rem 1rem;
  }


  .hero-header p {
    font-size: 1rem;
  }

}

.separator{
  margin-top: 20px;
}

.separatorx2{
  margin-top: 40px;
}


.timeline-section {
  background-color: #513a45;
}

.timeline-item h4 {
  font-weight: bold;
}

.timeline-item p {
  font-size: 1.1rem;
  color:  #513a45;
}


@media (max-width: 768px) {
  .timeline-item {
    text-align: center;
  }
}

.color-base{
    color:  #513a45;
}

.tercio-color {
  background: linear-gradient(
    to right,
    transparent 0%,
    transparent 27%,
    rgb(255,246,238) 27%,
    rgb(247, 246, 246) 100%
  );
}

.imperial-script-regular {
  font-family: "Imperial Script", cursive;
  font-weight: 400;
  font-style: normal;
}

.markazi-text {
  font-family: "Markazi Text", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}


.card {
  width: 100%;
  height: 250px;
  perspective: 1000px;
  margin-bottom: 20px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back, .card-front2 {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
  border-radius: 5px;
}

.card-front {
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.411), rgba(233, 233, 233, 0.281)), url("images/iglesia.jpeg");
background-size: cover;
background-position: center;
color: white; /* Asegura que el texto sea legible */


}

.card-front2{
   background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.411), rgba(233, 233, 233, 0.281)), url("images/quinta.jpeg");
background-size: cover;
background-position: center;
color: white; /* Asegura que el texto sea legible */
}

.card-back {
  background-color: #f2f4e9;
  transform: rotateY(180deg);

}

.card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* oscurece la imagen */
  z-index: 0;
}

.card-front > * {
  position: relative;
  z-index: 1;
}

.card-front2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* oscurece la imagen */
  z-index: 0;
}

.card-front2 > * {
  position: relative;
  z-index: 1;
}



.timeline {
  position: relative;
  max-width: 800px;
  margin: auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #513a45b7;
  transform: translateX(-50%);
}

.timeline-event {
  position: relative;
  width: 50%;
  padding: 40px 20px 20px;
  box-sizing: border-box;
}

.timeline-event h5,
.timeline-event p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  color: #513a45;
}

/* Punto central */
.timeline-event::before {
  content: '';
  position: absolute;
  top: 40px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 4px solid #513a45;
  border-radius: 50%;
  z-index: 1;
}

/* Línea horizontal desde el punto */
.timeline-event::after {
  content: '';
  position: absolute;
  top: 48px;
  width: 150px;
  height: 2px;
  background-color: #513a45;
}

/* Posicionamiento izquierdo */
.timeline-event.left {
  left: 0;
  text-align: right;
}

.timeline-event.left::before {
  right: -10px;
}

.timeline-event.left::after {
  right: 10px;
}

/* Posicionamiento derecho */
.timeline-event.right {
  left: 50%;
  text-align: left;
}

.timeline-event.right::before {
  left: -10px;
}

.timeline-event.right::after {
  left: 10px;
}

/* Texto arriba del punto */
.timeline-event h5 {
  margin-top: 25px;
  font-weight: bold;
}

.timeline-event p {
  margin-top: 15px;
}


.timeline-event .icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
  color: #513a45;
  padding: 5px;
  border-radius: 50%;
  z-index: 2;
}


.mini-box {
  max-width: 600px; /* o usa max-width para hacerlo flexible */
  margin: auto;
  padding: 1px;
  font-size: 16px;
  word-wrap: break-word; /* fuerza el salto de línea si es necesario */
  overflow-wrap: break-word;
}

.mesa {

 width: 100%;
  background: rgba(246, 246, 246, 0.752);
  z-index: 0;/* opcional para visualizar el bloque */
 padding: 50px;
 text-align: center;


}

.itinerario{
  width: 100%;
  background: rgba(246, 246, 246, 0.752);
  z-index: 0;/* opcional para visualizar el bloque */
}

.btn-liverpool{
  color: white; border-color:white;
  background-color: #e10098;

}



.btn-liverpool:hover{
  background-color: #fff;
    color: #e10098; border-color:#e10098;
}

.btn-amazon{
    color: white; border-color:white;
  background-color: #0f141a;
}

.btn-amazon:hover{
  background-color: #fff;
    color: #0f141a; border-color:#ffffff;
}

.btn-fotos{
    color: #513a45; border-color:#513a45;
    background-color: #fdf6ef;
}

.btn-fotos:hover{
  background-color: #513a45;
    color: white; border-color:#ffffff;
}

.btn-fotos:hover::after{
  background-color: #513a45;
    color: white; border-color:#ffffff;
}
.mesa-img{
  padding: 250px;
}

.section-back{
  background-image: url("images/background.jpeg");
  background-size: cover;
background-position: center;
width: auto;
}

.section-back-iti{
  background-image: url("images/carousel/5.jpg");
  background-size: cover;
background-position: center;
width: auto;
}

 h3, h4,h2, h5, p{
  
color: #513a45;
}

.custom-carousel {
  height: 500px; /* o el alto que desees */
  overflow: hidden;
}

.carousel-item img {
  height: 10%;
  object-fit: cover; /* o 'contain' si no quieres que se recorte */
}


html, body {
 overflow-x: hidden;
 font-family: "Quicksand", sans-serif;
}


.envelope-wrapper {
      position: relative;
      width: 300px;
      height: 200px;
      perspective: 1000px;
      cursor: pointer;
    }

    .envelope {
      width: 100%;
      height: 100%;
      background: #e2e2cbb2;
      border-radius: 5px;
      position: relative;
      box-shadow: 0 5px 10px rgba(0,0,0,0.2);
      overflow: hidden;
    }

   .flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 150px solid transparent;
  border-right: 150px solid transparent;
  border-top: 100px solid  #fff6c58a;

  transform-origin: bottom;
  z-index: 2;
  
  filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.651));

}

.flap-image {
  width: 70px; /* ajusta según necesites */
  margin-top: -12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

    .message {
      position: absolute;
      top: 70%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: rgb(0, 0, 0);
      font-size: 30px;
      text-align: center;
      z-index: 1;
    }

    .envelope:hover {
      transform: scale(1.05);
    }

  .content-all{
      display: none;
  }

 

  .envelope-div{
      margin: 0;
      background-color: #f4f4f4;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
  }

   @media (max-width: 768px) {
  .timeline-item {
    text-align: center;
  }


}
