/* =============================================
   MAREAS — Rediseño 2026
   Fuentes: Space Grotesk + Space Mono (base.html)
   ============================================= */

/* ---- PAGE ---- */

.mareas-page {
  width: 100%;
  background-color: #fbf4e8;
  background-image:
    linear-gradient(rgba(23, 34, 46, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 34, 46, .045) 1px, transparent 1px);
  background-size: 48px 48px;
}

.mareas-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.mareas-pad {
  padding: 40px 64px 80px;
  box-sizing: border-box;
}

/* ---- BREADCRUMB ---- */

.mareas-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.mareas-bc-path {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: #7a8089;
}

.mareas-bc-eyebrow {
  color: #f0591f;
  font-weight: 700;
}

.mareas-bc-back {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: #235f9e;
  font-weight: 700;
  text-decoration: none;
}

.mareas-bc-back:hover {
  text-decoration: underline;
}

/* ---- DASHBOARD PANEL ---- */

.mareas-dash {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(165deg, #6aabdb 0%, #3175ae 52%, #235f9e 100%);
  box-shadow: 0 26px 56px rgba(35, 95, 158, .3);
  padding: 36px 36px 40px;
}

.mareas-dashhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 16px;
}

.mareas-dashhead-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mareas-dashhead-text {
  min-width: 0;
}

.mareas-dashhead-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 11px;
  flex-shrink: 0;
}

.mareas-dash-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -.5px;
  line-height: 1.1;
}

.mareas-dash-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .72);
  margin-top: 2px;
}

.mareas-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .5px;
  color: #c4f1d6;
  background: rgba(0, 0, 0, .18);
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mareas-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fd6a8;
  flex-shrink: 0;
}

/* ---- CONTROLS ---- */

.mareas-controls {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.mareas-station-ctrl {
  flex-shrink: 0;
}

.mareas-days-ctrl {
  flex: 1;
  min-width: 0;
}

.mareas-ctrl-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 8px;
}

.mareas-station-select {
  display: block;
  min-width: 220px;
  min-height: 50px;
  padding: 13px 40px 13px 16px;
  background: #14324f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.65)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 11px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.mareas-station-select option {
  color: #1f456a;
  background: #fff;
}

.mareas-dias {
  display: flex;
  gap: 10px;
}

.mareas-day-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 50px;
  padding: 13px 16px;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: background 160ms ease;
}

.mareas-day-chip span {
  font-size: 15px;
  font-weight: 500;
  display: block;
}

.mareas-day-chip small {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  display: block;
  white-space: nowrap;
}

.mareas-day-chip.is-active {
  background: #14324f;
}

.mareas-day-chip.is-active span {
  font-weight: 600;
}

.mareas-day-chip:hover:not(.is-active) {
  background: rgba(255, 255, 255, .22);
}

/* ---- MAIN GRID ---- */

.mareas-maingrid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 20px;
}

/* ---- STATS PANEL ---- */

.mareas-stats-panel {
  background: rgba(8, 33, 58, .34);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  padding: 24px;
}

.mareas-panel-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .6);
}

.mareas-height-row {
  margin-top: 6px;
}

.mareas-height-value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 60px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
}

.mareas-height-change {
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  color: #ffb27a;
  margin: 8px 0 20px;
}

.mareas-tide-events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.mareas-event-card {
  background: rgba(255, 255, 255, .1);
  border-radius: 11px;
  padding: 13px;
}

.mareas-event-card strong {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mareas-event-name {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .6);
  font-weight: 400;
}

.mareas-event-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.mareas-climate-strip {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mareas-weather-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.mareas-weather-item span {
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
}

.mareas-weather-item strong {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

/* ---- CHART PANEL ---- */

.mareas-chart-panel {
  display: flex;
  flex-direction: column;
  background: rgba(8, 33, 58, .34);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  padding: 24px;
}

.mareas-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.mareas-chart-heading {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-top: 3px;
  letter-spacing: -.5px;
}

.mareas-chart-state {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mareas-chart-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  margin-bottom: 10px;
  flex: 1;
}

.mareas-chart-y-axis-fixed {
  display: block;
  position: relative;
  width: 56px;
  height: 300px;
  overflow: hidden;
}

.mareas-chart-y-axis-fixed span {
  position: absolute;
  right: 6px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .6);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.mareas-chart-scroll {
  width: 100%;
  min-width: 0;
  height: 300px;
  overflow-x: hidden;
  overflow-y: hidden;
  touch-action: pan-x;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .24) transparent;
}

.mareas-chart-scroll.is-scrollable {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.mareas-chart-scroll.is-dragging {
  cursor: grabbing;
}

.mareas-chart-scroll::-webkit-scrollbar {
  height: 6px;
}

.mareas-chart-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.mareas-chart-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .24);
  border-radius: 999px;
}

