/* =============================================
   WIDE — Landing Page Full — Styles
   ============================================= */

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

@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;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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: 300;
  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;
}

/* =============================================
   HERO — FOTO PANORÁMICA
   ============================================= */
.hero {
  width: 100%;
  line-height: 0;
  position: relative;
}

/* Paper texture overlay sobre imágenes */
.hero::after,
.render-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  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-repeat: repeat;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.hero-top-line {
  position: absolute;
  top: 0;
  left: 20%;
  right: 0;
  height: 18px;
  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;
  z-index: 1;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* =============================================
   INTRO SECTION
   ============================================= */
.intro-section {
  width: 100%;
  padding: 72px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.intro-lead {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 400;
  color: var(--teal-dark);
  line-height: 1.9;
  max-width: 1000px;
  margin-inline: auto;
  mix-blend-mode: multiply;
}

.intro-body {
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  font-weight: 400;
  color: var(--teal-dark);
  line-height: 1.9;
  max-width: 1000px;
  margin-inline: auto;
  mix-blend-mode: multiply;
}

.btn-primary {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 28px;
  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;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

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

/* =============================================
   RENDER TORRES — FULL WIDTH
   ============================================= */
.render-section {
  width: 100%;
  line-height: 0;
  position: relative;
}

.render-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* =============================================
   LIFESTYLE FULL WIDTH
   ============================================= */
.lifestyle-banner {
  width: 100%;
  line-height: 0;
  position: relative;
}

.lifestyle-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(52, 107, 126);
  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;
  mix-blend-mode: color;
  pointer-events: none;
  z-index: 1;
}

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

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
  width: 100%;
  padding: 72px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.stats-desc {
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  font-weight: 400;
  color: var(--teal-dark);
  line-height: 1.85;
  max-width: 1000px;
  mix-blend-mode: multiply;
}

.stats-desc strong {
  font-weight: 700;
}

.stats-list {
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  font-weight: 400;
  color: var(--teal-dark);
  line-height: 2;
  max-width: 1000px;
  mix-blend-mode: multiply;
}

/* Bullets y saltos exclusivos de móvil — ocultos en desktop */
br.mobile-br  { display: none; }
br.stat-break { display: none; }

/* =============================================
   DIVIDER LINES — igual que teaser
   ============================================= */
.divider {
  width: 100%;
  position: relative;
  height: 16px;
  margin-top: 0;
}

.divider span:first-child {
  position: absolute;
  display: block;
  height: 16px;
  width: 100%;
  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 {
  display: none;
}

/* Franja cobre 90% (izq.) entre render y naturaleza */
.divider-copper {
  display: block;
  height: 16px;
  width: 90%;
  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;
}

/* Franja teal 80% (der.) debajo de naturaleza — arranca al 20% */
.lifestyle-line-teal {
  display: block;
  height: 18px;
  width: 80%;
  margin-left: 20%;
  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: 72px 48px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.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;
}

.contact-heading-line {
  display: inline;
}

.form-label {
  font-family: 'CodecPro', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--teal-dark);
  margin-bottom: 6px;
}

.contact-form {
  width: 100%;
  max-width: 1000px;
}

.form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.form-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-right {
  display: grid;
  grid-template-rows: 1fr auto;
  row-gap: 16px;
  padding-top: 38px;
}

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

.form-field input,
.form-field select {
  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;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-field select {
  border: 1.5px solid var(--teal-dark);
  padding: 10px 32px 10px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23205561' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

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

.form-field select option[value=""] {
  color: #999;
}

.form-field select:invalid,
.form-field select option:first-child {
  color: var(--teal-dark);
  opacity: 0.6;
}

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

.form-field select:focus {
  border-color: var(--teal);
  outline: none;
}

/* Textarea */
.form-field--textarea {
  display: flex;
  flex-direction: column;
}

.form-field--textarea textarea {
  width: 100%;
  flex: 1;
  min-height: 150px;
  border: 1.5px solid var(--teal-dark);
  outline: none;
  padding: 12px 14px;
  font-family: 'CodecPro', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--teal-dark);
  background: transparent;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-field--textarea textarea::placeholder {
  color: var(--teal-dark);
  font-weight: 400;
}

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

.g-recaptcha-wrap {
  justify-self: start;
}

/* 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 {
  justify-self: start;
  align-self: flex-start;
  padding: 12px 20px;
  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-message {
  text-align: right;
  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: 24px 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;
  text-decoration: none;
  color: var(--paper);
}

.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: 1200px) {
  .site-header {
    padding: 18px 28px;
  }

  .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: 22px 28px;
    gap: 22px;
  }

  .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;
  }

  .intro-section {
    padding: 40px 16px;
    gap: 20px;
  }

  .intro-lead,
  .intro-body {
    font-size: 0.85rem;
    line-height: 1.85;
    text-wrap: balance;
  }

  /* Ocultar saltos de renglón de desktop; el texto fluye solo en móvil */
  .intro-lead br,
  .intro-body br,
  .stats-desc br {
    display: none;
  }

  .btn-primary {
    width: auto;
    padding: 12px 28px;
  }

  /* Franjas decorativas: mismos porcentajes que desktop */
  .divider-copper {
    width: 90%;
  }

  .lifestyle-line-teal {
    width: 80%;
    margin-left: 20%;
  }

  .stats-section {
    padding: 40px 16px;
    gap: 18px;
  }

  .stats-desc {
    font-size: 0.85rem;
    line-height: 1.75;
    text-wrap: balance;
  }

  .stats-list {
    font-size: 0.82rem;
    line-height: 1.85;
    text-wrap: balance;
  }

  .divider {
    margin-top: 0;
  }

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

  .divider span:last-child {
    display: none;
  }

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

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

  /* Breaks y bullets de stats visibles solo en móvil */
  br.mobile-br  { display: inline; }
  br.stat-break { display: inline; }
  .stat-sep     { display: none; }

  .form-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-left {
    gap: 24px;
  }

  /* En móvil la columna derecha es solo un bloque apilado, sin offset de alineación */
  .form-right {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    gap: 14px;
  }

  /* Solo inputs — el select mantiene su padding con espacio para el chevron */
  .form-field input {
    padding: 10px 0;
    font-size: 0.95rem;
  }

  .form-field select {
    font-size: 0.95rem;
  }

  .form-field--textarea textarea {
    min-height: 130px;
    font-size: 0.95rem;
  }

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

  .form-message {
    text-align: center;
  }

  .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;
  }
}
