/* ===== Variables y Reset ===== */
:root {
  --primary: #4a5d4a;
  --secondary: #3d4f3d;
  --accent: #c4956a;
  --accent-soft: #d4a574;
  --gold: #d4af37;
  --cream: #faf8f3;
  --sage: #8fa88f;
  --sage-light: #c5d4c0;
  --wine: #8b4557;
  --blush: #e8c4c4;
  --text-dark: #3d4a3d;
  --text-light: #faf8f3;
  --gradient-1: linear-gradient(135deg, #8fa88f 0%, #6b8e6b 100%);
  --gradient-2: linear-gradient(135deg, #d4a574 0%, #c4956a 100%);
  --gradient-3: linear-gradient(135deg, #c5d4c0 0%, #a8c4a8 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('b.jpeg') no-repeat center center;
  background-size: cover;
  z-index: -1;
}

h1, h2, h3 { font-family: 'Syne', sans-serif; font-weight: 600; }

/* Sistema de idiomas - por defecto español */
.lang-pt { display: none; }
.lang-es { display: block; }

/* Elementos inline */
span.lang-pt, small.lang-pt, a.lang-pt { display: none; }
span.lang-es, small.lang-es, a.lang-es { display: inline; }

/* Cuando el HTML está en portugués */
html[lang="pt"] .lang-pt { display: block; }
html[lang="pt"] .lang-es { display: none; }
html[lang="pt"] span.lang-pt, 
html[lang="pt"] small.lang-pt, 
html[lang="pt"] a.lang-pt { display: inline; }
html[lang="pt"] span.lang-es, 
html[lang="pt"] small.lang-es, 
html[lang="pt"] a.lang-es { display: none; }

/* ===== Navegación ===== */
nav {
  background: transparent;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
  background: rgba(250, 248, 243, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(74, 93, 74, 0.1);
  padding: 1rem 5%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 50px;
  background: rgba(143, 168, 143, 0.15);
  backdrop-filter: blur(10px);
}

.lang-switch button {
  background: transparent;
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-radius: 50px;
}

.lang-switch button.active {
  background: var(--primary);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(74, 93, 74, 0.3);
}

/* ===== Hero Section ===== */
header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 20%, rgba(212, 165, 116, 0.06) 0%, transparent 30%),
    radial-gradient(circle at 70% 80%, rgba(143, 168, 143, 0.06) 0%, transparent 30%);
  animation: headerBg 20s linear infinite;
  z-index: -1;
}

@keyframes headerBg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ornamental-frame { display: none; }
.corner-decoration { display: none; }

.invitation-header {
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 25px;
  font-family: 'DM Sans', sans-serif;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.2s forwards;
  text-shadow: 
    1px 1px 0px rgba(255, 255, 255, 0.95),
    -1px -1px 0px rgba(255, 255, 255, 0.95),
    2px 2px 4px rgba(74, 93, 74, 0.15);
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 20px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-image {
  width: 220px;
  height: 220px;
  border-radius: 30px;
  background: url('foto.jpeg') no-repeat center center;
  background-size: cover;
  box-shadow: 0 25px 60px rgba(74, 93, 74, 0.2);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.3s forwards;
  transform: rotate(-3deg);
}

.names-container { 
  margin: 20px 0;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.4s forwards;
}

header h1 {
  font-size: clamp(4.5rem, 14vw, 8rem);
  color: var(--primary);
  font-weight: 700;
  line-height: 1;
  font-family: 'Tangerine', cursive;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 
    2px 2px 0px rgba(255, 255, 255, 0.9),
    -1px -1px 0px rgba(255, 255, 255, 0.9),
    1px -1px 0px rgba(255, 255, 255, 0.9),
    -1px 1px 0px rgba(255, 255, 255, 0.9),
    0px 3px 6px rgba(74, 93, 74, 0.2);
}

.divider-ornament {
  font-size: 1.8rem;
  color: var(--accent);
  margin: 15px 0;
  letter-spacing: 15px;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.5s forwards;
  text-shadow: 0 2px 4px rgba(196, 149, 106, 0.3);
}

.invitation-text {
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin: 15px 0;
  font-family: 'DM Sans', sans-serif;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.6s forwards;
  text-shadow: 
    1px 1px 0px rgba(255, 255, 255, 0.95),
    -1px -1px 0px rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 24px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
}

.date-formal {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 20px 0 10px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.7s forwards;
  text-shadow: 
    1px 1px 0px rgba(255, 255, 255, 0.95),
    -1px -1px 0px rgba(255, 255, 255, 0.95);
}

.location-formal {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.8s forwards;
  text-shadow: 
    1px 1px 0px rgba(255, 255, 255, 0.95),
    -1px -1px 0px rgba(255, 255, 255, 0.95);
}

/* ===== Countdown ===== */
.countdown-wrapper {
  background: rgba(255, 255, 255, 0.92);
  padding: 35px 45px;
  margin-top: 30px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(74, 93, 74, 0.1);
  max-width: 700px;
  width: calc(100% - 40px);
  opacity: 0;
  animation: fadeIn 0.8s ease 0.9s forwards;
  border: 1px solid rgba(143, 168, 143, 0.2);
}

.countdown-title {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

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

.time-box { 
  text-align: center; 
  min-width: 80px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(197, 212, 192, 0.3) 0%, rgba(250, 248, 243, 0.8) 100%);
  border-radius: 16px;
  border: 1px solid rgba(143, 168, 143, 0.15);
}

.time-box span {
  display: block;
  font-size: 2.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.time-box small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8a9a8a;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}

/* ===== Secciones ===== */
section {
  padding: 100px 8%;
  text-align: center;
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 100%;
  border: none;
  backdrop-filter: blur(8px);
}

section:nth-child(even) {
  background: linear-gradient(180deg, rgba(250, 248, 243, 0.92) 0%, rgba(255, 255, 255, 0.88) 100%);
}

section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 15px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
}

section h2::before,
section h2::after {
  display: none;
}

.section-subtitle {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

/* ===== Historia ===== */
.story-section {
  border: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 248, 243, 0.92) 100%);
}

.floral-divider {
  font-size: 2rem;
  margin: 30px 0;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 15px;
}

.fusion-icons {
  font-size: 2.5rem;
  margin: 30px 0 15px;
  gap: 25px;
  display: flex;
  justify-content: center;
}

.story-content p, .story-section p.lang-es, .story-section p.lang-pt {
  max-width: 700px;
  margin: 20px auto;
  font-size: 1.15rem;
  line-height: 2;
  color: #5a6a5a;
  font-weight: 400;
}

/* ===== Detalles ===== */
.details-section {
  background: rgba(255, 255, 255, 0.9);
  border: none;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.detail-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 248, 243, 0.9) 100%);
  padding: 45px 35px;
  border: 1px solid rgba(143, 168, 143, 0.15);
  border-radius: 24px;
  position: relative;
  box-shadow: 0 15px 50px rgba(74, 93, 74, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 70px rgba(74, 93, 74, 0.12);
}

