body {
     background: #fff8f6 url('A_watercolor-style_watercolor_digital_painting_fea.png') no-repeat center top;
     background-size: cover;
     font-family: 'Open Sans', sans-serif;
     margin: 0;
     padding: 0;
}

.titulo-principal {
     font-family: 'Great Vibes', cursive;
     font-size: 4em;
     text-align: center;
     color: #5c3a35;
}

.carousel {
     width: 100%;
     overflow: hidden;
     position: relative;
}

.carousel img {
     width: 100%;
     height: auto;
     display: none;
}

.carousel img.active {
     display: block;
}

.timeline-section {
     padding: 40px 20px;
}

.timeline-title {
     text-align: center;
     font-family: 'Great Vibes', cursive;
     font-size: 2.5em;
     color: #5c3a35;
}

.timeline {
     position: relative;
     max-width: 900px;
     margin: auto;
}

.timeline::after {
     content: '';
     position: absolute;
     width: 4px;
     background-color: #e9c7bd;
     top: 0;
     bottom: 0;
     left: 50%;
     margin-left: -2px;
}

.countdown-container {
     text-align: center;
}

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

.unit {
     background: #fff;
     padding: 20px;
     border-radius: 10px;
     min-width: 80px;
     font-size: 24px;
     font-weight: bold;
     box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.unit::after {
     content: attr(data-label);
     display: block;
     font-size: 14px;
     font-weight: normal;
     margin-top: 5px;
}

.formulario {
     max-width: 750px;
     margin: auto;
     padding: 20px;
}

form {
     display: flex;
     flex-direction: column;
}

input,
textarea {
     padding: 10px;
     margin: 10px 0;
     border-radius: 8px;
     border: 1px solid #ccc;
}

button {
     background-color: #e9c7bd;
     border: none;
     padding: 10px;
     font-weight: bold;
     border-radius: 8px;
     cursor: pointer;
}

.timeline::after {
     background: transparent;
}

.mapa-item h3 {
     margin-bottom: 0.5em;
}

@media (max-width: 768px) {}

body {
     background-image: url('recursos/A_watercolor-style_watercolor_digital_painting_fea.png');
     background-repeat: no-repeat;
     background-size: cover;
     background-position: center;
     background-attachment: fixed;
}

.mapas-grid {
     display: grid !important;
     grid-template-columns: 1fr 1fr !important;
     gap: 2em !important;
     max-width: 1000px !important;
     margin: 0 auto !important;
     padding: 2em 1em !important;
     text-align: center !important;
}

@media (max-width: 768px) {
     .mapas-grid {
          grid-template-columns: 1fr !important;
     }
}

.ubicaciones-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 2em;
     margin: 0 auto;
}

.ubicacion-card {
     background: rgba(255, 255, 255, 0.85);
     border-radius: 12px;
     padding: 1.5em;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
     text-align: center;
     transition: transform 0.3s ease;
}

.ubicacion-card:hover {
     transform: translateY(-4px);
}

.ubicacion-card h3 {
     margin-top: 0;
     font-size: 1.4em;
}

.ubicacion-card p {
     margin: 0.5em 0;
}

.ubicacion-card a {
     display: inline-block;
     margin-top: 1em;
     color: #7b3f00;
     font-weight: bold;
     text-decoration: none;
}

@media (max-width: 768px) {
     .ubicaciones-grid {
          grid-template-columns: 1fr;
     }
}

.fecha-bonita {
     font-size: 3em;
     font-family: 'Great Vibes', cursive;
     color: #865858;
     font-weight: bold;
     text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
     text-align: center;
}

.ubicacion-card {
     background: rgba(255, 248, 240, 0.9);
     border-radius: 16px;
     padding: 1.5em;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
     text-align: center;
     transition: transform 0.3s ease;
     border: 1px solid #f0dcdc;
}

.timeline-con-tronco {
     position: relative;
     background: none;
}

.timeline-arbol {
     display: flex;
     flex-direction: column;
     align-items: center;
     padding-top: 6em;
     background-size: auto 800px;
     min-height: 1000px;
}

@media (max-width: 768px) {
     .timeline-wrapper::before {
          display: none;
          /* Oculta la línea central */
     }

     .timeline-row {
          flex-direction: column;
          align-items: center;
          margin: 0em !important;
     }

     .timeline-card {
          width: 90%;
          text-align: center;
     }

     .timeline-date {
          position: static;
          /* Elimina la posición absoluta */
          transform: none;
          /* Elimina la transformación */
          text-align: center;
          /* Centra el texto */
          margin: 0 auto;
          /* Centra el contenedor */
     }
}

.timeline-container {
     position: relative;
     max-width: 1000px;
     margin: 0 auto;
     padding: 4em 2em;
}

.timeline-line {
     position: absolute;
     top: 0;
     bottom: 0;
     left: 50%;
     width: 4px;
     background-color: #aaa;
     transform: translateX(-50%);
     z-index: 2;
}

