@font-face {
  font-family: "Gealova";
  src: url("assets/Gealova.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-top: #22404d;
  --bg-bottom: #3ca1b5;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.8);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--white);
  background: var(--bg-top);
  font-family: "Montserrat", sans-serif;
}

button,
a,
input {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

.invitation {
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-top) 0%, #286172 38%, var(--bg-bottom) 100%);
}

.section-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

/* El trazo muy fino ayuda a acercar Gealova al mockup sin falsear demasiado el peso. */
h1,
.event-time,
.event-type,
.event-place h2,
.rsvp h2,
.closing-title,
.closing-date,
.date-lockup,
.tipo-evento {
  font-family: "Gealova", Georgia, serif;
  -webkit-text-stroke: 0.22px currentColor;
  text-rendering: geometricPrecision;
}

.desktop-only {
  display: none;
}

.hero {
  
  padding-top: 72px;
  padding-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
}

.brand-logo {
  display: block;
  width: min(310px, 46vw);
  height: auto;
  filter: brightness(0) invert(1);
}

.brand-logo--top {
  margin-top: 38px;
  filter: brightness(0) invert(1);
}

.hero-copy {
  margin-top: 54px;
  width: 85%
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 13vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}

.hero-copy p {
  max-width: 690px;
  margin: 30px auto 0;
  font-size: 0.82rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.date-lockup {
  margin-top: 62px;
  width: min(100%, 540px);
  display: grid;
  grid-template-columns: 1fr 1px auto 1px 1fr;
  align-items: center;
  gap: 20px;
}

.date-lockup span {
  font-size: clamp(1rem, 4.2vw, 1.45rem);
  white-space: nowrap;
}

.date-lockup span:first-of-type {
  transform: translateX(20px);
}

.date-lockup span:last-of-type {
  transform: translateX(-20px);
}

.date-lockup strong {
  font-weight: 400;
  font-size: clamp(3.8rem, 15vw, 5.6rem);
  line-height: 1;
}

.date-lockup i {
  width: 1px;
  height: 46px;
  background: var(--line);
}

.outline-button,
.small-outline-button,
.confirm-button {
  cursor: pointer;
  border-radius: 0;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.outline-button:hover,
.small-outline-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.calendar-button {
  margin-top: 36px;
  width: auto;
  min-height: 39px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.62rem;
}

.details {
  padding-top: 52px;
  display: grid;
  gap: 82px;
}

.event-card {
  width: min(100%, 520px);
  min-height: 315px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 30px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event-time {
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 0.84;
}

.event-time span {
  font-size: clamp(4rem, 1vw, 6.3rem);
}

.event-time small {
  margin-left: 2px;
  font-size: clamp(1.5rem, 15vw, 2.25rem);
}

.event-type {
  margin: 4px 0 0;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  line-height: 1;
}



.event-place h2 {
  margin: 30px 0 0;
  font-size: clamp(1.55rem, 6vw, 2.05rem);
  font-weight: 400;
}

.small-outline-button {
  display: inline-grid;
  place-items: center;
  min-width: 170px;
  min-height: 27px;
  margin-top: 11px;
  border: 1px solid var(--line);
  font-size: 0.53rem;
}

.event-place address {
  margin-top: 14px;
  font-size: 0.54rem;
  font-style: normal;
  line-height: 1.25;
}

.rsvp {
  width: min(100%, 560px);
  margin-inline: auto;
  text-align: center;
}

.rsvp-intro {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.17em;
}

.rsvp h2 {
  margin: 22px 0 0;
  font-size: clamp(2.1rem, 9vw, 3.8rem);
  font-weight: 400;
  line-height: 0.9;
}

.rsvp-label {
  margin: 30px 0 14px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

#rsvp-form {
  display: grid;
  justify-items: center;
  gap: 25px;
}

.radio-choice {
  width: min(100%, 320px);
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: left;
}

.radio-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-radio {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid var(--white);
  border-radius: 50%;
  position: relative;
}

.radio-choice input:checked + .custom-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--white);
}

.radio-choice:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.confirm-button {
  width: min(100%, 250px);
  min-height: 39px;
  margin-top: 13px;
  border: 1px solid var(--white);
  background: var(--white);
  color: #244955;
  font-size: 0.7rem;
}

.confirm-button:hover {
  transform: translateY(-1px);
}

.form-message {
  min-height: 18px;
  margin: 2px 0 0;
  font-size: 0.62rem;
}
.rsvp-success {
  text-align: center;
}

.rsvp-success p {
  margin: 0;
  font-family: "Gealova", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  -webkit-text-stroke: 0.22px currentColor;
}

.rsvp-success span {
  display: block;
  margin-top: 18px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.closing {
  padding-top: 105px;
  padding-bottom: 68px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-copy {
  margin: 0;
  max-width: 85%;
  font-size: 0.8rem;
  line-height: 1.2;
}

.brand-logo--bottom {
  width: min(250px, 63vw);
  margin-top: 90px;
  margin-bottom: 26px;
  filter: brightness(0) invert(1);
}

.closing-title {
  margin: 35px 0 0;
  font-size: clamp(3.15rem, 14vw, 5.4rem);
  line-height: 1;
}

.closing-date {
  margin: 30px 0 0;
  font-size: clamp(1.15rem, 5vw, 1.7rem);
}

.website {
  
  padding-top: 70px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
}
.tipo-evento {
  font-size: 30px;
  margin: 0;
}

.tipo-evento::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: #fff;
  margin: 14px auto 0;
}

@media (min-width: 900px) {
  .section-shell {
    width: min(calc(100% - 80px), var(--max-width));
  }
.date-lockup span:first-of-type,
.date-lockup span:last-of-type {
  transform: none;
}
  .desktop-only {
    display: initial;
  }

  .hero {
    
    padding-top: 84px;
    padding-bottom: 40px;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .brand-logo--top {
    width: 280px;
    margin-top: 40px;
    filter: brightness(0) invert(1);
  }

  .hero-copy {
    margin-top: 64px;
  }

  .hero-copy h1 {
    font-size: 4.9rem;
  }

  .hero-copy p {
    margin-top: 26px;
    font-size: 0.9rem;
  }

 .date-lockup {
  margin-top: 62px;
  width: min(100%, 540px);
  display: grid;
  grid-template-columns: max-content 1px auto 1px max-content;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.date-lockup span {
  font-size: clamp(1rem, 4.2vw, 1.45rem);
  white-space: nowrap;
}


  .date-lockup strong {
    font-size: 5.25rem;
  }

  .calendar-button {
    margin-top: 31px;
    width: 310px;
  }

  .details {
    padding-top: 76px;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 100px;
  }

  .event-card {
    width: 100%;
    min-height: 345px;
    margin: 0;
    padding: 34px 30px 28px;
  }

  .event-time span {
    font-size: 4rem;
  }

  .event-time small {
    font-size: 2rem;
  }

  .event-type {
    font-size: 2.1rem;
  }

  

  .rsvp {
    width: 100%;
    margin: 0;
  }

  .rsvp-intro {
    font-size: 0.63rem;
  }

  .rsvp h2 {
    margin-top: 26px;
    font-size: 3.25rem;
  }

  .rsvp-label {
    margin-top: 29px;
  }

  .radio-choice {
    width: 285px;
    min-height: 36px;
  }

  .confirm-button {
    width: 220px;
    min-height: 37px;
  }

  .closing {
    min-height: 1020px;
    padding-top: 180px;
  }

  .closing-copy {
    font-size: 0.9rem;
  }

  .brand-logo--bottom {
    width: 220px;
    margin-top: 118px;
    filter: brightness(0) invert(1);
  }

  .closing-title {
    margin-top: 42px;
    font-size: 4.8rem;
  }

  .closing-date {
    margin-top: 34px;
    font-size: 1.55rem;
  }

  .website {
    font-size: 0.9rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --max-width: 1160px;
  }

  .hero {
    min-height: 850px;
  }

  .details {
    gap: 130px;
  }

  .closing {
    min-height: 1120px;
  }
}
