:root {
  --ink: #251b17;
  --red: #af0715;
  --paper: #ffdaaa;
  --paper-dark: #f1c99b;
  --edge: #9b643f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  /* The sides of the poster use the dark texture supplied for the contest. */
  background-color: #161310;
  background-image: url('../img/fondo_2.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-family: 'Arial Narrow', 'Liberation Sans Narrow', 'Roboto Condensed', Arial, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.dropzone:focus-visible {
  outline: 3px solid #a6000f;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.poster {
  position: relative;
  isolation: isolate;
  max-width: 860px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 23px 82px 50px;
  /* Paper belongs to the poster, not to the entire browser window. */
  background-color: #ffdab0;
  background-image: url('../img/FONDO.webp');
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.poster__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border: 72px solid transparent;
  border-image-source: url('../img/MARCO%20CUERDAS.png');
  border-image-slice: 135 102 137 102;
  border-image-width: 72px 70px 72px 70px;
  border-image-repeat: stretch;
}

.poster__content {
  position: relative;
  z-index: 2;
}

/* The logo sits below the top rope, in normal document flow. */
.masthead {
  position: relative;
  z-index: 5;
  text-align: center;
  margin-top: 27px;
  margin-bottom: 6px;
}

.logo-link {
  display: inline-block;
  line-height: 0;
  max-width: 100%;
}

.brand-logo {
  width: 260px;
  max-width: 66vw;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(60, 32, 12, .06));
}

.hero {
  text-align: center;
}

.hero__headline {
  display: block;
  width: 98%;
  margin: 35px auto 3px;
}

.hero__art {
  display: block;
  width: 111%;
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto;
}

.entry {
  text-align: center;
}

.entry__title img {
  display: block;
  width: 91%;
  margin: 14px auto 7px;
}

.ornament {
  display: block;
  width: 85%;
  margin: 14px auto 13px;
}

.entry__intro {
  max-width: 510px;
  margin: 0 auto 31px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin: 0 auto;
  width: 95%;
  text-align: left;
}

.field {
  position: relative;
  border: 1.5px solid rgba(144, 77, 39, .38);
  border-radius: 5px;
  background: rgba(255, 244, 220, .29);
  box-shadow: 0 1px 2px rgba(100, 43, 19, .10);
  min-height: 63px;
  padding: 8px 11px 7px 44px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.required {
  color: #b10919;
}

.field__control {
  display: block;
}

.field-icon {
  position: absolute;
  width: 26px;
  height: 26px;
  left: 13px;
  top: 19px;
  color: #33251f;
}

.field input {
  display: block;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  width: 100%;
  height: 24px;
  padding: 0;
  margin: 1px 0 0;
  color: #31231c;
  font-size: 13px;
  font-weight: 400;
}

.field input::placeholder {
  color: #ac816c;
  opacity: 1;
}

.field input[type=date] {
  color: #594538;
  font-size: 12px;
  min-width: 0;
}

.field input[type=date]:invalid {
  color: #b18b79;
}

.field:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 2px #af071521;
}

.field input:focus-visible {
  outline: 0;
}

.ornament--form {
  width: 85%;
  margin: 17px auto 3px;
}

.upload-title {
  font-family: Impact, 'Arial Narrow', 'Liberation Sans Narrow', sans-serif;
  font-weight: 900;
  font-stretch: condensed;
  letter-spacing: .3px;
  font-size: 24px;
  margin: 0;
}

.upload-description {
  font-family: Arial, sans-serif;
  font-size: 13px;
  margin: 7px 0 18px;
}

.dropzone {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  min-height: 133px;
  width: 92%;
  margin: 0 auto;
  padding: 17px 12px;
  border: 2px dashed rgba(166, 15, 25, .38);
  border-radius: 14px;
  background: rgba(255, 240, 209, .32);
  transition: border-color .15s ease, background .15s ease;
}

.dropzone:hover,
.dropzone.drag-active,
.dropzone:focus-visible {
  border-color: var(--red);
  background: rgba(255, 247, 229, .58);
}

.upload-symbol {
  color: #a80b16;
  flex-shrink: 0;
}

.dropzone-primary {
  font-size: 15px;
  font-weight: 800;
}