.detail-card::before {
  display: none;
}

.detail-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: var(--gradient-1);
  border-radius: 20px;
  color: white;
}

.detail-card h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 600;
}

.detail-card p {
  margin: 12px 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #5a6a5a;
}

.detail-card p strong {
  font-weight: 600;
  color: var(--primary);
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding: 12px 28px;
  background: var(--gradient-1);
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  border-radius: 50px;
  border: none;
  box-shadow: 0 10px 30px rgba(143, 168, 143, 0.3);
}

.map-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(143, 168, 143, 0.4);
}

/* ===== Dress Code ===== */
.dresscode-section {
  border: none;
  background: linear-gradient(180deg, rgba(250, 248, 243, 0.92) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.dresscode-content {
  max-width: 700px;
  margin: 50px auto 0;
}

.dresscode-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 50px 40px;
  border: 1px solid rgba(143, 168, 143, 0.15);
  border-radius: 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(74, 93, 74, 0.1);
}

.dresscode-card::before {
  display: none;
}

.dresscode-card h3 {
  color: var(--primary);
  margin-bottom: 35px;
  font-size: 1.5rem;
  font-weight: 600;
}

.dresscode-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dresscode-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
  padding: 20px;
  background: linear-gradient(135deg, rgba(197, 212, 192, 0.2) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 16px;
  border: none;
  transition: all 0.3s ease;
}

.dresscode-item:hover {
  transform: translateX(5px);
}

.dresscode-item:last-child { border-bottom: none; }

.dresscode-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-2);
  border-radius: 14px;
  color: white;
}

