* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-image: url('../sources/img/fondo1.jpg');
  background-size: contain;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
}

.content {
  position: relative;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: inline-block;
  width: 100%;
  max-width: 600px;
  color: #5a4a42;
  text-align: center;
  z-index: 2;
}

.content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../sources/img/fondo2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px);
  opacity: 0.6;
  z-index: -1;
  border-radius: 15px;
}

.names {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  color: #a87a4c;
  line-height: 1.1;
  margin: 0;
}

.name-line {
  display: inline-block;
  font-family: inherit;
  font-size: 4rem;
  line-height: 1;
  margin: 0 8px;
  padding: 0;
}

.name-line:nth-child(2) {
  font-family: 'Parisienne', cursive;
  font-size: 3rem;
  margin: 0 12px;
  vertical-align: middle;
}

header h1 {
  text-shadow: 0.5px 0.5px 0.5px rgba(173, 137, 109, 0.911);
  font-family: 'Dancing Script', cursive;
  -webkit-text-stroke: 0.01px #b48966;
  font-size: 2.2rem;
  margin: 20px 0 30px;
  color: #946b42;
}

#btnSubirFoto {
  background-color: #8b5a2b;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'Segoe UI', sans-serif;
  margin: 20px 0;
}

#btnSubirFoto:hover {
  background-color: #6b452b;
}

#galeria {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.foto-item {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-shrink: 0;
}

.foto-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}

.foto-item:hover img {
  transform: scale(1.05);
}

.foto-item .info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(139, 90, 43, 0.85);
  color: white;
  font-size: 0.72rem;
  padding: 4px 0;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.2;
}

.foto-item:hover .info {
  transform: translateY(0);
}

.btn-volver {
  background-color: #8b5a2b;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  font-family: 'Segoe UI', sans-serif;
}

.btn-volver:hover {
  background-color: #6b452b;
}

/* === MODAL DE SUBIDA === */
#modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

#modal.mostrar {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  border-radius: 16px;
  width: 90%;
  max-width: 350px;
  padding: 28px 25px 20px;
  position: relative;
  box-shadow: 0 8px 25px rgba(139, 90, 43, 0.3);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.4s;
}

#modal.mostrar .modal-content {
  transform: scale(1);
}

.cerrar {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 1.8rem;
  color: #8b5a2b;
  cursor: pointer;
  font-weight: bold;
}

.cerrar:hover {
  color: #6b452b;
}

.modal-content h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.9rem;
  color: #8b5a2b;
  margin-bottom: 20px;
}

.modal-content label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: #5a4a42;
}

#imagen {
  width: 100%;
  padding: 12px;
  margin: 10px 0 20px;
  border: 1px solid #d4c7b3;
  border-radius: 12px;
  background-color: #fdf9f3;
  font-size: 1rem;
  color: #5a4a42;
}

.modal-content button[type="submit"] {
  background-color: #8b5a2b;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  width: 100%;
  font-family: 'Segoe UI', sans-serif;
  transition: background 0.3s;
}

.modal-content button[type="submit"]:hover {
  background-color: #6b452b;
}

#mensaje {
  margin-top: 15px;
  font-size: 1rem;
  color: #5a4a42;
  line-height: 1.4;
}

/* === MODAL DE IMAGEN AMPLIADA === */
.modal-imagen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s, visibility 1s;
}

.modal-imagen.mostrar {
  opacity: 1;
  visibility: visible;
}

.modal-imagen-contenido {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  text-align: center;
}

.imagen-ampliada {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(139, 90, 43, 0.4);
  display: block;
}

.cerrar-imagen {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.btn-descargar {
  display: inline-block;
  background-color: #8b5a2b;
  color: white;
  text-decoration: none;
  padding: 10px 24px;
  font-size: 1.1rem;
  border-radius: 30px;
  margin-top: 15px;
  font-family: 'Segoe UI', sans-serif;
  transition: background 0.3s;
}

.btn-descargar:hover {
  background-color: #6b452b;
}

/* === Modal de agradecimiento === */
.modal-exito {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.modal-exito.mostrar {
  opacity: 1;
  visibility: visible;
}

.modal-exito-contenido {
  background-color: white;
  border-radius: 16px;
  width: 90%;
  max-width: 380px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(139, 90, 43, 0.3);
  transform: scale(0.92);
  transition: transform 0.4s;
}

.modal-exito.mostrar .modal-exito-contenido {
  transform: scale(1);
}

.modal-exito h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: #8b5a2b;
  margin-bottom: 16px;
}

.modal-exito p {
  font-size: 1.2rem;
  color: #5a4a42;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-cerrar-exito {
  background-color: #8b5a2b;
  color: white;
  border: none;
  padding: 10px 25px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'Segoe UI', sans-serif;
}

.btn-cerrar-exito:hover {
  background-color: #6b452b;
}

 .abajito{
    text-shadow: 0.5px 0.5px 0.5px rgba(39, 33, 33, 0.87);
    font-family: 'Allura';
    font-size: 1.8rem; /* ¡Puedes hacerlo más grande! */
    margin: 0;
    font-weight: 590;
  }