@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
  --black: #050505;
  --text: #0a0a0a;
  --muted: #69727b;
  --line: #8b8b8b;
  --soft-blue: #e7f1f8;
  --error: #a51d1d;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: 'Montserrat', Arial, sans-serif;
}

input,
select,
textarea,
button {
  font: inherit;
}

.bautismo-page {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 72px 0 0;
}

.date-banner {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--soft-blue);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.date-banner__icon {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
}

.date-banner__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero {
  width: min(100%, 660px);
  margin: 54px auto 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 88px);
  line-height: .82;
  letter-spacing: -4.6px;
  font-weight: 900;
}


.hero p {
  margin: 22px 0 28px;
  max-width: 650px;
  font-size: 14px;
  line-height: 1.22;
  font-weight: 700;
}

.hero-image {
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 46%;
}

.form-section {
  width: min(100%, 720px);
  margin: 48px auto 0;
}

.form-section h2 {
  margin: 0 0 28px;
  font-size: clamp(31px, 5vw, 42px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1.3px;
}

.field {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  margin-bottom: 17px;
}

.field label {
  padding-bottom: 5px;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #111;
  box-shadow: none;
}

.field input,
.field select {
  height: 34px;
  padding: 4px 26px 4px 4px;
}

.field textarea {
  min-height: 64px;
  padding: 7px 4px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: #000;
  border-bottom-width: 2px;
}

.select-wrap {
  position: relative;
  min-width: 0;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 5px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.field--textarea {
  align-items: start;
}

.field--textarea label {
  padding-top: 7px;
}

.form-message {
  margin: -5px 0 18px;
  padding: 10px 13px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.form-message--error {
  background: #fff0f0;
  color: var(--error);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 44px;
  margin-top: 15px;
  padding: 10px 25px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.submit-btn:hover {
  opacity: .86;
}

.submit-btn:active {
  transform: translateY(1px);
}

.date-banner--bottom {
  margin-top: 58px;
  border-radius: 10px 10px 0 0;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.thanks-card {
  width: min(100%, 650px);
  text-align: center;
}

.thanks-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
}

.thanks-card h1 {
  margin: 0;
  font-size: clamp(52px, 9vw, 88px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -4px;
}

.thanks-card p {
  margin: 24px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.thanks-card .thanks-secondary {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .bautismo-page {
    width: min(100% - 24px, 820px);
    padding-top: 26px;
  }

  .date-banner {
    gap: 10px;
    padding: 10px 12px;
    font-size: 12.5px;
  }

  .date-banner__icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .hero {
    margin-top: 46px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 50px);
  line-height: .88;
  letter-spacing: -2.5px;
  }

  .hero p {
    margin-top: 19px;
    font-size: 12px;
  }

  .form-section {
    margin-top: 42px;
  }

  .form-section h2 {
    margin-bottom: 27px;
    font-size: 32px;
  }

  .field {
    grid-template-columns: auto minmax(0, 1fr);
    margin-bottom: 15px;
  }

  .field label {
    font-size: 13.5px;
  }

  .field:has(label[for="turno"]),
  .field:has(label[for="gdv"]) {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .field:has(label[for="turno"]) label,
  .field:has(label[for="gdv"]) label {
    padding-bottom: 0;
  }

  .field--textarea {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .submit-btn {
    min-width: 164px;
    margin-top: 10px;
  }

  .date-banner--bottom {
    margin-top: 44px;
  }
}

/* ==========================================
   GRACIAS
   ========================================== */

.thankyou-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.thankyou-card {
  width: 100%;
  max-width: 600px;
  text-align: center;
  padding: 60px 35px;
}

.thankyou-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 700;
}

.thankyou-card h1 {
  margin: 0 0 25px;
  font-size: clamp(52px, 10vw, 82px);
  line-height: .9;
  letter-spacing: -3px;
  font-weight: 900;
}

.thankyou-lead {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.thankyou-card p {
  line-height: 1.4;
}

.thankyou-divider {
  width: 50px;
  height: 3px;
  background: #000;
  margin: 35px auto;
}

.thankyou-small {
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .thankyou-card {
    padding: 40px 10px;
  }

  .thankyou-card h1 {
    font-size: 58px;
  }

  .thankyou-lead {
    font-size: 18px;
  }
}


/* ==========================================
   DESKTOP
   Maqueta PC - mantiene intacto el mobile
   ========================================== */

@media (min-width: 641px) {
  .bautismo-page {
    width: min(100% - 64px, 1180px);
    padding-top: 78px;
  }

  .desktop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 58px;
    align-items: start;
  }

  .desktop-left,
  .desktop-right {
    min-width: 0;
  }

  .desktop-left .date-banner {
    width: 100%;
  }

  .desktop-left .hero {
    width: 100%;
    margin: 28px 0 0;
  }

  .desktop-left .hero h1 {
    font-size: clamp(66px, 6.2vw, 88px);
    line-height: .82;
    letter-spacing: -4.6px;
  }

  .desktop-left .hero p {
    margin: 22px 0 28px;
    max-width: 540px;
    font-size: 14px;
  }

  .desktop-left .hero-image {
    width: 100%;
  }

  .desktop-left .hero-image img {
    aspect-ratio: 1.34 / 1;
    object-fit: cover;
    object-position: center 46%;
  }

  .desktop-right .form-section {
    width: 100%;
    margin: 2px 0 0;
  }

  .desktop-right .form-section h2 {
    margin-bottom: 30px;
    font-size: clamp(34px, 3vw, 44px);
  }

  .desktop-right .field {
    margin-bottom: 19px;
  }

  .desktop-right .field label {
    font-size: 14px;
  }

  .desktop-right .field input,
  .desktop-right .field select {
    height: 32px;
  }

  .desktop-right .field textarea {
    min-height: 68px;
  }

  .desktop-right .submit-btn {
    margin-top: 12px;
  }

  .date-banner--bottom {
    width: min(100%, 1050px);
    margin: 34px auto 0;
    border-radius: 10px 10px 0 0;
  }
}
