:root {
  --sand-backdrop: #e8dfd0;
  --sand-shell: #faf5ec;
  --sand-border: #d9c7a8;
  --sand-pill-bg: #f0d9b5;
  --sand-pill-fg: #4a2f1b;
  --sand-terracotta: #c4552d;
  --sand-terracotta-press: #a7421f;
  --sand-text-main: #36281e;
  --sand-text-muted: #6e5c4c;
  --sand-white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--sand-backdrop);
}

body.terra-body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--sand-text-main);
  background-color: var(--sand-backdrop);
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.terra-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--sand-shell);
  min-height: 100vh;
  box-shadow: 0 4px 24px rgba(74, 47, 27, 0.08);
  overflow: hidden;
}

/* Encabezado */
.terra-top {
  padding: 24px 20px 16px;
  text-align: center;
}

.terra-tagline {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sand-terracotta);
  margin-bottom: 6px;
}

.terra-headline {
  font-family: 'Playfair Display', serif;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--sand-text-main);
  margin-bottom: 8px;
}

.terra-subtitle {
  font-size: 15px;
  color: var(--sand-text-muted);
  margin-bottom: 18px;
}

.terra-lead-visual {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sand-border);
  background-color: var(--sand-white);
}

.terra-lead-pic {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.terra-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: var(--sand-terracotta);
  color: var(--sand-shell);
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(74, 47, 27, 0.25);
  transform: rotate(-6deg);
  pointer-events: none;
}

/* Botones CTA */
.terra-action-wrap {
  padding: 18px 20px;
}

.terra-order-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 100%;
  background-color: var(--sand-terracotta);
  color: var(--sand-shell);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(196, 85, 45, 0.35);
  transition: background-color 0.2s ease;
  text-align: center;
  padding: 12px 16px;
}

.terra-order-trigger:hover,
.terra-order-trigger:active {
  background-color: var(--sand-terracotta-press);
}

/* Secciones generales */
.terra-segment {
  padding: 20px;
}

.terra-subheading {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--sand-text-main);
  text-align: center;
  margin-bottom: 20px;
}

/* Video */
.terra-media-segment {
  padding-top: 4px;
}

.terra-media-heading {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--sand-text-main);
  text-align: center;
  margin-bottom: 12px;
}

.terra-player-frame {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sand-border);
  background: #000;
  line-height: 0;
}

.terra-player-frame video {
  width: 100%;
  height: auto;
  display: block;
}

/* Para qué sirve (6 tarjetas en 2 grupos) */
.terra-use-trio {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.terra-use-cell {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sand-border);
  background-color: var(--sand-white);
}

.terra-use-pic {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.terra-pill-holder {
  position: absolute;
  bottom: 12px;
  display: flex;
  width: calc(100% - 24px);
  pointer-events: none;
}

.terra-pill-right {
  justify-content: flex-end;
  right: 12px;
}

.terra-pill-left {
  justify-content: flex-start;
  left: 12px;
}

.terra-use-pill {
  background-color: var(--sand-pill-bg);
  color: var(--sand-pill-fg);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(74, 47, 27, 0.15);
  border: 1px solid var(--sand-border);
}

/* Textos y banner */
.terra-copy-box {
  background-color: var(--sand-white);
  border: 1px solid var(--sand-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.terra-copy-paragraph {
  font-size: 15px;
  line-height: 1.6;
  color: var(--sand-text-main);
}

.terra-banner-visual {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sand-border);
  background-color: var(--sand-white);
  margin-bottom: 16px;
}

.terra-banner-pic {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Matriz de especificaciones 2x3 */
.terra-specs-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.terra-spec-entry {
  background-color: var(--sand-white);
  border: 1px solid var(--sand-border);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}

.terra-spec-lbl {
  display: block;
  font-size: 12px;
  color: var(--sand-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.terra-spec-val {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--sand-terracotta);
}

.terra-spec-note {
  font-size: 13px;
  color: var(--sand-text-muted);
  text-align: center;
  font-style: italic;
  margin-top: 8px;
}

/* Píldoras acento */
.terra-highlights-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terra-edge-pill-wrap {
  display: flex;
  width: 100%;
}

.terra-edge-right {
  justify-content: flex-end;
}

.terra-edge-left {
  justify-content: flex-start;
}

.terra-edge-pill {
  background-color: var(--sand-pill-bg);
  color: var(--sand-pill-fg);
  border: 1px solid var(--sand-border);
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  max-width: 90%;
  box-shadow: 0 2px 6px rgba(74, 47, 27, 0.08);
}

/* Galería horizontal CSS */
.terra-photo-reel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}

.terra-reel-slide {
  flex: 0 0 85%;
  scroll-snap-align: center;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sand-border);
  background-color: var(--sand-white);
}

.terra-reel-pic {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* Bloque entrega y pago */
.terra-service-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.terra-service-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background-color: var(--sand-white);
  border: 1px solid var(--sand-border);
  border-radius: 14px;
  padding: 14px;
}

.terra-service-badge {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.terra-service-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sand-text-main);
  margin-bottom: 4px;
}

.terra-service-desc {
  font-size: 14px;
  color: var(--sand-text-muted);
  line-height: 1.4;
}

/* Bloque de precio */
.terra-pricing-card {
  margin: 10px 20px;
  padding: 22px 16px;
  background-color: var(--sand-white);
  border: 2px solid var(--sand-border);
  border-radius: 14px;
  text-align: center;
}

.terra-pricing-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--sand-text-muted);
  margin-bottom: 6px;
}