.timeline-event {
     position: relative;
     width: 100%;
     display: flex;
     justify-content: flex-start;
     margin: 0.5em 0;
     z-index: 1;
}

.timeline-event.right {
     justify-content: flex-end;
}

.timeline-card {
     background: #ffffffdd;
     border-radius: 12px;
     padding: 1em;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
     width: 45%;
     position: relative;
     z-index: 1;
     text-align: center;
     /* Centra el contenido */
}

.timeline-card img {
     width: 100%;
     border-radius: 8px;
     margin-bottom: 0.5em;
}

.timeline-card h3 {
     font-size: 1.5em;
     margin: 0.5em 0;
}

.timeline-card p {
     font-size: 1em;
     color: #555;
}

.timeline-wrapper {
     max-width: 1000px;
     margin: 0 auto;
     display: flex;
     flex-direction: column;
     gap: 2em;
     position: relative;
}

.timeline-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     position: relative;
     margin: 1em 0;
}

.timeline-row.left .timeline-card {
     order: 2;
     /* La tarjeta va después de la fecha */
     text-align: left;
     margin-right: auto;
}

.timeline-row.left .timeline-date {
     order: 1;
     /* La fecha va antes de la tarjeta */
}

.timeline-row.right .timeline-card {
     order: 1;
     /* La tarjeta va antes de la fecha */
     text-align: right;
     margin-left: auto;
}

.timeline-row.right .timeline-date {
     order: 2;
     /* La fecha va después de la tarjeta */
}

.timeline-row.left .timeline-card {
     order: 2;
}

.timeline-row.left .timeline-date {
     order: 1;
}

.timeline-row.right .timeline-card {
     order: 1;
}

.timeline-row.right .timeline-date {
     order: 2;
}

.timeline-card {
     background: #ffffffdd;
     border-radius: 12px;
     padding: 1em;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
     width: 45%;
     position: relative;
     z-index: 1;
}

.timeline-card img {
     width: 100%;
     border-radius: 8px;
     margin-bottom: 0.5em;
}


.timeline-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     position: relative;
     margin: 0.5em 0;
}

.timeline-row.left .timeline-card {
     order: 1;
}

.timeline-row.left .timeline-row.right .timeline-row.right .timeline-card {
     order: 2;
}

.timeline-card {
     background: #ffffffdd;
     border-radius: 12px;
     padding: 1em;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
     width: 45%;
     position: relative;
     z-index: 1;
}

.timeline-card img {
     width: 100%;
     border-radius: 8px;
     margin-bottom: 0.5em;
}

.timeline-wrapper {
     margin: 0 auto;
     display: flex;
     flex-direction: column;
     gap: 1.5em;
     position: relative;
}

.timeline-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     position: relative;
     margin: 0.5em 0;
}

.timeline-row.left .timeline-card {
     order: 1;
}

.timeline-row.left .timeline-row.right .timeline-row.right .timeline-card {
     order: 2;
}

.timeline-card {
     background: #ffffffdd;
     border-radius: 12px;
     padding: 1em;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
     width: 45%;
     position: relative;
     z-index: 1;
}

.timeline-card img {
     width: 100%;
     border-radius: 8px;
     margin-bottom: 0.5em;
}

@media (max-width: 768px) {
     .timeline::before {
          left: 20px !important;
          opacity: 0.3;
     }
}

@media (max-width: 768px) {
     .timeline::before {
          display: none !important;
     }
}


@media (max-width: 768px) {
     .timeline::before {
          display: none !important;
     }
}


/* Línea de timeline eliminada en móvil */
@media (max-width: 768px) {
     .timeline-wrapper::before {
          display: none !important;
     }
}

/* Línea de timeline para escritorio */
.timeline-wrapper::before {
     content: '';
     position: absolute;
     width: 4px;
     background-color: #ccc;
     top: 0;
     bottom: 0;
     left: 50%;
     margin-left: -2px;
}

/* Ajuste espaciado vertical entre eventos */




.evento {
     background-color: white;
     padding: 1em;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
     max-width: 500px;
     margin: 0 auto;
}

/* Alineación izquierda y derecha del timeline en escritorio */
@media (min-width: 769px) {}

@media (min-width: 769px) {}

