:root {
  --dorado: #a88d4e;
  --dorado-suave: rgba(168, 141, 78, 0.16);
  --marron: #8d7444;
  --texto: #9b8155;
  --crema: #f8efe3;
  --marfil-box: rgba(252, 248, 242, 0.94);
  --rosa: #c25b8f;
  --morado: #8a59b2;
  --verde: #5a9a84;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #e6d8c8;
  color: var(--marron);
  font-family: "Avenir Next", Arial, sans-serif;
}

.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--crema);
  background-image: url("../images/paper-bg.webp");
  background-size: cover;
  background-position: center top;
  box-shadow: 0 0 35px rgba(75, 48, 29, 0.15);
}

/* ========= CABECERA ========= */

.header {
  position: relative;
  min-height: 300px;
  padding: 34px 20px 0;
}

.date-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 96px;
  z-index: 4;
}

.date-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.logo-wrap {
  position: relative;
  z-index: 3;
  padding-top: 56px;
  text-align: center;
}

.logo {
  display: block;
  width: 58%;
  max-width: 285px;
  height: auto;
  margin: 0 auto;
}

.floral {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.floral-top-right {
  width: 43%;
  top: 0;
  right: 0;
  z-index: 2;
}

/* ========= CAJA PRINCIPAL ========= */

.intro {
  position: relative;
  z-index: 3;
  margin: 10px 28px 34px;
  padding: 24px 26px 28px;
  text-align: center;
  background: var(--marfil-box);
  border: 1px solid var(--dorado-suave);
  border-radius: 34px;
  box-shadow: 0 8px 22px rgba(95, 64, 34, 0.04);
}

.intro h1,
.section-title {
  font-family: "Arial Narrow", "Avenir Next Condensed", Arial, sans-serif;
  font-stretch: condensed;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--dorado);
}

.intro h1 {
  margin: 0 0 18px;
  font-size: clamp(22px, 5.7vw, 28px);
  line-height: 1.02;
  white-space: nowrap;
}

.intro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--texto);
}

/* ========= BOTONES ========= */

.button-grid {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 16px;
  padding: 0 28px;
}

.button-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.button-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.app-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 108px;
  padding: 12px 8px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 18px;
  text-decoration: none;
  text-align: center;
  color: white;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow:
    0 6px 15px rgba(73, 42, 43, 0.11),
    inset 0 1px 2px rgba(255,255,255,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-button:active {
  transform: scale(0.97);
}

.app-button:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 3px;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 18px;
  line-height: 1;
}

.button-label {
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
}

.button-map {
  background: linear-gradient(145deg, #6eaa8b, #3c7e69);
}

.button-bus {
  background: linear-gradient(145deg, #b88ad0, #7d56a5);
}

.button-food {
  background: linear-gradient(145deg, #d696b1, #b95887);
}

.button-upload {
  background: linear-gradient(135deg, #8c59b4, #c14d95);
}

.button-message {
  background: linear-gradient(135deg, #c76792, #9a56b1);
}

/* ========= SEGUNDA SECCIÓN ========= */

.eye-section {
  position: relative;
  z-index: 3;
  padding-top: 28px;
}

.section-divider {
  width: calc(100% - 56px);
  height: 1px;
  margin: 0 auto 22px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 141, 78, 0.85) 14%,
    rgba(168, 141, 78, 0.85) 86%,
    transparent
  );
}

.section-title {
  margin: 0 20px 14px;
  text-align: center;
  font-size: clamp(24px, 7vw, 32px);
  line-height: 1;
}

.section-description {
  max-width: 380px;
  padding: 0 30px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--texto);
}

.privacy-note {
  margin: 18px 28px 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: #927851;
}

/* ========= TEXTO FINAL ANTES DEL CIERRE ========= */

.footer {
  position: relative;
  z-index: 3;
  padding: 18px 20px 8px;
  text-align: center;
  color: var(--dorado);
  font-size: 11px;
  letter-spacing: 2px;
}


/* ========= CIERRE INFERIOR DEL DISEÑO ========= */

.final-art {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 360px;
  margin-top: 2px;
  overflow: visible;
}

.floral-bottom-left {
  width: 56%;
  left: -6px;
  bottom: -50px;
  z-index: 1;
}

.sidecar {
  position: absolute;
  width: 78%;
  max-width: 390px;
  height: auto;
  right: -8px;
  bottom: -60px;
  z-index: 2;
}


/* ========= MÓVILES PEQUEÑOS ========= */

@media (max-width: 390px) {
  .header {
    min-height: 280px;
    padding-top: 28px;
  }

  .date-badge {
    width: 84px;
    left: 18px;
    top: 22px;
  }

  .logo-wrap {
    padding-top: 62px;
  }

  .logo {
    width: 60%;
  }

  .floral-top-right {
    width: 45%;
  }

  .intro {
    margin-left: 20px;
    margin-right: 20px;
    padding: 22px 20px 26px;
  }

  .intro h1 {
    font-size: 24px;
  }

  .button-grid {
    padding: 0 20px;
    gap: 12px;
  }

  .app-button {
    min-height: 100px;
    font-size: 10.5px;
  }

  .button-grid.two .app-button {
    min-height: 104px;
  }

  .section-description {
    padding: 0 20px;
  }

  
.final-art {
  height: 330px;
}

.floral-bottom-left {
  width: 56%;
  bottom: -40px;
}

.sidecar {
  width: 78%;
  right: -10px;
  bottom: -48px;
}

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* =========================================
   TIPOGRAFÍA ORIGINAL DE NUESTRA BODA
========================================= */

@font-face {
  font-family: "Innercity";
  src: url("../fonts/InnercityRegular.otf")
       format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* TITULOS PRINCIPALES */

.intro h1,
.section-title {
  font-family: "Innercity", "Arial Narrow", sans-serif;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* EL PARTIDO DE NUESTRA VIDA */

.intro h1 {
  font-size: clamp(26px, 7.5vw, 36px);
  white-space: nowrap;
}

/* LO QUE EL OJO NO VE */

.section-title {
  font-size: clamp(30px, 8.5vw, 42px);
}