.dresscode-item p {
  margin: 4px 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #5a6a5a;
}

.dresscode-item p strong {
  color: var(--primary);
}

/* ===== Alojamiento ===== */
.accommodation-section {
  background: rgba(255, 255, 255, 0.9);
  border: none;
}

.accommodation-intro {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 2;
  color: #5a6a5a;
}

.neighborhoods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.neighborhood-item {
  background: linear-gradient(135deg, rgba(250, 248, 243, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  padding: 35px 25px;
  border: 1px solid rgba(143, 168, 143, 0.12);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(74, 93, 74, 0.05);
}

.neighborhood-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(74, 93, 74, 0.1);
}

.neighborhood-icon {
  font-size: 1.6rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-3);
  border-radius: 16px;
  color: white;
}

.neighborhood-item h4 {
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 1.2rem;
  font-weight: 600;
}

.neighborhood-item p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #6b7a6b;
}

.accommodation-options h3 {
  color: var(--primary);
  margin: 60px 0 40px;
  font-size: 1.6rem;
  font-weight: 600;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.option-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px 30px;
  border: 1px solid rgba(143, 168, 143, 0.12);
  border-radius: 24px;
  position: relative;
  box-shadow: 0 15px 50px rgba(74, 93, 74, 0.08);
  transition: all 0.3s ease;
}

.option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(74, 93, 74, 0.12);
}

.option-card::before {
  display: none;
}

.option-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  width: 65px;
  height: 65px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  border-radius: 18px;
  color: white;
}

.option-card h4 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
}

.option-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.option-card ul li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  font-size: 0.95rem;
  color: #5a6a5a;
}

.option-card ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}

.option-note {
  font-style: normal;
  color: #8a9a8a;
  font-size: 0.85rem;
  margin-top: 15px;
  padding: 12px 15px;
  background: rgba(197, 212, 192, 0.2);
  border-radius: 10px;
}

.transport-note {
  background: linear-gradient(135deg, rgba(143, 168, 143, 0.1) 0%, rgba(197, 212, 192, 0.1) 100%);
  padding: 30px;
  border: 1px solid rgba(143, 168, 143, 0.12);
  border-radius: 20px;
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.transport-note p {
  color: #5a6a5a;
  line-height: 1.8;
}

/* ===== Regalos ===== */
.gifts-section {
  border: none;
  background: linear-gradient(180deg, rgba(250, 248, 243, 0.92) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.gifts-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 50px;
  border: 1px solid rgba(143, 168, 143, 0.15);
  background: rgba(255, 255, 255, 0.95);
  position: relative;
  border-radius: 30px;
  box-shadow: 0 25px 80px rgba(74, 93, 74, 0.1);
}

.gifts-container::before {
  display: none;
}

.gift-illustration {
  font-size: 3rem;
  margin-bottom: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background: var(--gradient-2);
  border-radius: 25px;
}

.gifts-section h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 25px;
  font-weight: 700;
}

.gifts-message {
  font-size: 1.1rem;
  line-height: 1.9;
  margin: 30px 0;
  font-style: normal;
  color: #5a6a5a;
}

.gifts-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border: none;
  background: var(--gradient-2);
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  border-radius: 50px;
  box-shadow: 0 15px 40px rgba(196, 149, 106, 0.35);
}

.gifts-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(196, 149, 106, 0.45);
}

/* ===== RSVP ===== */
.rsvp-section {
  background: var(--primary);
  color: var(--text-light);
  border: none;
  position: relative;
  overflow: hidden;
}

.rsvp-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(196, 149, 106, 0.15) 0%, transparent 60%);
}

.rsvp-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(143, 168, 143, 0.15) 0%, transparent 60%);
}

