/* ===== Ficha ampliada de spot ===== */

.spot-detail-page {
  background: #eef3f7;
}

.spot-detail-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 42px;
  min-height: 620px;
  align-items: center;
}

.page-bg-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: saturate(1.05) contrast(1.04);
}

.page-bg-video-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 10, 20, 0.94) 0%, rgba(2, 10, 20, 0.80) 44%, rgba(2, 10, 20, 0.58) 100%),
    linear-gradient(180deg, rgba(2, 10, 20, 0.72) 0%, rgba(2, 10, 20, 0.48) 50%, rgba(2, 10, 20, 0.88) 100%);
}

.spot-detail-hero > *:not(.page-bg-video):not(.page-bg-video-overlay) {
  position: relative;
  z-index: 1;
}

.spot-detail-copy {
  max-width: 780px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 28px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.spot-detail-copy h1 {
  margin: 0;
  color: white;
  font-size: clamp(64px, 8vw, 98px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.spot-detail-copy > p:not(.eyebrow) {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 800;
}

.spot-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.favorite-button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #071d36;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.favorite-button.is-favorite {
  background: linear-gradient(135deg, #35e6e6, #49b6ff);
  color: #02111f;
}

.favorite-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ===== Card forecast ===== */

.spot-live-card {
  align-self: center;
  padding: 30px;
  border-radius: 30px;
  background: rgba(3, 18, 34, 0.82);
  border: 1px solid rgba(73, 182, 255, 0.28);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.spot-live-title {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.90);
  text-align: center;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 950;
}

.spot-score {
  width: 132px;
  height: 132px;
  margin: 0 auto 26px;
  border: 4px solid #25e58b;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(3, 18, 34, 0.58);
  box-shadow:
    0 0 0 8px rgba(37, 229, 139, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.24);
}

.spot-score span {
  font-size: 56px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.08em;
  color: #ffffff;
}

.spot-score small {
  margin: 15px 0 0 3px;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  color: rgba(255, 255, 255, 0.76);
}

.spot-score-label {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 950;
}

.spot-live-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.spot-live-grid div,
.spot-facts-grid div,
.conditions-list div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.spot-live-grid span,
.spot-facts-grid span,
.conditions-list span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.spot-live-grid strong,
.spot-facts-grid strong,
.conditions-list strong {
  color: white;
  font-size: 18px;
  line-height: 1.25;
}

.spot-live-note,
.spot-small-note {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  font-weight: 800;
}

/* ===== Contenido detalle ===== */

.spot-detail-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.spot-info-panel {
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(7, 29, 54, 0.08);
  box-shadow: 0 18px 45px rgba(7, 29, 54, 0.06);
}

.spot-info-panel h2 {
  margin: 0 0 16px;
  color: #071d36;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.spot-info-panel p {
  color: rgba(7, 29, 54, 0.68);
  line-height: 1.65;
  font-weight: 800;
}

.spot-info-panel .filter-title {
  margin: 0 0 14px;
  color: #0786a7;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.spot-facts-grid,
.conditions-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.spot-facts-grid {
  grid-template-columns: repeat(2, 1fr);
}

.spot-facts-grid div,
.conditions-list div {
  background: rgba(7, 29, 54, 0.055);
}

.spot-facts-grid span,
.conditions-list span {
  color: rgba(7, 29, 54, 0.52);
}

.spot-facts-grid strong,
.conditions-list strong {
  color: #071d36;
}

.equipment-panel {
  background:
    radial-gradient(circle at top right, rgba(50, 230, 255, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.88);
}

/* ===== Footer igual que el resto de páginas ===== */

.spot-detail-page .site-footer {
  width: 100%;
  margin-top: 0;
  padding: 42px 60px;
  border-radius: 0;
  background: #020b16;
  border-top: 1px solid rgba(73, 182, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: rgba(255, 255, 255, 0.74);
}

.spot-detail-page .site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0.10em;
}

.spot-detail-page .site-footer p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.spot-detail-page .site-footer small {
  color: rgba(255, 255, 255, 0.52);
  font-weight: 700;
}

.spot-detail-page .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
}

.spot-detail-page .footer-links a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-weight: 900;
}

.spot-detail-page .footer-links a:hover {
  color: #35e6e6;
}

/* ===== Responsive ===== */

@media (max-width: 980px) {
  .spot-detail-hero {
    grid-template-columns: 1fr;
  }

  .spot-live-card {
    width: 100%;
  }

  .spot-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .spot-detail-page .site-footer {
    padding: 34px 24px;
    flex-direction: column;
  }

  .spot-detail-page .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .spot-detail-layout {
    width: min(100% - 26px, 1180px);
  }

  .spot-info-panel,
  .spot-live-card {
    padding: 22px;
  }

  .spot-score {
    width: 112px;
    height: 112px;
  }

  .spot-score span {
    font-size: 46px;
  }

  .spot-score small {
    font-size: 20px;
  }

  .spot-facts-grid,
  .spot-live-grid {
    grid-template-columns: 1fr;
  }

  .spot-detail-copy h1 {
    font-size: 58px;
  }
}

/* ===== Tabla forecast horario ===== */

.spot-hourly-panel {
  grid-column: 1 / -1;
}

.spot-hourly-table-wrapper {
  width: 100%;
  margin-top: 22px;
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid rgba(7, 29, 54, 0.08);
  background: #ffffff;
}

.spot-hourly-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.spot-hourly-table th,
.spot-hourly-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(7, 29, 54, 0.08);
  color: #071d36;
  font-weight: 850;
}

.spot-hourly-table th {
  background: #f2f5f8;
  color: rgba(7, 29, 54, 0.56);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spot-hourly-table tr:last-child td {
  border-bottom: 0;
}

.hourly-quality-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 229, 139, 0.12);
  color: #137a4a;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .spot-hourly-table th,
  .spot-hourly-table td {
    padding: 14px;
  }
}

/* ==================================================
   Spot - mensajes de favoritos
   ================================================== */

.favorite-message {
  display: block;
  max-width: 520px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.favorite-message.is-error {
  color: #ffe2e2;
  background: rgba(255, 78, 78, 0.16);
  border: 1px solid rgba(255, 78, 78, 0.34);
}

.favorite-message.is-success {
  color: #d9fff8;
  background: rgba(50, 230, 255, 0.14);
  border: 1px solid rgba(50, 230, 255, 0.32);
}

.favorite-message.is-info {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* === RESPONSIVE MOBILE SPOT DETAIL START === */

@media (max-width: 900px) {
  .spot-detail-hero {
    grid-template-columns: 1fr !important;
    gap: 26px;
  }

  .spot-detail-copy h1 {
    font-size: clamp(42px, 12vw, 64px);
    line-height: 1.02;
  }

  .spot-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .spot-hero-actions .favorite-button,
  .spot-hero-actions .register-button,
  .spot-hero-actions a,
  .spot-hero-actions button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .spot-live-card {
    width: 100%;
    max-width: 100%;
  }

  .spot-live-grid,
  .spot-facts-grid {
    grid-template-columns: 1fr !important;
  }

  .spot-detail-layout {
    grid-template-columns: 1fr !important;
    padding: 42px 20px;
  }

  .spot-info-panel {
    min-width: 0;
    padding: 24px;
  }

  .spot-hourly-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .spot-hourly-table {
    min-width: 680px;
  }
}

@media (max-width: 620px) {
  .spot-detail-layout {
    padding: 34px 16px;
  }

  .spot-info-panel,
  .spot-live-card {
    padding: 22px;
    border-radius: 22px;
  }

  .back-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* === RESPONSIVE MOBILE SPOT DETAIL END === */

/* === Forecast multidía por spot === */
.spot-forecast-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0;
}

.spot-day-tab {
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #e5f9ff;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 92px;
  text-align: center;
}

.spot-day-tab strong {
  font-size: 0.9rem;
}

.spot-day-tab span {
  font-size: 0.78rem;
  color: rgba(229, 249, 255, 0.72);
}

.spot-day-tab.is-active {
  border-color: rgba(45, 212, 191, 0.9);
  background: rgba(20, 184, 166, 0.2);
}

.spot-day-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: rgba(229, 249, 255, 0.84);
  font-size: 0.9rem;
}

.spot-day-summary strong {
  color: #ffffff;
}

.spot-day-summary span {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(15, 23, 42, 0.45);
}
