/* =============================================
   WIDE — Teaser Styles
   ============================================= */

@font-face {
  font-family: 'CodecPro';
  src: url('../assets/fonts/CodecPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'CodecPro';
  src: url('../assets/fonts/CodecPro-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal:        #2A6B7E;
  --teal-dark:   #205561;
  --copper:      #9B6535;
  --white:       #ffffff;
  --paper:       #EDE7DC;
  --text-dark:   #1a1a1a;
  --letter-wide: 0.45em;
  --letter-xl:   0.7em;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

html, body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: 'CodecPro', sans-serif;
  background-image: image-set(url('../assets/images/textura-papel.webp') type('image/webp'), url('../assets/images/textura-papel.jpg') type('image/jpeg'));
  background-repeat: repeat;
  background-size: 800px auto;
  color: var(--text-dark);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  width: 100%;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.header-tagline {
  width: 100%;
  font-size: clamp(3.6rem, 4vw, 4rem);
  text-transform: uppercase;
  color: var(--teal-dark);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5rem;
  mix-blend-mode: multiply;
}

.header-tagline span {
  font-weight: 400;
  letter-spacing: 0.6em;
}

.header-tagline .brand-wide {
  font-weight: 700;
  letter-spacing: 0.6em;
  position: relative;
  display: inline-block;
}

.header-tagline .brand-wide sup {
  position: absolute;
  top: 0em;
  right: 1em;
  font-size: 0.3em;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

/* =============================================
   LÍNEA COBRE — encima del video (ancho completo)
   ============================================= */
.hero-line {
  display: block;
  height: 16px;
  width: 100%;
  background-color: var(--copper);
  background-image: image-set(url('../assets/images/textura-papel.webp') type('image/webp'), url('../assets/images/textura-papel.jpg') type('image/jpeg'));
  background-size: 800px auto;
  background-blend-mode: multiply;
}

/* =============================================
   HERO / VIDEO SECTION
   ============================================= */
.hero {
  width: 100%;
  line-height: 0;
  background: var(--teal-dark);
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
}

.hero-video--mobile { display: none; }

@media (max-width: 768px) {
  .hero-video--desktop { display: none; }
  .hero-video--mobile  { display: block; }
}

/* =============================================
   DIVIDER LINES — cobre izquierda / teal derecha
   Se encuentran exactamente en el centro, teal ligeramente más abajo
   ============================================= */
.divider {
  width: 100%;
  position: relative;
  height: 34px;
}

.divider span:first-child {
  position: absolute;
  display: block;
  height: 16px;
  width: 70%;
  left: 0;
  top: 0;
  background-color: var(--copper);
  background-image: image-set(url('../assets/images/textura-papel.webp') type('image/webp'), url('../assets/images/textura-papel.jpg') type('image/jpeg'));
  background-size: 800px auto;
  background-blend-mode: multiply;
}

.divider span:last-child {
  position: absolute;
  display: block;
  height: 18px;
  width: 30%;
  right: 0;
  bottom: 0;
  background-color: var(--teal-dark);
  background-image: image-set(url('../assets/images/textura-papel.webp') type('image/webp'), url('../assets/images/textura-papel.jpg') type('image/jpeg'));
  background-size: 800px auto;
  background-blend-mode: multiply;
}

/* =============================================
   CONTACT FORM SECTION
   ============================================= */
.contact-section {
  width: 100%;
  background: transparent;
  padding: 60px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.contact-section h2 {
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-dark);
  text-align: center;
  line-height: 1.6;
  mix-blend-mode: multiply;
}

br.mobile-br { display: none; }

/* Form */
.contact-form {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-field input {
  border: none;
  border-bottom: 1.5px solid var(--teal-dark);
  outline: none;
  padding: 8px 0;
  font-family: 'CodecPro', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--teal-dark);
  background: transparent;
  transition: border-color 0.2s ease;
}

.form-field input::placeholder {
  color: var(--teal-dark);
  font-weight: 400;
  font-size: 0.85rem;
}

.form-field input:focus {
  border-bottom-color: var(--teal);
}

.g-recaptcha-wrap {
  align-self: center;
}

/* Honeypot anti-spam: fuera de la pantalla, no display:none (algunos bots
   sí detectan display:none/visibility:hidden y evitan llenar el campo). */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit Button */
.btn-submit {
  align-self: center;
  margin-top: 8px;
  padding: 12px 22px;
  background-color: var(--teal-dark);
  background-image: image-set(url('../assets/images/textura-papel.webp') type('image/webp'), url('../assets/images/textura-papel.jpg') type('image/jpeg'));
  background-size: 800px auto;
  background-blend-mode: multiply;
  color: var(--paper);
  font-family: 'CodecPro', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1.5px solid var(--paper);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-submit:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form status messages */
.form-message {
  text-align: center;
  font-size: 0.85rem;
  min-height: 0;
  transition: opacity 0.3s ease;
}

.form-message.success { color: var(--teal); }
.form-message.error   { color: #c0392b; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  width: 100%;
  background-color: var(--teal-dark);
  mix-blend-mode: multiply;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-contact {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: 0.02em;
}

.footer-brand {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
}

.nest-icon {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  filter: sepia(0.15) brightness(0.88);
}

.footer-sub {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 29px;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-transform: lowercase;
  color: rgba(131, 151, 147, 1);
  margin-bottom: -3.5px;
}

.footer-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.social-link {
  color: var(--paper);
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.social-link:hover {
  opacity: 0.65;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 769px) and (max-width: 1180px) {
  .header-tagline {
    gap: 2.1rem;
    font-size: 2.8rem;
  }

  .header-tagline span,
  .header-tagline .brand-wide {
    letter-spacing: 0.42em;
  }

  .header-tagline .brand-wide sup {
    right: 0.76em;
  }

  .site-footer {
    padding: 24px 28px;
    gap: 20px;
  }

  .footer-contact {
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .footer-sub {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 16px;
  }

  .header-tagline {
    gap: 1.45rem;
    font-size: 1.82rem;
    align-items: center;
  }

  .header-tagline span,
  .header-tagline .brand-wide {
    letter-spacing: 0.12em;
  }

  .header-tagline .brand-wide sup {
    top: 1px;
    right: -0.5em;
  }

  .hero-line {
    width: 100%;
  }

  .divider span:first-child {
    width: 70%;
  }

  .divider span:last-child {
    width: 30%;
  }

  .contact-section {
    padding: 40px 16px 16px;
    gap: 24px;
  }

  .contact-section h2 {
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    line-height: 1.55;
    max-width: 28rem;
    text-wrap: auto;
  }

  br.mobile-br { display: inline; }

  .contact-form {
    gap: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .form-field input {
    padding: 10px 0;
    font-size: 0.95rem;
  }

  .btn-submit {
    align-self: center;
    width: auto;
    padding: 12px 22px;
  }

  .site-footer {
    flex-direction: column;
    gap: 18px;
    padding: 20px 16px;
    text-align: center;
  }

  .footer-contact {
    order: 2;
    font-size: 0.84rem;
  }

  .footer-brand {
    order: 1;
    gap: 6px;
  }

  .nest-icon {
    height: 22px;
    margin-top: 4px;
  }

  .footer-sub {
    font-size: 18px;
    line-height: 1;
  }

  .footer-social {
    order: 3;
    justify-content: center;
  }
}
