* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  color: #444;
  background-color: #fafafa;
}

/* ================= HERO NUEVO ================= */

.hero {
  position: relative;
  height: 100vh;
  background: url("../img/hero1.jpg") center/cover no-repeat;
  overflow: hidden;
}

/* Degradado inferior blanco */
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(250,247,244,1), rgba(250,247,244,0));
  z-index: 1;
  
}

.hero-text-box h1,
.hero-text-box p {
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}


/* Layout general */
.hero-layout {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8% 10%;
}

/* Parte superior */

.hero-top {
  margin-top: -30px;
  font-family: 'Parisienne', cursive;
}

.hero-top h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 3.2rem;
  margin-bottom: 0px;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  line-height: 1.1;
}

/* Cada nombre en su línea */
.hero-top h1 .name {
  display: block;
  font-family: 'Parisienne', cursive;
}


/* El & centrado y pequeño */
.hero-top h1 .amp {
  display: block;
  font-size: 1.6rem;
  margin: 4px 0;
  opacity: 0.85;
  font-family: 'Parisienne', cursive;
  transform: translateX(60px);
}

.hero-top .date {
  letter-spacing: 3px;
  font-family: 'Great Vibes';
  font-size: 25px;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

/* Parte inferior */
.hero-bottom {
  max-width: 420px;
  color: white;
  margin-bottom: 0%;
  text-align: center;
}

.hero-bottom .btn-primary {
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
}


.hero-bottom .hero-text {
  margin-bottom: 15px;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(137, 1, 167, 0.703);
  font-family: 'Great Vibes', cursive;
  font-size: 28px;
}

/* Caja de texto */
.hero-text-box {
  max-width: 420px;
  color: white;
}


.hero-text-box h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  margin-bottom: 10px;
}

.hero-text-box .date {
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.hero-text-box .hero-text {
  margin-bottom: 25px;
  line-height: 1.6;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 35%,
    rgba(0,0,0,0.1) 60%,
    rgba(0,0,0,0) 100%
  );
  z-index: 1;
}


/* Botón translúcido */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(191,162,219,0.75);
  backdrop-filter: blur(6px);
  color: white;
  padding: 14px 30px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-primary:hover {
  background: rgba(168,140,207,0.9);
}

/* BOTÓN UNIFICADO (button y a) */
.btn {
  display: block;
  width: 100%;
  background: #bfa2db;        /* LILA EXACTO */
  color: white;
  padding: 16px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

/* Hover */
.btn:hover {
  background: #a88ccf;
}


/* MESSAGE */
.message {
  padding: 70px 20px;
  text-align: center;
  background: rgb(255, 255, 255);
}

.message h2 {
  margin-bottom: 15px;
}

.message p {
  max-width: 600px;
  margin: auto;
  color: #666;
}

/* UPLOAD */
.upload {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8e8ee, #e8f0ff);
  display: flex;
  justify-content: center;
}

.upload-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.upload-subtitle {
  color: #666;
  margin-bottom: 20px;
}

input[type="file"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 2px dashed #ccc;
}

button {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #bfa2db;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #a889c8;
}

.status {
  margin-top: 15px;
  font-size: 0.9rem;
}

/* FOOTER */
footer {
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
  background: #f0f0f0;
}

/* ALBUM */
.album-header {
  text-align: center;
  padding: 40px 20px;
  background: white;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  padding: 20px;
}

.album-photo {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.album-photo:hover {
  transform: scale(1.03);
}

.album-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.upload-preview img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


/* Modal para ver fotos grandes */
.modal {
  display: none; 
  position: fixed; 
  z-index: 10; 
  padding-top: 60px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #bbb;
}

/*DELETE PHOTO MODO ADMIN*/
.delete-btn {
  margin-top: 10px;
  padding: 8px 0;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  background: #9c52d8;
  color: white;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}


.delete-btn:hover {
  background: #7142ab;
}


.photo-card {
  position: relative;
}

/* ========================= MODAL LOGIN ADMIN ========================= */

/* Fondo oscuro que cubre toda la pantalla */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;                /* Oculto por defecto */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Caja central del login */
.admin-box {
  background: white;
  padding: 25px 22px;
  border-radius: 18px;
  width: 280px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Inputs del login */
.admin-box input {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

/* Texto de error */
.admin-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Overlay que cubre toda la pantalla */
#heart-overlay {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Corazón */
.heart {
  width: 100px;
  height: 90px;
  background: #cfa7e8; /* tu morado suave */
  position: relative;
  transform: rotate(-45deg) scale(0.1);
  animation: heartGrow 1.8s ease-in-out forwards;
}

.heart::before,
.heart::after {
  content: "";
  width: 100px;
  height: 90px;
  background: #cfa7e8;
  border-radius: 50%;
  position: absolute;
}

.heart::before {
  top: -45px;
  left: 0;
}

.heart::after {
  left: 45px;
  top: 0;
}

/* Animación */
@keyframes heartGrow {
  0% {
    transform: rotate(-45deg) scale(0.1);
    opacity: 1;
  }
  70% {
    transform: rotate(-45deg) scale(15);
    opacity: 1;
  }
  100% {
    transform: rotate(-45deg) scale(25);
    opacity: 0;
  }
}

/*LAMBDA DOWNLOAD ZIP*/
.download-zip-btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: none;
  border-radius: 20px;
  background: #2c9b63;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.download-zip-btn:hover {
  background: #1e6e46;
}

/* ================= NUEVA NUESTRA HISTORIA ================= */

.story2 {
  background: #faf7f4;
  padding: 90px 20px 120px;
}

.story2-title {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  color: #8b6fa9;
  margin-bottom: 40px;
  letter-spacing: 1px;
  position: relative;
}

.story2-title span {
  color: #c7a6e2;
  font-size: 1.4rem;
  margin: 0 10px;
  vertical-align: middle;
}


.story2-list {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.story2-item {
  background: white;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story2-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 55px rgba(0,0,0,0.18);
}

.story2-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.story2-text {
  padding: 26px 28px 32px;
  text-align: center;
}

.story2-text h3 {
  font-family: 'Playfair Display', serif;
  color: #555;
  margin-bottom: 10px;
}

.story2-text p {
  color: #777;
  line-height: 1.6;
  margin: 0;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .story2-list {
    grid-template-columns: 1fr;
  }

  .story2-item img {
    height: 240px;
  }

  .story2-title {
    font-size: 2rem;
  }
}

.falling-heart {
  position: fixed;
  top: -10px;
  font-size: 16px;
  color: rgba(255, 182, 213, 0.7);
  pointer-events: none;
  animation: fall linear forwards;
  z-index: 9999;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}
.falling-heart {
  position: fixed;
  top: -10px;
  font-size: 16px;
  color: rgba(255, 182, 213, 0.7);
  pointer-events: none;
  animation: fall linear forwards;
  z-index: 9999;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}