.terra-amount-figure {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--sand-terracotta);
  line-height: 1.1;
  margin-bottom: 6px;
}

.terra-pricing-footnote {
  display: block;
  font-size: 13px;
  color: var(--sand-text-muted);
}

/* Formulario */
.terra-form-block {
  padding-top: 10px;
}

.terra-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--sand-text-main);
  margin-bottom: 6px;
}

.terra-form-subtext {
  font-size: 14px;
  color: var(--sand-text-muted);
  text-align: center;
  margin-bottom: 18px;
}

.terra-order-sheet {
  background-color: var(--sand-white);
  border: 1px solid var(--sand-border);
  border-radius: 14px;
  padding: 20px 16px;
}

.terra-field-slot {
  margin-bottom: 16px;
}

.terra-field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--sand-text-main);
  margin-bottom: 6px;
}

.terra-input-control {
  width: 100%;
  height: 50px;
  padding: 10px 14px;
  border: 1px solid var(--sand-border);
  border-radius: 10px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  color: var(--sand-text-main);
  background-color: var(--sand-shell);
  outline: none;
}

.terra-input-control:focus {
  border-color: var(--sand-terracotta);
  box-shadow: 0 0 0 2px rgba(196, 85, 45, 0.2);
}

.terra-submit-trigger {
  width: 100%;
  min-height: 56px;
  background-color: var(--sand-terracotta);
  color: var(--sand-shell);
  border: none;
  border-radius: 14px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(196, 85, 45, 0.35);
  margin-top: 4px;
}

.terra-submit-trigger:hover,
.terra-submit-trigger:active {
  background-color: var(--sand-terracotta-press);
}

.terra-form-legal {
  font-size: 12px;
  color: var(--sand-text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.4;
}

.terra-legal-link {
  color: var(--sand-terracotta);
  text-decoration: underline;
}

/* Pie de página */
.terra-footer {
  padding: 24px 20px;
  border-top: 1px solid var(--sand-border);
  background-color: var(--sand-shell);
  text-align: center;
  margin-top: 10px;
}

.terra-footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--sand-text-main);
  margin-bottom: 8px;
}

.terra-footer-contact {
  font-size: 14px;
  color: var(--sand-text-muted);
  margin-bottom: 4px;
}

.terra-footer-nav {
  margin: 14px 0;
  font-size: 13px;
}

.terra-footer-link {
  color: var(--sand-terracotta);
  text-decoration: none;
  font-weight: 600;
}

.terra-footer-sep {
  color: var(--sand-border);
  margin: 0 6px;
}

.terra-footer-copy {
  font-size: 12px;
  color: var(--sand-text-muted);
  margin-bottom: 4px;
}

.terra-footer-nocookies {
  font-size: 11px;
  color: var(--sand-text-muted);
  opacity: 0.8;
}

/* Páginas informativas (Políticas y Agradecimiento) */
.terra-static-content {
  padding: 24px 20px;
}

.terra-static-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--sand-text-main);
  text-align: center;
  margin-bottom: 12px;
}

.terra-static-lead {
  font-size: 15px;
  color: var(--sand-text-muted);
  text-align: center;
  margin-bottom: 24px;
}

.terra-policy-section {
  background-color: var(--sand-white);
  border: 1px solid var(--sand-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.terra-policy-heading {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--sand-terracotta);
  margin-bottom: 8px;
}

.terra-policy-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--sand-text-main);
}

.terra-back-home-wrap {
  text-align: center;
  margin: 24px 0 10px;
}

.terra-return-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 24px;
  background-color: var(--sand-terracotta);
  color: var(--sand-shell);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 14px;
}

.terra-thank-box {
  background-color: var(--sand-white);
  border: 1px solid var(--sand-border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 20px;
}

.terra-thank-icon {
  font-size: 48px;
  margin-bottom: 12px;
}