.mareas-chart {
  display: block;
  height: 300px;
}

/* SVG chart elements */

.mareas-chart-grid line {
  stroke: rgba(255, 255, 255, .14);
  stroke-width: 1;
}

.mareas-chart-area {
  fill: rgba(255, 255, 255, .18);
}

.mareas-chart-line {
  fill: none;
  stroke: #eaf3fb;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mareas-chart-line-secondary {
  stroke: rgba(255, 255, 255, .72);
  stroke-width: 2;
  stroke-dasharray: 8 8;
}

#mareas-chart-points circle {
  fill: #fff;
  stroke: rgba(18, 47, 78, .35);
  stroke-width: 2;
}

.mareas-chart-labels text {
  fill: rgba(255, 255, 255, .6);
  font-size: 16px;
  font-family: 'Space Mono', monospace;
  font-weight: 400;
}

.mareas-chart-y-labels text {
  fill: rgba(255, 255, 255, .6);
  font-size: 15px;
  font-family: 'Space Mono', monospace;
  font-weight: 400;
}

.mareas-chart-current-line {
  stroke: #ffb27a;
  stroke-width: 2;
  stroke-dasharray: 3 3;
}

.mareas-chart-overlay rect {
  stroke: rgba(17, 30, 52, .14);
  stroke-width: 1;
}

.mareas-chart-overlay text,
.mareas-chart-marker text {
  font-size: 12px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
}

.mareas-chart-overlay.is-max rect,
.mareas-chart-marker.is-high circle,
.mareas-chart-marker.is-high rect {
  fill: rgba(255, 227, 154, .96);
}

.mareas-chart-overlay.is-max text,
.mareas-chart-marker.is-high text {
  fill: #654d00;
}

.mareas-chart-overlay.is-prom rect,
.mareas-chart-marker.is-current circle,
.mareas-chart-marker.is-current rect {
  fill: rgba(255, 255, 255, .96);
}

.mareas-chart-overlay.is-prom text,
.mareas-chart-marker.is-current text {
  fill: #193656;
}

.mareas-chart-overlay.is-min rect,
.mareas-chart-marker.is-low circle,
.mareas-chart-marker.is-low rect {
  fill: rgba(53, 194, 163, .94);
}

.mareas-chart-overlay.is-min text,
.mareas-chart-marker.is-low text {
  fill: #083f35;
}

.mareas-chart-overlay.is-time rect {
  fill: rgba(18, 47, 78, .84);
}

.mareas-chart-overlay.is-time text {
  fill: rgba(255, 255, 255, .94);
}

.mareas-chart-marker line {
  stroke-width: 2;
  stroke-dasharray: 3 3;
}

.mareas-chart-marker circle {
  stroke: rgba(17, 30, 52, .35);
  stroke-width: 2.5;
}

.mareas-chart-marker rect {
  stroke: rgba(17, 30, 52, .14);
}

.mareas-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 14px;
  color: rgba(245, 251, 255, .86);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
}

