/* Resetear márgenes y paddings predeterminados */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Open Sans', sans-serif;
  background-color: #f0f4f8;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== HEADER Y MENÚ ========== */
header {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 30px;
}

.menu-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  max-width: 100%;
}

.logo-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-image:hover {
  transform: scale(1.1) rotate(5deg);
}

.logo-text {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text span {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
}

/* Menu Toggle (Mobile) */
#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 1001;
}

.hamburger:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Navigation */
.navbar {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

@media (min-width: 769px) {
  .navbar {
    display: flex !important;
  }
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.navbar li a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.navbar li a:hover {
  background-color: #ffd700;
  color: #0066cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* ========== HERO SECTION ========== */
.hero {
  text-align: center;
  background: linear-gradient(135deg, #3399ff 0%, #33ccff 100%);
  color: #fff;
  padding: 100px 30px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 25px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 22px;
  max-width: 900px;
  margin: 0 auto 15px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 42px;
  font-weight: 700;
  margin: 40px 0 20px;
  position: relative;
  z-index: 1;
}

/* ========== STEPS SECTION ========== */
.steps {
  background: linear-gradient(135deg, #2b7de9 0%, #1e5bb8 100%);
  color: #fff;
  padding: 80px 30px;
  position: relative;
}

.steps::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #b9b9b8, #e3e3e1, #fffffe);
}

.steps h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.steps-container {
  max-width: 1000px;
  margin: 0 auto;
}

.steps p {
  font-size: 20px;
  margin: 25px 0;
  padding: 25px 30px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  border-left: 5px solid #e8e7e4;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.steps p:hover {
  transform: translateX(10px);
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ========== GALERÍA ========== */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 60px 30px;
  max-width: 1400px;
  margin: 0 auto;
  background-color: #fff;
}

.thumbnail {
  width: 100%;
  cursor: pointer;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid transparent;
}

.thumbnail:hover {
  transform: scale(1.08) translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 102, 204, 0.3);
  border-color: #0066cc;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 70vh;
  border-radius: 15px;
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.7);
}

.lightbox .close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #fff;
  font-size: 45px;
  background-color: rgba(255, 0, 0, 0.8);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox .close:hover {
  background-color: rgba(255, 0, 0, 1);
  transform: rotate(90deg) scale(1.1);
}

/* ========== BOTÓN WHATSAPP ========== */
.whatsapp-button {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

footer p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* ========== BOTÓN DE REGRESO ========== */
.back-button-container {
  padding: 20px 30px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e3e9f0 100%);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: 0.3s ease;
}

.back-button:hover {
  transform: translateX(-5px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* ========== TITLES ========== */
.title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* ==== TÍTULOS POR CATEGORÍA ==== */
.titleNavidad,
.titleCumpleaños,
.titleAmor,
.titleAniversario,
.titleMadre,
.titlePadre,
.titleRegalo,
.titleOtro {
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 20px 10px;
  position: relative;
}

.titleNavidad h1,
.titleCumpleaños h1,
.titleAmor h1,
.titleAniversario h1,
.titleMadre h1,
.titlePadre h1,
.titleRegalo h1,
.titleOtro h1 {
  font-size: 60px;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.titleNavidad { background-image: url('ImagenesFondosTitulos/Fondo.Titulo.BonosNavidad.jpeg'); }
.titleCumpleaños { background-image: url('ImagenesFondosTitulos/Fondo.Titulo.BonosCumple.jpeg'); }
.titleAmor { background-image: url('ImagenesFondosTitulos/Fondo.Titulo.BonosAmor.jpeg'); }
.titleAniversario { background-image: url('ImagenesFondosTitulos/Fondo.Titulo.BonosAniversario.jpeg'); }
.titleMadre { background-image: url('ImagenesFondosTitulos/Fondo.Titulo.BonosMadres.jpg'); }
.titlePadre { background-image: url('ImagenesFondosTitulos/Fondo.Titulo.BonosPadres.jpg'); }
.titleRegalo { background-image: url('ImagenesFondosTitulos/Fondo.Titulo.BonosRegalos.jpeg'); }
.titleOtro { background-image: url('ImagenesFondosTitulos/Fondo.Titulo.BonosOtros.jpeg'); }

/* ============================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ============================================ */

/* Tablets grandes */
@media (max-width: 1024px) {
  .navbar ul { gap: 6px; }
  .navbar li a { font-size: 14px; padding: 10px 14px; }
  .logo-text { font-size: 20px; }
  .logo-text span { font-size: 13px; }
  .hero h1 { font-size: 48px; }
  .image-gallery { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
  .titleNavidad h1,
  .titleCumpleaños h1,
  .titleAmor h1,
  .titleAniversario h1,
  .titleMadre h1,
  .titlePadre h1,
  .titleRegalo h1,
  .titleOtro h1 { font-size: 50px; }
}

/* Tablets */
@media (max-width: 768px) {

  .hamburger { display: flex; }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(180deg, #0066cc, #0052a3);
    padding: 80px 20px;
    transition: right 0.4s ease;
    visibility: hidden;
    flex-direction: column;
  }

  .navbar.show,
  #menu-toggle:checked ~ .navbar {
    right: 0;
    visibility: visible;
  }

  .navbar ul {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .navbar li a {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 15px 20px;
  }

  /* Animación hamburguesa */
  #menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  #menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  .hero { padding: 80px 20px; }
  .hero h1 { font-size: 36px; }
  .hero h2 { font-size: 32px; }
  .hero p { font-size: 18px; }

  .image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

  .lightbox img { max-width: 95%; }
  .lightbox .close { top: 15px; right: 15px; width: 50px; height: 50px; font-size: 35px; }

  .steps h2 { font-size: 32px; }
  .steps p { font-size: 18px; padding: 20px; }
}

/* --- MENU RESPONSIVO ACTIVO --- */

nav {
  display: none;
}

nav.open {
  display: block;
}