.dropzone-secondary {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #55413a;
  line-height: 1.6;
}

.browse-link {
  color: #9c0813;
  text-decoration: underline;
  font-weight: 700;
}

.photo-preview {
  max-width: 190px;
  max-height: 165px;
  object-fit: contain;
  border-radius: 8px;
  margin: 0 auto;
}

.filename {
  max-width: 90%;
  overflow-wrap: anywhere;
  font: 12px Arial, sans-serif;
}

.remove-photo {
  padding: 5px 10px;
  margin: 7px auto 0;
  border: 0;
  background: none;
  color: var(--red);
  text-decoration: underline;
  cursor: pointer;
}

.error {
  color: #a90b0d;
  font: 700 12px Arial, sans-serif;
}

.social-title {
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .3px;
  margin: 23px 0 19px;
}

.star {
  font-family: Georgia, serif;
  color: var(--red);
  font-size: 22px;
  vertical-align: middle;
  padding: 0 6px;
}

.social-links {
  width: 94%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin: 0 auto;
}

.social-link {
  color: #1e1917;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  min-height: 61px;
  text-align: left;
  padding: 8px 13px;
  border: 1.5px solid rgba(144, 77, 39, .34);
  border-radius: 5px;
  background: rgba(255, 244, 220, .3);
  font-size: 16px;
  font-weight: 800;
  transition: background .15s, transform .15s;
}

.social-link:hover {
  background: #fff0d8b8;
  transform: translateY(-1px);
}

.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 33px;
  font-weight: 800;
}

.social-icon--facebook {
  background: #1b69c8;
  padding-top: 5px;
}

.social-icon--instagram {
  background: linear-gradient(40deg, #ffc339, #fd3b43 44%, #d8157e 75%, #7742c5);
}

.social-arrow {
  margin-left: auto;
  color: var(--red);
  font-size: 17px;
}

.consents {
  width: 94%;
  margin: 23px auto 14px;
  text-align: left;
  display: grid;
  gap: 12px;
}

.check {
  font: 12px/1.5 Arial, Helvetica, sans-serif;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #765c4d;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: #a60816;
  margin: 0;
  cursor: pointer;
}

.submit-button {
  display: block;
  max-width: 375px;
  width: 67%;
  height: auto;
  padding: 0;
  margin: 17px auto 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.09);
}

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

.submit-button:disabled {
  opacity: .6;
  cursor: wait;
}

.submit-button img {
  width: 100%;
  display: block;
}

.submit-status {
  padding: 12px 14px;
  margin: 12px auto;
  max-width: 95%;
  border: 1px solid #8c5a43;
  border-radius: 8px;
  background: #fff0d8;
  font: 700 12px/1.5 Arial, sans-serif;
}

.disclaimer {
  font: 10px/1.4 Arial, sans-serif;
  color: #8b5e45;
  margin: 10px 0 0;
}