.mareas-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mareas-chart-legend i {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

.mareas-chart-legend .is-average {
  width: 14px;
  height: 3px;
  background: #eaf3fb;
  border-radius: 2px;
}

.mareas-chart-legend .is-min {
  background: rgba(53, 194, 163, .94);
}

.mareas-chart-legend .is-max {
  background: rgba(255, 227, 154, .96);
}

.mareas-chart-legend .is-current {
  width: 3px;
  height: 14px;
  background: #ffb27a;
  border-radius: 2px;
}

.mareas-chart-legend .legend-label-full {
  display: inline;
}

.mareas-chart-legend .legend-label-short {
  display: none;
}

.mareas-chart-center-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.mareas-chart-center-button.is-functional {
  padding: 4px 10px 4px 6px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
}

.mareas-chart-center-button.is-functional:hover {
  background: rgba(255, 255, 255, .15);
}

/* ---- TABLE CARD ---- */

.mareas-tablecard {
  background: #fff;
  border: 1px solid rgba(23, 34, 46, .1);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(23, 34, 46, .07);
  padding: 28px 30px;
  margin-top: 24px;
}

.mareas-tablecard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mareas-label-mono {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #9aa1ab;
}

.mareas-tablecard-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 4px 0 0;
  letter-spacing: -.5px;
  color: #17222e;
}

.mareas-tablecard-hint {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #9aa1ab;
}

.mareas-table-wrap {
  overflow: auto;
  border-radius: 9px;
}

.mareas-table {
  width: 100%;
  border-collapse: collapse;
  color: #17222e;
}

.mareas-table thead th {
  background: #eef5fb;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: #5c646e;
  padding: 12px 18px;
  text-align: left;
  font-weight: 400;
}

.mareas-table thead th.col-key {
  color: #235f9e;
}

.mareas-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(23, 34, 46, .07);
  text-align: left;
}

.mareas-table td.col-key {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #235f9e;
}

.mareas-table tbody tr td:not(.col-key) {
  font-size: 15px;
  font-weight: 600;
  color: #17222e;
}

.mareas-table tbody tr:last-child td {
  border-bottom: none;
}

.mareas-table tbody tr td:nth-child(3),
.mareas-table tbody tr td:nth-child(4) {
  font-size: 14px;
  font-weight: 400;
  color: #5c646e;
}

.mareas-tablecard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 34, 46, .08);
  gap: 16px;
  flex-wrap: wrap;
}

.mareas-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #5c646e;
}

.mareas-tablecard-foot .mareas-status-dot {
  background: #2ca36a;
  box-shadow: none;
}

.mareas-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: #235f9e;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, transform 120ms ease;
}

.mareas-primary-action:hover {
  background: #1a4f88;
  transform: translateY(-1px);
}

/* ---- TECHNICAL SECTION ---- */

.mareas-secondary {
  margin-top: 66px;
  scroll-margin-top: 90px;
}

.mareas-tech-header {
  margin-bottom: 34px;
}

.mareas-tech-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #f0591f;
}

.mareas-tech-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -1px;
  margin: 14px 0 0;
  color: #17222e;
}

.mareas-tech-intro {
  font-size: 17px;
  line-height: 1.55;
  color: #5c646e;
  max-width: 560px;
  margin: 16px 0 0;
}

/* ---- PIPELINE ---- */

.mareas-pipeline-wrap {
  margin-top: 34px;
  margin-bottom: 24px;
}

.mareas-pipeline {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.mareas-pipeline-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 18px 14px;
  background: #fff;
  border: 1px solid rgba(23, 34, 46, .1);
  border-radius: 13px;
  box-shadow: 0 6px 16px rgba(23, 34, 46, .05);
  text-align: center;
}

.mareas-pipeline-node-out {
  background: #eef5fb;
  border: 1.5px solid #235f9e;
  box-shadow: 0 10px 22px rgba(35, 95, 158, .16);
}

.mareas-pipeline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef5fb;
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: #235f9e;
  font-weight: 400;
}

.mareas-pipeline-badge.is-out {
  background: #235f9e;
  color: #fff;
}

.mareas-pipeline-node strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #17222e;
  letter-spacing: -.3px;
}

.mareas-pipeline-node-out strong {
  color: #1c4f85;
}

.mareas-pipeline-node span {
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  color: #8a909a;
  margin-top: 5px;
}

.mareas-pipeline-node-out span {
  color: #5c83a8;
}

.mareas-pipeline-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: 'Space Mono', monospace;
  font-size: 17px;
  color: #b9c0c8;
}

/* ---- FUENTES CARDS ---- */

.mareas-fuentes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mareas-detail-card {
  background: #fff;
  border: 1px solid rgba(23, 34, 46, .1);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 34, 46, .06);
  padding: 24px 22px;
}

.mareas-detail-ina {
  border-top: 3px solid #235f9e;
}