.rsvp-section h2 { 
  color: var(--text-light);
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rsvp-section .section-subtitle {
  color: rgba(255,255,255,0.6);
}

form {
  max-width: 480px;
  margin: 40px auto 0;
  text-align: left;
  position: relative;
  z-index: 1;
}

label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

input, select {
  width: 100%;
  padding: 18px 20px;
  margin: 10px 0 6px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

input::placeholder {
  color: rgba(255,255,255,0.4);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

select option {
  background: var(--primary);
  color: white;
}

button.submit-btn {
  background: var(--accent);
  color: white;
  font-weight: 600;
  border: none;
  padding: 18px 35px;
  width: 100%;
  cursor: pointer;
  margin-top: 25px;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'DM Sans', sans-serif;
  border-radius: 50px;
  box-shadow: 0 15px 40px rgba(196, 149, 106, 0.4);
}

button.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(196, 149, 106, 0.5);
}

.rsvp-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Music Toggle Button ===== */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-1);
  color: white;
  cursor: pointer;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(74, 93, 74, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.music-toggle.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(74, 93, 74, 0.5);
}

.music-toggle:active {
  transform: scale(0.95);
}

.music-icon {
  font-size: 1rem;
  display: none;
}

.music-icon.play {
  margin-left: 3px;
}

.music-icon.pause {
  font-size: 0.85rem;
  letter-spacing: 2px;
}

/* Default: show play icon */
.music-toggle .music-icon.play {
  display: block;
}

/* When playing: show pause icon */
.music-toggle.playing .music-icon.play {
  display: none;
}

.music-toggle.playing .music-icon.pause {
  display: block;
}

/* Pulse animation when playing */
.music-toggle.playing {
  animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(74, 93, 74, 0.4); }
  50% { box-shadow: 0 8px 35px rgba(74, 93, 74, 0.6), 0 0 0 8px rgba(143, 168, 143, 0.2); }
}

/* Music button mobile adjustments */
@media (max-width: 480px) {
  .music-toggle {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .music-icon {
    font-size: 0.9rem;
  }

  .music-icon.pause {
    font-size: 0.75rem;
  }
}

/* ===== Footer ===== */
footer {
  background: #2d3a2d;
  color: rgba(255,255,255,0.5);
  padding: 60px 20px;
  text-align: center;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
}

footer p:first-child {
  font-size: 2rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  margin-bottom: 15px;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Language Selection Popup ===== */
.lang-popup {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(74, 93, 74, 0.97) 0%, rgba(45, 58, 45, 0.98) 100%);
  backdrop-filter: blur(20px);
}

.lang-popup-card {
  background: rgba(255, 255, 255, 0.98);
  padding: 50px 40px;
  border-radius: 28px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 
    0 50px 100px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: langCardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes langCardIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-popup-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--gradient-1);
  border-radius: 24px;
}

.lang-popup-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.lang-popup-subtitle {
  font-size: 0.9rem;
  color: #8a9a8a;
  margin-bottom: 35px;
  line-height: 1.6;
}

.lang-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lang-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 30px;
  border: 2px solid rgba(143, 168, 143, 0.3);
  background: linear-gradient(135deg, rgba(250, 248, 243, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-popup-btn:hover {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(74, 93, 74, 0.3);
}

.lang-popup-btn:active {
  transform: translateY(0);
}

.lang-btn-flag {
  font-size: 1.4rem;
}

.lang-btn-text {
  letter-spacing: 0.5px;
}

.lang-popup.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-popup.hidden .lang-popup-card {
  transform: translateY(-20px) scale(1.02);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile adjustments for language popup */
@media (max-width: 480px) {
  .lang-popup-card {
    padding: 40px 30px;
    border-radius: 20px;
  }

  .lang-popup-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    border-radius: 20px;
  }

  .lang-popup-title {
    font-size: 1.4rem;
  }

  .lang-popup-subtitle {
    font-size: 0.85rem;
    margin-bottom: 28px;
  }

  .lang-popup-btn {
    padding: 16px 24px;
    font-size: 0.95rem;
  }
}

/* ===== Portada Boarding Pass ===== */
body.locked {
  overflow: hidden;
}

.cover {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
}

.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('b.jpeg') no-repeat center center;
  background-size: cover;
}

.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 243, 0.15);
}