/* Desktop and large monitors: narrow centered parchment + dark side panels. */
@media (min-width:701px) {
  .poster {
    width: 630px;
    max-width: 100%;
    padding: 17px 60px 38px;
    box-shadow: 0 0 23px rgba(0, 0, 0, .36);
  }

  .poster__frame {
    inset: 0 8px;
    border-width: 53px 51px;
    border-image-width: 53px 51px 53px 51px;
  }

  .masthead {
    margin-top: 12px;
    margin-bottom: 4px;
  }

  .brand-logo {
    width: 180px;
  }

  .hero__headline {
    width: 94%;
    margin-top: 20px;
    margin-bottom: 2px;
  }

  .hero__art {
    width: 107%;
  }

  .entry__title img {
    margin-top: 8px;
    margin-bottom: 5px;
  }

  .ornament {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .entry__intro {
    margin-bottom: 23px;
    font-size: 11px;
  }

  .fields-grid {
    gap: 17px 23px;
  }

  .field {
    min-height: 56px;
    padding-top: 7px;
    padding-bottom: 6px;
    padding-left: 39px;
  }

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

  .field-icon {
    width: 22px;
    height: 22px;
    top: 17px;
    left: 11px;
  }

  .field input {
    font-size: 11px;
    height: 22px;
  }

  .ornament--form {
    margin-top: 12px;
    margin-bottom: 3px;
  }

  .upload-title {
    font-size: 21px;
  }

  .social-title {
    font-size: 21px;
  }
}

@media (max-width:700px) {
  .poster {
    max-width: 100%;
    padding: 20px 47px 35px;
  }

  .poster__frame {
    border-width: 52px 43px;
    border-image-slice: 130 102 137 102;
    border-image-width: 54px 42px 54px 42px;
  }

  .masthead {
    margin-top: 24px;
  }

  .brand-logo {
    width: 225px;
  }

  .hero__headline {
    margin-top: 24px;
  }

  .hero__art {
    width: 115%;
  }

  .entry__title img {
    margin-top: 12px;
    width: 98%;
  }

  .ornament {
    width: 97%;
  }

  .entry__intro {
    font-size: 11px;
    margin-bottom: 23px;
  }

  .fields-grid {
    width: 100%;
    gap: 15px;
  }

  .field {
    padding-left: 38px;
    padding-right: 6px;
  }

  .field-icon {
    left: 9px;
    width: 23px;
  }

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

  .field input {
    font-size: 11px;
  }

  .social-links {
    width: 100%;
    gap: 11px;
  }

  .social-link {
    gap: 8px;
    padding: 8px;
    font-size: 12px;
  }

  .social-icon {
    width: 37px;
    height: 37px;
    font-size: 28px;
  }

  .social-icon--instagram svg {
    width: 20px;
    height: 20px;
  }

  .consents {
    width: 100%;
  }
}

@media (max-width:490px) {
  .poster {
    padding: 18px 30px 26px;
  }

  .poster__frame {
    border-width: 43px 27px;
    border-image-width: 43px 30px 43px 30px;
  }

  .masthead {
    margin-top: 23px;
    margin-bottom: 4px;
  }

  .brand-logo {
    width: 190px;
    max-width: 67vw;
  }

  .hero__headline {
    width: 108%;
    max-width: none;
    margin: 23px 0 4px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero__art {
    width: 118%;
  }

  .entry__title img {
    width: 113%;
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 10px 0 4px;
  }

  .ornament {
    width: 109%;
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 13px;
    margin-bottom: 13px;
  }

  .entry__intro {
    font-size: 11px;
    line-height: 1.5;
    margin: 0 auto 18px;
  }

  .fields-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 96%;
  }

  .field {
    min-height: 64px;
    padding-left: 49px;
  }

  .field-icon {
    left: 14px;
    width: 26px;
  }

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

  .field input {
    font-size: 13px;
  }

  .ornament--form {
    margin-top: 15px;
    margin-bottom: 5px;
  }

  .upload-title {
    font-size: 21px;
  }

  .upload-description {
    font-size: 12px;
    line-height: 1.4;
    margin: 7px 0 15px;
  }

  .dropzone {
    width: 100%;
    min-height: 152px;
  }

  .dropzone-primary {
    font-size: 14px;
  }

  .dropzone-secondary {
    font-size: 10px;
  }

  .social-title {
    font-size: 19px;
    margin: 20px 0 14px;
  }

  .star {
    font-size: 15px;
    padding: 0 2px;
  }

  .social-links {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .social-link {
    padding: 7px;
    gap: 7px;
    min-height: 52px;
    font-size: 12px;
  }

  .social-icon {
    width: 31px;
    height: 31px;
    font-size: 24px;
  }

  .social-icon--instagram svg {
    width: 18px;
    height: 18px;
  }

  .social-arrow {
    font-size: 11px;
  }

  .check {
    font-size: 11px;
    gap: 8px;
  }

  .submit-button {
    width: 92%;
  }

  .disclaimer {
    font-size: 9px;
  }
}

@media (max-width:360px) {
  .poster {
    padding-left: 26px;
    padding-right: 26px;
  }

  .poster__frame {
    border-image-width: 39px 25px 39px 25px;
  }

  .social-link {
    gap: 5px;
    font-size: 11px;
    padding: 6px;
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
/* Integration-only elements: do not alter the landing page's visual layout. */
.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.turnstile-container:not([hidden]) {
  display: flex;
  justify-content: center;
  margin: 14px auto;
}
.submit-button:disabled {
  opacity: .65;
  cursor: wait;
}