.mareas-detail-smn {
  border-top: 3px solid #2ca36a;
}

.mareas-detail-arch {
  border-top: 3px solid #3a444f;
}

.mareas-detail-card-head {
  margin-bottom: 10px;
}

.mareas-detail-card-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #9aa1ab;
}

.mareas-detail-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 2px;
  letter-spacing: -.5px;
  color: #17222e;
}

.mareas-detail-org {
  font-size: 13.5px;
  color: #5c646e;
  margin: 0 0 15px;
}

.mareas-detail-url {
  display: block;
  background: #17222e;
  border-radius: 9px;
  padding: 13px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  line-height: 1.55;
  color: #aeb8c4;
  word-break: break-all;
  white-space: pre-wrap;
  margin-bottom: 18px;
  text-decoration: none;
}

.mareas-detail-url-link {
  color: #7fd6a8;
}

.mareas-detail-url-link:hover {
  color: #a0e8c0;
}

.mareas-detail-sublabel {
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 1px;
  font-weight: 700;
  margin: 18px 0 9px;
}

.mareas-sublabel-ina {
  color: #235f9e;
}

.mareas-sublabel-smn {
  color: #2ca36a;
}

.mareas-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mareas-detail-list li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #3a444f;
}

.mareas-detail-list li::before {
  content: '›';
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1.25;
}

.mareas-list-ina li::before {
  color: #235f9e;
}

.mareas-list-smn li::before {
  color: #2ca36a;
}

/* Architecture items */

.mareas-arch-items {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.mareas-arch-item {
  background: #f6f1e6;
  border: 1px solid rgba(23, 34, 46, .07);
  border-radius: 11px;
  padding: 14px 15px;
}

.mareas-arch-item strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.2px;
  margin-bottom: 5px;
  color: #17222e;
}

.mareas-arch-item span {
  font-size: 13px;
  line-height: 1.45;
  color: #5c646e;
}

/* ---- STACK + CLI ---- */

.mareas-stackgrid {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.mareas-stackgrid > * {
  min-width: 0;
}

.mareas-techstack-card {
  background: #fff;
  border: 1px solid rgba(23, 34, 46, .1);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(23, 34, 46, .07);
  padding: 30px 32px;
}

.mareas-techstack-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 6px 0 24px;
  letter-spacing: -.5px;
  color: #17222e;
}

.mareas-techstack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 30px;
}

.mareas-techstack-item p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #5c646e;
  margin: 7px 0 0;
}

.mareas-techstack-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mareas-techstack-head strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.2px;
  color: #17222e;
}

.mareas-techstack-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.mareas-techstack-dot.is-orange { background: #f0591f; }
.mareas-techstack-dot.is-blue   { background: #235f9e; }
.mareas-techstack-dot.is-green  { background: #2ca36a; }

.mareas-cli-card {
  background: #17222e;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(23, 34, 46, .16);
  padding: 30px 30px;
}

.mareas-cli-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #8b94a0;
  display: block;
}

.mareas-cli-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 6px 0 4px;
  letter-spacing: -.5px;
  color: #fff;
}

.mareas-cli-intro {
  font-size: 13.5px;
  line-height: 1.5;
  color: #aab2bd;
  margin: 0 0 22px;
}

.mareas-cmd-list {
  display: flex;
  flex-direction: column;
}

.mareas-cmd-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid #283342;
}

.mareas-cmd-item:last-child {
  border-bottom: 1px solid #283342;
}

.mareas-cmd-item::before {
  content: '$';
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: #f0591f;
  flex-shrink: 0;
  line-height: 1.5;
}

.mareas-cmd-item code {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: #fff;
  margin-bottom: 4px;
  background: transparent;
  padding: 0;
}