.boarding-pass {
  width: min(900px, 95vw);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 50px 100px rgba(74, 93, 74, 0.3),
    0 0 0 1px rgba(143, 168, 143, 0.2);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation: ticketFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  z-index: 1;
}

@keyframes ticketFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ticket-header {
  background: var(--gradient-1);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ticket-header::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.ticket-airline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.airline-logo {
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.airline-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.airline-slogan {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}

.ticket-class {
  background: rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.ticket-body {
  padding: 35px 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  position: relative;
  background: linear-gradient(180deg, #fff 0%, rgba(250, 248, 243, 0.9) 100%);
}

.ticket-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(143, 168, 143, 0.4) 0px, rgba(143, 168, 143, 0.4) 5px, transparent 5px, transparent 10px);
}

.route-point {
  text-align: center;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
}

.route-point:first-child { animation-delay: 0.5s; }
.route-point:last-child { animation-delay: 0.7s; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.route-flag {
  font-size: 2rem;
  margin-bottom: 5px;
}

.route-code {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -2px;
}

.route-city {
  font-size: 0.9rem;
  color: #6b7a6b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.route-country {
  font-size: 0.8rem;
  color: #8a9a8a;
  margin-top: 3px;
}

.flight-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease 0.6s forwards;
}

.flight-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flight-line::before,
.flight-line::after {
  content: '';
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
  border-radius: 2px;
}

.flight-icon {
  font-size: 1.8rem;
  color: var(--accent);
  animation: planeFloat 2s ease-in-out infinite;
}

@keyframes planeFloat {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.flight-duration {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: #8a9a8a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.passenger-section {
  padding: 30px;
  background: rgba(197, 212, 192, 0.15);
  border-top: 2px dashed rgba(143, 168, 143, 0.3);
  border-bottom: 2px dashed rgba(143, 168, 143, 0.3);
  position: relative;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease 0.8s forwards;
}

.passenger-section::before,
.passenger-section::after {
  content: '';
  position: absolute;
  top: -15px;
  width: 30px;
  height: 30px;
  background: var(--cream);
  border-radius: 50%;
}

.passenger-section::before { left: -15px; }
.passenger-section::after { right: -15px; }

.passenger-names {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -1px;
  text-shadow: 
    1px 1px 0px rgba(255, 255, 255, 0.8),
    -1px -1px 0px rgba(255, 255, 255, 0.8),
    0px 2px 4px rgba(0, 0, 0, 0.1);
}

.passenger-label {
  text-align: center;
  font-size: 0.8rem;
  color: #8a9a8a;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.ticket-details {
  padding: 25px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #fff;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease 1s forwards;
}

.ticket-details .detail-item {
  text-align: center;
}

.ticket-details .detail-label {
  font-size: 0.7rem;
  color: #8a9a8a;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
  font-weight: 500;
}

.ticket-details .detail-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.ticket-footer {
  padding: 25px 30px;
  background: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease 1.1s forwards;
}

.barcode {
  display: flex;
  gap: 2px;
  height: 50px;
  align-items: flex-end;
}

.barcode span {
  width: 3px;
  background: rgba(255,255,255,0.8);
  border-radius: 1px;
}

.ticket-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cover-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: none;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(196, 149, 106, 0.4);
}

.cover-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 40px rgba(196, 149, 106, 0.5);
}

.cover-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.cover-btn:hover svg {
  transform: translateX(4px);
}

.cover-hint {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.cover.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cover.hidden .boarding-pass {
  transform: translateY(-30px) scale(1.05);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  header h1 { font-size: 2.8rem; letter-spacing: -1px; }

  .invitation-text { font-size: 0.85rem; letter-spacing: 2px; }
  .date-formal { font-size: 1rem; }

  section { padding: 70px 5%; }

  .countdown-wrapper { padding: 25px 20px; }
  .countdown-container { gap: 12px; }
  .time-box { 
    min-width: 70px; 
    padding: 12px;
  }
  .time-box span { font-size: 1.8rem; }

  .details-grid, .neighborhoods, .options-grid { grid-template-columns: 1fr; }

  .dresscode-item {
    flex-direction: column;
    text-align: center;
  }
  
  .dresscode-item .dresscode-icon {
    margin: 0 auto 10px;
  }

  .neighborhood-item {
    flex-direction: column;
    text-align: center;
  }

  .gifts-container, .dresscode-card, .option-card, .detail-card {
    padding: 35px 25px;
  }

  .hero-image {
    width: 180px;
    height: 180px;
    border-radius: 25px;
  }

  .passenger-names {
    font-size: 2.8rem;
  }

  nav {
    padding: 1rem 4%;
  }

  .logo {
    font-size: 1.2rem;
  }

  .lang-switch button {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 700px) {
  .ticket-body {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }
  
  .flight-path {
    order: -1;
  }
  
  .flight-line::before,
  .flight-line::after {
    width: 40px;
  }
  
  .route-code {
    font-size: 2.5rem;
  }

  .route-flag {
    font-size: 1.5rem;
    margin-bottom: 3px;
  }
  
  .ticket-details {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ticket-footer {
    flex-direction: column;
    text-align: center;
  }
  
  .ticket-cta {
    align-items: center;
  }
  
  .barcode {
    justify-content: center;
  }
}

/* ===== Mobile Wallet Pass Style ===== */
@media (max-width: 480px) {
  /* Mobile background */
  body::before {
    background-image: url('mob.jpeg');
  }

  .cover::before {
    background-image: url('mob.jpeg');
  }

  /* Solid overlay to hide flower background on mobile */
  .cover::after {
    background: rgba(61, 79, 61, 0.92);
  }

  .cover {
    padding: 20px;
    align-items: center;
    justify-content: center;
  }

  .boarding-pass {
    width: 100%;
    max-width: 340px;
    border-radius: 16px;
    background: linear-gradient(165deg, #4a5d4a 0%, #3d4f3d 40%, #2d3a2d 100%);
    box-shadow: 
      0 25px 50px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
  }

  /* Header estilo wallet */
  .ticket-header {
    background: transparent;
    padding: 20px 20px 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .ticket-header::after {
    display: none;
  }

  .ticket-airline {
    gap: 10px;
    flex-direction: row;
    align-items: center;
  }

  .airline-logo {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    border-radius: 10px;
  }

  .airline-name {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    opacity: 0.95;
  }

  .airline-slogan {
    font-size: 0.65rem;
    opacity: 0.7;
  }

  .ticket-class {
    background: rgba(212, 175, 55, 0.9);
    color: #2d3a2d;
    padding: 5px 12px;
    font-size: 0.6rem;
    letter-spacing: 1px;
    border-radius: 6px;
    font-weight: 700;
  }

  /* Sección pasajeros - protagonista del pass */
  .boarding-pass .passenger-section {
    order: -2;
    padding: 0 20px 20px;
    background: transparent;
    border: none;
  }

  .passenger-section::before,
  .passenger-section::after {
    display: none;
  }

  .passenger-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    margin-bottom: 4px;
    text-align: left;
  }

  .passenger-names {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    text-align: left;
    text-shadow: 
      1px 1px 0px rgba(0, 0, 0, 0.3),
      0px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    line-height: 1.1;
  }

  /* Ruta - estilo compacto wallet */
  .ticket-body {
    order: -1;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 12px;
    border-radius: 12px;
  }

  .ticket-body::before {
    display: none;
  }

  .route-point {
    text-align: center;
    flex: 0 0 auto;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .route-code {
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 2px;
  }

  .route-flag {
    font-size: 1.1rem;
    margin-bottom: 3px;
  }

  .route-city {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .route-country {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1px;
    white-space: nowrap;
  }

  .flight-path {
    flex: 0 0 auto;
    padding: 0;
  }

  .flight-line {
    gap: 6px;
  }

  .flight-line::before,
  .flight-line::after {
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
  }

  .flight-icon {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
  }

  .flight-duration {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
  }

  /* Detalles - grid estilo wallet */
  .ticket-details {
    padding: 16px 20px;
    background: transparent;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
  }

  .ticket-details .detail-item {
    text-align: left;
  }

  .ticket-details .detail-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1.5px;
    margin-bottom: 3px;
    text-transform: uppercase;
  }

  .ticket-details .detail-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
  }

  /* Footer con barcode estilo wallet */
  .ticket-footer {
    background: #fff;
    padding: 20px;
    margin: 12px;
    margin-top: 8px;
    border-radius: 12px;
    flex-direction: column;
    gap: 16px;
  }

  .barcode {
    width: 100%;
    height: 60px;
    justify-content: center;
    gap: 2px;
    padding: 10px 0;
    background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
    border-radius: 8px;
  }

  .barcode span {
    width: 2.5px;
    background: #2d3a2d;
    border-radius: 1px;
  }

  .ticket-cta {
    width: 100%;
    align-items: center;
  }

  .cover-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.85rem;
    background: var(--gradient-1);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(74, 93, 74, 0.3);
  }

  .cover-hint {
    color: #8a9a8a;
    font-size: 0.7rem;
    margin-top: 4px;
  }

  /* Animación de entrada wallet */
  .boarding-pass {
    animation: walletSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(60px) scale(0.9);
  }

  @keyframes walletSlideIn {
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Strip decorativo superior */
  .ticket-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--accent) 50%, var(--gold) 100%);
  }
}

/* ===== Extra small phones (iPhone SE, etc.) ===== */
@media (max-width: 375px) {
  .cover {
    padding: 16px;
  }

  .boarding-pass {
    max-width: 300px;
    border-radius: 14px;
  }

  .ticket-header {
    padding: 16px 16px 12px;
  }

  .airline-logo {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .airline-name {
    font-size: 0.75rem;
  }

  .airline-slogan {
    font-size: 0.6rem;
  }

  .ticket-class {
    padding: 4px 10px;
    font-size: 0.55rem;
  }

  .boarding-pass .passenger-section {
    padding: 0 16px 16px;
  }

  .passenger-names {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
  }

  .ticket-body {
    padding: 12px 16px;
    margin: 0 10px;
    border-radius: 10px;
  }

  .route-code {
    font-size: 1.4rem;
  }

  .route-flag {
    font-size: 1.1rem;
  }

  .route-city {
    font-size: 0.6rem;
  }

  .route-country {
    font-size: 0.5rem;
  }

  .route-flag {
    font-size: 1rem;
  }

  .flight-line::before,
  .flight-line::after {
    width: 16px;
  }

  .ticket-details {
    padding: 12px 16px;
    gap: 12px;
  }

  .ticket-details .detail-value {
    font-size: 1rem;
  }

  .ticket-footer {
    padding: 16px;
    margin: 10px;
    gap: 12px;
  }

  .barcode {
    height: 50px;
  }

  .cover-btn {
    padding: 12px 20px;
    font-size: 0.8rem;
  }
}

/* ===== Landscape mode on phones ===== */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .cover {
    padding: 10px;
    align-items: center;
  }

  .boarding-pass {
    max-width: 600px;
    max-height: 95vh;
    flex-direction: row;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #4a5d4a 0%, #3d4f3d 100%);
  }

  .ticket-header {
    width: 100%;
    padding: 10px 20px;
    background: transparent;
  }

  .ticket-header::before {
    height: 3px;
  }

  .boarding-pass .passenger-section {
    width: 40%;
    padding: 10px 15px;
    order: 0;
  }

  .passenger-names {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
  }

  .ticket-body {
    width: 60%;
    padding: 10px 15px;
    margin: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.1);
    order: 0;
  }

  .route-code {
    font-size: 1.2rem;
  }

  .route-flag {
    font-size: 1rem;
  }

  .ticket-details {
    width: 100%;
    padding: 8px 20px;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .ticket-details .detail-value {
    font-size: 0.9rem;
  }

  .ticket-footer {
    width: 100%;
    padding: 10px 15px;
    margin: 8px;
    flex-direction: row;
    gap: 15px;
  }

  .barcode {
    flex: 1;
    height: 40px;
  }

  .ticket-cta {
    flex: 0 0 auto;
    width: auto;
  }

  .cover-btn {
    width: auto;
    padding: 10px 20px;
    font-size: 0.75rem;
  }
}