.evento {
     max-width: 450px;
     background-color: white;
     padding: 1em;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (min-width: 769px) {

     .izquierda {
          justify-content: flex-start;
     }

     .derecha {
          justify-content: flex-end;
     }

     .evento {
          max-width: 450px;
          background-color: white;
          padding: 1em;
          border-radius: 12px;
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
     }
}

@media (min-width: 769px) {
     .evento-wrapper {
          display: flex;
          width: 100%;
          margin: 0.5em 0;
     }

     .evento-wrapper.izquierda {
          justify-content: flex-start;
     }

     .evento-wrapper.derecha {
          justify-content: flex-end;
     }
}

/* Línea central del timeline */
.timeline-wrapper::before {
     content: '';
     position: absolute;
     width: 4px;
     background-color: #ccc;
     top: 0;
     bottom: 0;
     left: 50%;
     transform: translateX(-50%);
     z-index: 1;
}

/* Filas del timeline */
.timeline-row {
     position: relative;
     /* Necesario para posicionar las fechas */
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin: 1em 0;
}

/* Tarjetas del timeline */
.timeline-card {
     background: #ffffffdd;
     border-radius: 12px;
     padding: 1em;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
     width: 45%;
     z-index: 2;
     text-align: center;
     /* Centra el contenido */
}

/* Tarjetas a la izquierda */
.timeline-row.left .timeline-card {
     order: 1;
}

/* Fechas a la izquierda */
.timeline-row.left .timeline-date {
     order: 2;
}

/* Tarjetas a la derecha */
.timeline-row.right .timeline-card {
     order: 2;
}

/* Fechas a la derecha */
.timeline-row.right .timeline-date {
     order: 1;
}

/* Línea conectora */
.timeline-row::before {
     content: '';
     position: absolute;
     width: 4px;
     height: 100%;
     background-color: #ccc;
     top: 0;
     left: 50%;
     transform: translateX(-50%);
     z-index: 1;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
     .timeline-wrapper::before {
          display: none;
          /* Oculta la línea central en móvil */
     }

     .timeline-row {
          flex-direction: column;
          align-items: center;
     }

     .timeline-card,
     .timeline-date {
          width: 90%;
          margin: 0 !important;
          text-align: center !important;
     }

     .timeline-row.left .timeline-card {
          order: 2 !important;
          margin-top: 0.5rem !important;
     }

     .timeline-row.left .timeline-date {
          order: 1 !important;
     }

     .timeline-row.right .timeline-card {
          margin-top: 0.5rem !important;
     }
}

.timeline-wrapper::before {
     display: none !important;
}

/* Contenedor de las filas del timeline */
.timeline-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     position: relative;
     margin: 1em 0;
}

/* Tarjetas a la izquierda */
.timeline-row.left .timeline-card {
     order: 1;
     text-align: left;
     /* Alinea el texto a la izquierda */
}

/* Fechas a la izquierda */
.timeline-row.left .timeline-date {
     order: 2;
}

/* Tarjetas a la derecha */
.timeline-row.right .timeline-card {
     order: 2;
     text-align: right;
     /* Alinea el texto a la derecha */
     margin-left: auto;
     /* Empuja la tarjeta hacia la derecha */
}

/* Fechas a la derecha */
.timeline-row.right .timeline-date {
     order: 1;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
     .timeline-row {
          flex-direction: column;
          align-items: center;
     }

     .timeline-card,
     .timeline-date {
          width: 90%;
          text-align: center;
          /* Centra el texto en pantallas pequeñas */
          margin-left: 0;
          /* Elimina el margen izquierdo */
     }
}

.timeline-date {
     width: 45%;
     text-align: center;
     font-size: 2.2em;
     font-family: 'Brush Script MT', cursive;
     color: #865858;
     z-index: 2;
}

/* Fechas a la izquierda */
.timeline-row.left .timeline-date {
     order: 1;
}

/* Tarjetas a la izquierda */
.timeline-row.left .timeline-card {
     order: 2;
     text-align: left;
     /* Alinea el texto a la izquierda */
     margin-right: auto;
     /* Empuja la tarjeta hacia la izquierda */
}

/* Fechas a la derecha */
.timeline-row.right .timeline-date {
     order: 2;
}

/* Tarjetas a la derecha */
.timeline-row.right .timeline-card {
     order: 1;
     text-align: right;
     /* Alinea el texto a la derecha */
     margin-left: auto;
     /* Empuja la tarjeta hacia la derecha */
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
     .timeline-row {
          flex-direction: column;
          align-items: center;
     }

     .timeline-card,
     .timeline-date {
          width: 90%;
          text-align: center;
     }
}

.timeline-wrapper::before,
.timeline-row::before {
     display: none !important;
}

/* Tarjetas a la izquierda */
.timeline-row.left .timeline-card {
     order: 1;
     /* La tarjeta va primero */
     text-align: left;
     margin-right: auto;
}

/* Fechas a la izquierda */
.timeline-row.left .timeline-date {
     order: 2;
     /* La fecha va después */
}

/* Tarjetas a la derecha */
.timeline-row.right .timeline-card {
     order: 2;
     /* La tarjeta va después */
     text-align: right;
     margin-left: auto;
}

/* Fechas a la derecha */
.timeline-row.right .timeline-date {
     order: 1;
     /* La fecha va primero */
}

/* Estilo para los títulos principales */
h2 {
     font-family: 'Great Vibes', cursive;
     /* Fuente elegante */
     font-size: 2.5em;
     /* Tamaño más grande */
     color: #865858;
     /* Color suave */
     text-align: center;
     margin-bottom: 1em;
}

/* Estilo para subtítulos */
h3 {
     font-family: 'Open Sans', sans-serif;
     /* Fuente complementaria */
     font-size: 1.8em;
     color: #5c3a35;
     text-align: center;
     margin-bottom: 0.5em;
}