.mareas-cmd-item span {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: #8b94a0;
  margin-top: 4px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* ---- ≤ 1080px: Tablet ---- */
@media (max-width: 1080px) {
  .mareas-maingrid {
    grid-template-columns: 1fr;
  }

  .mareas-stackgrid {
    grid-template-columns: 1fr;
  }

  .mareas-pipeline {
    flex-wrap: wrap;
  }

  .mareas-pipeline > .mareas-pipeline-node {
    flex: 1 1 150px;
  }

  .mareas-pipeline-arrow {
    display: none;
  }
}

/* ---- ≤ 820px: 2 columnas fuentes ---- */
@media (max-width: 820px) {
  .mareas-fuentes {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- ≤ 680px: Móvil ---- */
@media (max-width: 680px) {
  .mareas-pad {
    padding: 24px 18px 48px;
  }

  .mareas-dash {
    padding: 22px 18px 26px;
  }

  .mareas-dashhead {
    flex-wrap: wrap;
    gap: 14px;
  }

  .mareas-dash-title {
    font-size: 24px;
  }

  .mareas-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .mareas-station-ctrl,
  .mareas-days-ctrl {
    width: 100%;
  }

  .mareas-station-select {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .mareas-dias {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mareas-dias .mareas-day-chip {
    overflow: hidden;
  }

  .mareas-day-chip span,
  .mareas-day-chip small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Pleamar/Bajamar: evitar que el valor se parta en líneas */
  .mareas-event-card {
    padding: 10px;
  }

  .mareas-event-value {
    font-size: 14px;
    white-space: nowrap;
  }

  /* Encabezado del gráfico: title + badge apilados */
  .mareas-chart-head {
    flex-wrap: wrap;
    gap: 10px;
  }

  .mareas-chart-heading {
    font-size: 18px;
    margin-top: 1px;
  }

  /* Tabla: ocultar hint y apilar header */
  .mareas-tablecard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .mareas-tablecard-hint {
    display: none;
  }

  .mareas-tablecard-title {
    font-size: 20px;
  }

  .mareas-fuentes {
    grid-template-columns: 1fr;
  }

  .mareas-techstack {
    grid-template-columns: 1fr;
  }

  /* Reducir padding en tarjetas técnicas */
  .mareas-techstack-card {
    padding: 22px 18px;
  }

  .mareas-cli-card {
    padding: 22px 18px;
  }

  /* Stack/CLI: reducir títulos y apilar código+descripción */
  .mareas-techstack-title {
    font-size: 20px;
  }

  .mareas-cli-title {
    font-size: 20px;
  }

  .mareas-cmd-item {
    flex-direction: column;
    gap: 6px;
  }

  .mareas-cmd-item span {
    margin-top: 0;
  }

  .mareas-cmd-item code {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .mareas-tablecard {
    padding: 22px 16px;
  }

  .mareas-tablecard-foot {
    flex-wrap: wrap;
    gap: 14px;
  }

  .mareas-breadcrumb {
    flex-wrap: wrap;
    gap: 8px;
  }

  .mareas-chart-legend .legend-label-full {
    display: none;
  }

  .mareas-chart-legend .legend-label-short {
    display: inline;
  }
}

/* ---- ≤ 430px: Móvil chico ---- */
@media (max-width: 430px) {
  /* Chips: mostrar solo la fecha cuando el nombre no entra */
  .mareas-day-chip span {
    display: none;
  }

  .mareas-dias .mareas-day-chip {
    justify-content: center;
  }

  .mareas-day-chip small {
    font-size: 13px;
    color: rgba(255, 255, 255, .9);
  }

  .mareas-tablecard {
    padding: 18px 12px;
  }

  .mareas-table thead th,
  .mareas-table td {
    padding: 10px 6px;
    font-size: 12px;
    white-space: nowrap;
  }

  .mareas-height-value {
    font-size: 48px;
  }
}

/* ---- ≤ 360px: Pantallas muy angostas ---- */
@media (max-width: 360px) {
  .mareas-dashhead-icon {
    display: none;
  }

  .mareas-dash-title {
    font-size: 20px;
  }

  .mareas-dash-subtitle {
    font-size: 11px;
  }

  .mareas-dias {
    grid-template-columns: 1fr;
  }

  /* Stats panel: reducir padding y event cards a 1 columna */
  .mareas-stats-panel {
    padding: 16px;
  }

  .mareas-tide-events {
    grid-template-columns: 1fr;
  }

  .mareas-event-value {
    font-size: 15px;
  }

  .mareas-height-value {
    font-size: 38px;
  }

  /* Chart panel: reducir padding */
  .mareas-chart-panel {
    padding: 16px;
  }
}
