:root {
  --ocean-950: #020b18;
  --ocean-900: #041326;
  --cyan: #32e6ff;
  --green: #35ff9f;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.76);
  --line: rgba(88, 224, 255, 0.24);
  --sand: #f4f8fb;
  --text-dark: #071d36;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--sand);
  color: var(--text-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.spots-page {
  min-height: 100vh;
  background:
    linear-gradient(
      180deg,
      rgba(2, 11, 24, 0.90) 0%,
      rgba(4, 19, 38, 0.92) 46%,
      #f4f8fb 46%,
      #f4f8fb 100%
    ),
    url("../assets/images/card-spots-surfers.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.site-header {
  min-height: 76px;
  padding: 18px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 18, 38, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 46px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--cyan);
  border: 1px solid var(--line);
  font-size: 28px;
}

.brand strong {
  display: block;
  font-size: 28px;
  letter-spacing: 0.08em;
  line-height: 0.9;
}

.brand small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.34em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
}

.login-link {
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.register-button,
.spot-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 13px;
  background: linear-gradient(135deg, #15a7d1, #35e6e6);
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(17, 168, 198, 0.25);
}

.spots-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 420px;
  gap: 36px;
  align-items: end;
  padding: 86px clamp(20px, 4vw, 64px) 64px;
  color: white;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
}

.spots-hero h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.spots-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

.search-panel {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(160, 225, 255, 0.28);
  background: rgba(3, 18, 38, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.78);
  font-weight: 900;
}

.search-panel input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: white;
  outline: none;
}

.search-panel input::placeholder {
  color: rgba(255,255,255,0.48);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-button {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.filter-button.is-active {
  background: rgba(50, 230, 255, 0.18);
  border-color: rgba(50, 230, 255, 0.44);
  color: var(--cyan);
}

.spots-content {
  padding: 46px clamp(20px, 4vw, 64px) 72px;
  background: var(--sand);
}

.section-heading h2 {
  margin: 0 0 26px;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.05em;
}

.spots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.loading {
  color: rgba(7, 29, 54, 0.68);
}

.spot-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(7, 29, 54, 0.10);
  background: white;
  box-shadow: 0 18px 40px rgba(7, 29, 54, 0.08);
}

.spot-card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.spot-card h3 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.spot-card-location {
  display: block;
  margin-top: 8px;
  color: rgba(7, 29, 54, 0.62);
  font-weight: 800;
}

.spot-score {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(12, 174, 105, 0.8);
  color: #071d36;
  font-size: 22px;
  font-weight: 900;
}

.spot-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.spot-metrics div {
  padding: 14px;
  border-radius: 16px;
  background: #f4f8fb;
}

.spot-metrics span {
  display: block;
  color: rgba(7, 29, 54, 0.58);
  font-size: 13px;
  font-weight: 900;
}

.spot-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.spot-card-link {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 1100px) {
  .spots-hero {
    grid-template-columns: 1fr;
  }

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

  .main-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-actions {
    display: none;
  }

  .spots-grid {
    grid-template-columns: 1fr;
  }

  .spots-hero h1 {
    font-size: 52px;
  }
}

/* ===== Mejoras globales de filtros y tarjetas ===== */

.filter-title {
  margin: 16px 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 900;
}

.spots-counter {
  margin: -14px 0 26px;
  color: rgba(7, 29, 54, 0.62);
  font-weight: 800;
}

.spot-country {
  margin: 0 0 8px;
  color: #0b9fc4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 900;
}

.spot-score {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(12, 174, 105, 0.8);
  color: #071d36;
}

.spot-score strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1;
}

.spot-score small {
  display: block;
  margin-top: -8px;
  font-size: 9px;
  font-weight: 900;
  color: rgba(7, 29, 54, 0.62);
}

/* ===== Selector compacto de países ===== */

.country-select {
  width: 100%;
  margin-top: 8px;
  padding: 15px 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: white;
  outline: none;
  font-weight: 800;
  cursor: pointer;
}

.country-select option {
  color: #071d36;
  background: white;
}

.filter-title {
  display: block;
  margin: 18px 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 900;
}

/* ===== Página de favoritos ===== */

.favorite-info-panel h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 38px;
  letter-spacing: -0.05em;
}

.favorite-info-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.favorite-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: auto;
}

.remove-favorite-button {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid rgba(7, 29, 54, 0.12);
  border-radius: 13px;
  background: #f4f8fb;
  color: rgba(7, 29, 54, 0.78);
  font-weight: 900;
  cursor: pointer;
}

.remove-favorite-button:hover {
  background: #e9f1f7;
}

.empty-favorites {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 24px;
  border: 1px solid rgba(7, 29, 54, 0.10);
  background: white;
  box-shadow: 0 18px 40px rgba(7, 29, 54, 0.08);
}

.empty-favorites h3 {
  margin: 0 0 12px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.empty-favorites p {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(7, 29, 54, 0.66);
  line-height: 1.6;
}

/* ===== Página de alertas ===== */

.alerts-content {
  display: block;
}

.alert-form {
  max-width: 980px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(7, 29, 54, 0.10);
  background: white;
  box-shadow: 0 18px 40px rgba(7, 29, 54, 0.08);
}

.form-row {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.form-row label {
  color: rgba(7, 29, 54, 0.76);
  font-weight: 900;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(7, 29, 54, 0.14);
  border-radius: 14px;
  background: #f4f8fb;
  color: #071d36;
  outline: none;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.alert-submit-button {
  width: 100%;
  margin-top: 6px;
  padding: 16px 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #15a7d1, #35e6e6);
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(17, 168, 198, 0.25);
}

.alert-form-note {
  margin: 16px 0 0;
  color: rgba(7, 29, 54, 0.58);
  line-height: 1.5;
  font-weight: 700;
}

.alerts-list-heading {
  margin-top: 52px;
}

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

.alert-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(7, 29, 54, 0.10);
  background: white;
  box-shadow: 0 18px 40px rgba(7, 29, 54, 0.08);
}

.alert-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.alert-card h3 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.alert-card p {
  margin: 8px 0 0;
  color: rgba(7, 29, 54, 0.62);
  font-weight: 800;
}

.alert-pill {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(50, 230, 255, 0.14);
  color: #0b9fc4;
  font-size: 12px;
  font-weight: 900;
}

.alert-rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.alert-rules div {
  padding: 14px;
  border-radius: 16px;
  background: #f4f8fb;
}

.alert-rules span {
  display: block;
  color: rgba(7, 29, 54, 0.58);
  font-size: 13px;
  font-weight: 900;
}

.alert-rules strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

@media (max-width: 1100px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .alerts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Botón crear alerta desde favoritos ===== */

.create-alert-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid rgba(50, 230, 255, 0.32);
  border-radius: 13px;
  background: rgba(50, 230, 255, 0.10);
  color: #0b9fc4;
  font-weight: 900;
}

.create-alert-link:hover {
  background: rgba(50, 230, 255, 0.16);
}

/* ===== Estado de alertas en favoritos ===== */

.alert-bell {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(50, 230, 255, 0.14);
  color: #0b9fc4;
  font-size: 13px;
}

.remove-alert-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid rgba(255, 177, 66, 0.34);
  border-radius: 13px;
  background: rgba(255, 177, 66, 0.12);
  color: #a96a00;
  font-weight: 900;
  cursor: pointer;
}

.remove-alert-button:hover {
  background: rgba(255, 177, 66, 0.18);
}

/* ===== Página Forecast ===== */

.forecast-ranking {
  display: grid;
  gap: 18px;
}

.forecast-row {
  display: grid;
  grid-template-columns: 80px minmax(220px, 1fr) 1.7fr 180px;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(7, 29, 54, 0.10);
  background: white;
  box-shadow: 0 18px 40px rgba(7, 29, 54, 0.08);
}

.forecast-position {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f4f8fb;
  color: #071d36;
  font-size: 22px;
  font-weight: 900;
}

.forecast-main h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.forecast-main p:not(.spot-country) {
  margin: 8px 0 0;
  color: rgba(7, 29, 54, 0.62);
  font-weight: 800;
}

.forecast-data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.forecast-data div {
  padding: 12px;
  border-radius: 16px;
  background: #f4f8fb;
}

.forecast-data span {
  display: block;
  color: rgba(7, 29, 54, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.forecast-data strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.forecast-data small {
  display: block;
  margin-top: 4px;
  color: #0b9fc4;
  font-weight: 900;
}

.forecast-link {
  width: 100%;
}

@media (max-width: 1200px) {
  .forecast-row {
    grid-template-columns: 70px 1fr;
  }

  .forecast-data,
  .forecast-link {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .forecast-data {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Login y Registro visual ===== */

.auth-page {
  min-height: 100vh;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 460px;
  gap: 48px;
  align-items: center;
  padding: 90px clamp(20px, 4vw, 64px);
  color: white;
}

.auth-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(54px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.auth-copy > p {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 21px;
  line-height: 1.55;
}

.auth-benefits {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin-top: 34px;
}

.auth-benefits div {
  padding: 18px;
  border: 1px solid rgba(160, 225, 255, 0.22);
  border-radius: 18px;
  background: rgba(3, 18, 38, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-benefits strong {
  display: block;
  color: white;
  font-size: 17px;
}

.auth-benefits span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.45;
}

.auth-card {
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(160, 225, 255, 0.28);
  background: rgba(3, 18, 38, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-card h2 {
  margin: 0 0 24px;
  color: white;
  font-size: 42px;
  letter-spacing: -0.05em;
}

.auth-card .form-row label {
  color: rgba(255, 255, 255, 0.82);
}

.auth-card .form-row input {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.auth-card .form-row input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.auth-message {
  display: none;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(50, 230, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
  font-weight: 800;
}

.auth-message.is-visible {
  display: block;
}

.auth-switch {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
  font-weight: 800;
}

.auth-switch a {
  color: var(--cyan);
}

.active-auth {
  border-color: rgba(50, 230, 255, 0.42);
}

.active-register {
  box-shadow: 0 14px 34px rgba(17, 168, 198, 0.35);
}

@media (max-width: 1000px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== Etiquetas de información en tarjetas de spots ===== */

.spot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.spot-tags span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(50, 230, 255, 0.10);
  color: #0b9fc4;
  font-size: 12px;
  font-weight: 900;
}

/* ===== Corrección estable del hero en páginas de listado ===== */

.spots-page {
  background: #f4f8fb;
}

.spots-hero {
  min-height: 620px;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(2, 11, 24, 0.96) 0%,
      rgba(2, 11, 24, 0.82) 44%,
      rgba(2, 11, 24, 0.62) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 11, 24, 0.86) 0%,
      rgba(2, 11, 24, 0.70) 55%,
      rgba(2, 11, 24, 0.92) 100%
    ),
    url("../assets/images/card-spots-surfers.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.spots-hero h1,
.spots-hero p {
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.spots-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.spots-content {
  position: relative;
  z-index: 2;
  background: #f4f8fb;
}

.search-panel {
  position: relative;
  z-index: 3;
}

@media (max-width: 1100px) {
  .spots-hero {
    min-height: auto;
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

/* ===== Footer común ===== */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 42px clamp(20px, 4vw, 64px);
  background: #020b18;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: white;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.site-footer p {
  max-width: 520px;
  margin: 0 0 8px;
  line-height: 1.5;
}

.site-footer small {
  color: rgba(255, 255, 255, 0.48);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--cyan);
}

@media (max-width: 760px) {
  .site-footer {
    flex-direction: column;
  }
}

/* ===== Corrección visual común en páginas internas ===== */

/* Cabecera oscura y consistente en todas las páginas internas */
.site-header {
  position: relative;
  z-index: 20;
  background: rgba(2, 11, 24, 0.94);
  color: white;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header .brand,
.site-header .main-nav a,
.site-header .login-link,
.site-header .register-button {
  color: white;
}

/* Restaurar fondo oscuro/visual en login y registro */
.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(
      90deg,
      rgba(2, 11, 24, 0.96) 0%,
      rgba(2, 11, 24, 0.82) 48%,
      rgba(2, 11, 24, 0.70) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 11, 24, 0.70) 0%,
      rgba(2, 11, 24, 0.92) 100%
    ),
    url("../assets/images/card-spots-surfers.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-layout {
  position: relative;
  z-index: 2;
}

.auth-copy h1,
.auth-copy p,
.auth-benefits,
.auth-card {
  opacity: 1;
  visibility: visible;
}

/* Footer siempre visible */
.site-footer {
  position: relative;
  z-index: 5;
  background: #020b18;
  opacity: 1;
  visibility: visible;
}

.site-footer * {
  opacity: 1;
  visibility: visible;
}

/* ===== Ajuste de color: fondos internos con imagen más visible ===== */

.spots-hero {
  background:
    linear-gradient(
      90deg,
      rgba(2, 11, 24, 0.88) 0%,
      rgba(2, 11, 24, 0.68) 45%,
      rgba(2, 11, 24, 0.48) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 11, 24, 0.62) 0%,
      rgba(2, 11, 24, 0.54) 52%,
      rgba(2, 11, 24, 0.82) 100%
    ),
    url("../assets/images/card-spots-surfers.png");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.auth-page {
  background:
    linear-gradient(
      90deg,
      rgba(2, 11, 24, 0.88) 0%,
      rgba(2, 11, 24, 0.66) 48%,
      rgba(2, 11, 24, 0.50) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 11, 24, 0.56) 0%,
      rgba(2, 11, 24, 0.82) 100%
    ),
    url("../assets/images/card-spots-surfers.png");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.spots-hero::after,
.auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(50, 230, 255, 0.12), transparent 30%),
    radial-gradient(circle at 28% 72%, rgba(53, 255, 159, 0.06), transparent 32%);
}

.spots-hero,
.auth-page {
  position: relative;
  overflow: hidden;
}

.spots-hero > *,
.auth-layout {
  position: relative;
  z-index: 2;
}

/* ===== Ajuste fino: un poco más de color en fondos internos ===== */

.spots-hero {
  background:
    linear-gradient(
      90deg,
      rgba(2, 11, 24, 0.82) 0%,
      rgba(2, 11, 24, 0.60) 45%,
      rgba(2, 11, 24, 0.40) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 11, 24, 0.54) 0%,
      rgba(2, 11, 24, 0.48) 52%,
      rgba(2, 11, 24, 0.76) 100%
    ),
    url("../assets/images/card-spots-surfers.png");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.auth-page {
  background:
    linear-gradient(
      90deg,
      rgba(2, 11, 24, 0.82) 0%,
      rgba(2, 11, 24, 0.58) 48%,
      rgba(2, 11, 24, 0.42) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 11, 24, 0.50) 0%,
      rgba(2, 11, 24, 0.76) 100%
    ),
    url("../assets/images/card-spots-surfers.png");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

/* ===== Avisos app móvil en alertas ===== */

.app-alert-box {
  margin: 6px 0 20px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(50, 230, 255, 0.22);
  background: rgba(50, 230, 255, 0.08);
}

.app-alert-box strong {
  display: block;
  color: #071d36;
  font-size: 18px;
}

.app-alert-box p {
  margin: 8px 0 0;
  color: rgba(7, 29, 54, 0.66);
  line-height: 1.55;
  font-weight: 700;
}

.alert-local-note {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f4f8fb;
  color: rgba(7, 29, 54, 0.68);
  line-height: 1.45;
  font-weight: 800;
}

/* ===== Página descargar app ===== */

.app-download-panel h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.app-download-panel p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  font-weight: 700;
}

.app-features-grid .gear-card {
  min-height: 260px;
}

.main-nav a.active {
  color: white;
}

/* ===== Alertas por email + push app ===== */

.push-box {
  background: rgba(53, 255, 159, 0.08);
  border-color: rgba(53, 255, 159, 0.24);
}

.alert-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4f8fb;
}

.alert-email-row span {
  color: rgba(7, 29, 54, 0.56);
  font-weight: 900;
}

.alert-email-row strong {
  color: #071d36;
  font-weight: 950;
  word-break: break-word;
}

.push-note {
  background: rgba(53, 255, 159, 0.10);
}

/* ===== Página Equipamiento / Afiliados ===== */

.affiliate-panel h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.affiliate-panel p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  font-weight: 700;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gear-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(7, 29, 54, 0.10);
  background: white;
  box-shadow: 0 18px 40px rgba(7, 29, 54, 0.08);
}

.gear-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 18px;
  background: #f4f8fb;
  font-size: 30px;
}

.gear-card h3 {
  margin: 0;
  color: #071d36;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.gear-card p {
  margin: 14px 0 24px;
  color: rgba(7, 29, 54, 0.64);
  line-height: 1.55;
  font-weight: 700;
}

.gear-link {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  margin-top: auto;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #15a7d1, #35e6e6);
  color: white;
  font-weight: 900;
}

.disabled-link {
  opacity: 0.72;
  cursor: not-allowed;
}

.affiliate-note {
  margin-top: 38px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(7, 29, 54, 0.10);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(7, 29, 54, 0.06);
}

.affiliate-note h2 {
  margin: 0 0 12px;
  color: #071d36;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.affiliate-note p {
  max-width: 900px;
  margin: 0;
  color: rgba(7, 29, 54, 0.66);
  line-height: 1.65;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .gear-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .gear-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Productos afiliados en Equipamiento ===== */

.gear-category {
  margin-top: 34px;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid rgba(7, 29, 54, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(7, 29, 54, 0.06);
}

.gear-category-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.gear-category-header .gear-icon {
  flex: 0 0 auto;
}

.gear-category-header h2 {
  margin: 2px 0 8px;
  color: #071d36;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.gear-category-header p {
  margin: 0;
  max-width: 850px;
  color: rgba(7, 29, 54, 0.62);
  font-weight: 800;
  line-height: 1.55;
}

.affiliate-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.affiliate-product-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(7, 29, 54, 0.10);
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(7, 29, 54, 0.07);
}

.affiliate-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(50, 230, 255, 0.12);
  color: #0786a7;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.affiliate-product-card h3 {
  margin: 0;
  color: #071d36;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.affiliate-product-card p {
  margin: 14px 0 22px;
  color: rgba(7, 29, 54, 0.62);
  line-height: 1.52;
  font-weight: 800;
}

.affiliate-product-card .gear-link {
  margin-top: auto;
}

@media (max-width: 1200px) {
  .affiliate-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .affiliate-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gear-category {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  .affiliate-products-grid {
    grid-template-columns: 1fr;
  }

  .gear-category-header {
    flex-direction: column;
  }

  .gear-category-header h2 {
    font-size: 30px;
  }
}

/* ===== Login y registro Buda ===== */

.auth-hero {
  align-items: center;
}

.auth-card {
  width: min(460px, 100%);
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(73, 182, 255, 0.28);
  background: rgba(3, 18, 34, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(16px);
}

.auth-card h2 {
  margin: 0 0 22px;
  color: white;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.auth-card .form-row {
  margin-bottom: 18px;
}

.auth-card label {
  color: rgba(255, 255, 255, 0.82);
}

.auth-card input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-weight: 800;
}

.auth-card input::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

.auth-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(50, 230, 255, 0.10);
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
  font-weight: 750;
}

.auth-switch {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.auth-switch a {
  color: #35e6e6;
  font-weight: 950;
}

@media (max-width: 900px) {
  .auth-card {
    width: 100%;
  }
}

/* ===== Video de fondo en páginas internas ===== */

.spots-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.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.92) 0%, rgba(2, 10, 20, 0.74) 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%);
}

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


/* ===== Override final: fondo video por encima de imagen antigua ===== */

.spots-hero {
  background:
    linear-gradient(90deg, rgba(2, 10, 20, 0.90), rgba(2, 10, 20, 0.58)),
    url("../assets/images/card-spots-surfers.png") center / cover no-repeat;
}

/* ===== Ranking forecast avanzado ===== */

.forecast-hero {
  grid-template-columns: minmax(0, 1fr) 430px;
  min-height: 650px;
}

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

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

.forecast-best-score {
  width: 132px;
  height: 132px;
  margin: 18px 0 24px;
  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);
}

.forecast-best-score span {
  font-size: 56px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.08em;
}

.forecast-best-score small {
  margin-top: 15px;
  font-size: 23px;
  font-weight: 950;
  color: rgba(255, 255, 255, 0.76);
}

.forecast-best-card h2 {
  margin: 0;
  color: white;
  font-size: 38px;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.forecast-best-card > p:not(.filter-title) {
  margin: 10px 0 22px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.forecast-best-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.forecast-best-metrics div {
  padding: 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.forecast-best-metrics span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.forecast-best-metrics strong {
  color: white;
  font-size: 18px;
}

.forecast-card-button {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #24aeda, #35e6e6);
  color: white;
  text-decoration: none;
  font-weight: 950;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forecast-panel {
  width: min(1220px, calc(100% - 40px));
  margin: 42px auto 80px;
}

.forecast-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.forecast-panel-header h2 {
  margin: 0 0 12px;
  color: #071d36;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.forecast-panel-header p {
  margin: 0;
  max-width: 760px;
  color: rgba(7, 29, 54, 0.62);
  font-weight: 800;
  line-height: 1.55;
}

.forecast-updated {
  min-width: 170px;
  height: fit-content;
  padding: 18px;
  border-radius: 22px;
  background: white;
  border: 1px solid rgba(7, 29, 54, 0.08);
  box-shadow: 0 16px 35px rgba(7, 29, 54, 0.06);
}

.forecast-updated span {
  display: block;
  margin-bottom: 8px;
  color: rgba(7, 29, 54, 0.48);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.forecast-updated strong {
  color: #071d36;
  font-size: 20px;
}

.forecast-filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 26px;
  background: white;
  border: 1px solid rgba(7, 29, 54, 0.08);
  box-shadow: 0 16px 35px rgba(7, 29, 54, 0.06);
}

.forecast-filters .form-row {
  margin: 0;
}

.forecast-filters label {
  display: block;
  margin-bottom: 8px;
  color: rgba(7, 29, 54, 0.56);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.forecast-filters input,
.forecast-filters select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(7, 29, 54, 0.12);
  background: #f5f8fb;
  color: #071d36;
  font-weight: 850;
  outline: none;
}

.forecast-reset-button {
  align-self: end;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: #071d36;
  color: white;
  font-weight: 950;
  cursor: pointer;
}

.forecast-summary {
  margin: 18px 0 20px;
  color: rgba(7, 29, 54, 0.62);
  font-weight: 850;
}

.forecast-ranking-list {
  display: grid;
  gap: 16px;
}

.forecast-ranking-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1.4fr) minmax(340px, 1fr) 120px 100px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 26px;
  background: white;
  border: 1px solid rgba(7, 29, 54, 0.08);
  box-shadow: 0 16px 35px rgba(7, 29, 54, 0.06);
}

.forecast-rank-number {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #071d36;
  color: white;
  font-weight: 1000;
  font-size: 20px;
}

.forecast-country {
  margin: 0 0 4px;
  color: #0786a7;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.forecast-rank-main h3 {
  margin: 0;
  color: #071d36;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.forecast-rank-main p:not(.forecast-country) {
  margin: 6px 0 0;
  color: rgba(7, 29, 54, 0.58);
  font-weight: 800;
}

.forecast-rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.forecast-rank-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(50, 230, 255, 0.10);
  color: #0786a7;
  font-size: 12px;
  font-weight: 900;
}

.forecast-rank-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.forecast-rank-metrics div {
  padding: 12px;
  border-radius: 16px;
  background: #f2f5f8;
}

.forecast-rank-metrics span {
  display: block;
  margin-bottom: 6px;
  color: rgba(7, 29, 54, 0.48);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.forecast-rank-metrics strong {
  color: #071d36;
  font-size: 15px;
}

.forecast-rank-score {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 4px solid #25e58b;
  background: rgba(37, 229, 139, 0.08);
}

.forecast-rank-score strong {
  color: #071d36;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.forecast-rank-score span {
  color: rgba(7, 29, 54, 0.58);
  font-size: 11px;
  font-weight: 950;
}

.forecast-rank-score.is-epic {
  border-color: #25e58b;
}

.forecast-rank-score.is-great {
  border-color: #35e6e6;
}

.forecast-rank-score.is-good {
  border-color: #49b6ff;
}

.forecast-rank-score.is-normal {
  border-color: #94a3b8;
}

.forecast-open-link {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #24aeda, #35e6e6);
  color: white;
  text-decoration: none;
  font-weight: 950;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forecast-empty-card {
  padding: 28px;
  border-radius: 24px;
  background: white;
  border: 1px solid rgba(7, 29, 54, 0.08);
}

.forecast-empty-card h3 {
  margin: 0 0 8px;
  color: #071d36;
}

.forecast-empty-card p {
  margin: 0;
  color: rgba(7, 29, 54, 0.62);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .forecast-ranking-card {
    grid-template-columns: 70px 1fr;
  }

  .forecast-rank-metrics,
  .forecast-rank-score,
  .forecast-open-link {
    grid-column: 2;
  }

  .forecast-rank-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .forecast-rank-score {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 900px) {
  .forecast-hero {
    grid-template-columns: 1fr;
  }

  .forecast-filters {
    grid-template-columns: 1fr;
  }

  .forecast-panel-header {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .forecast-ranking-card {
    grid-template-columns: 1fr;
  }

  .forecast-rank-metrics,
  .forecast-rank-score,
  .forecast-open-link {
    grid-column: auto;
  }

  .forecast-rank-metrics {
    grid-template-columns: 1fr;
  }

  .forecast-best-metrics {
    grid-template-columns: 1fr;
  }
}

/* ===== Ajuste definitivo card numero 1 forecast ===== */

.forecast-best-card {
  text-align: center;
}

.forecast-best-card .filter-title {
  text-align: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 950;
  text-transform: none;
  letter-spacing: 0;
}

.forecast-best-score {
  margin-left: auto;
  margin-right: auto;
}

.forecast-best-card h2,
.forecast-best-card > p:not(.filter-title) {
  text-align: center;
}

.forecast-best-metrics {
  text-align: left;
}

.forecast-panel-header .filter-title {
  color: #0786a7;
}

.forecast-updated strong {
  color: #0fbad1;
}

/* ===== Mensaje formulario alertas ===== */

.alert-form-message {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 850;
  line-height: 1.45;
}

.alert-form-message[data-type="success"] {
  background: rgba(37, 229, 139, 0.12);
  color: #137a4a;
}

.alert-form-message[data-type="error"] {
  background: rgba(255, 78, 78, 0.12);
  color: #b42323;
}

/* ===== Tarjetas alertas correo definitivas ===== */

.alerts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.alert-card {
  padding: 26px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(7, 29, 54, 0.08);
  box-shadow: 0 18px 45px rgba(7, 29, 54, 0.07);
}

.alert-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.alert-card-header .filter-title {
  margin: 0 0 4px;
  color: rgba(7, 29, 54, 0.50);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.alert-card-header h3 {
  margin: 0;
  color: #071d36;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.alert-card-header p {
  margin: 8px 0 0;
  color: rgba(7, 29, 54, 0.60);
  font-weight: 850;
}

.alert-delete-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(7, 29, 54, 0.14);
  border-radius: 14px;
  background: #f5f8fb;
  color: #071d36;
  font-weight: 950;
  cursor: pointer;
}

.alert-delete-button:hover {
  background: #071d36;
  color: #ffffff;
}

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

.alert-card-meta {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  margin: 20px 0;
}

.alert-card-meta div,
.alert-conditions-grid div {
  padding: 16px;
  border-radius: 18px;
  background: #f2f5f8;
}

.alert-card-meta span,
.alert-conditions-grid span {
  display: block;
  margin-bottom: 8px;
  color: rgba(7, 29, 54, 0.50);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.alert-card-meta strong,
.alert-conditions-grid strong {
  display: block;
  color: #071d36;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 950;
}

.alert-conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.empty-state-card {
  grid-column: 1 / -1;
  padding: 30px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(7, 29, 54, 0.08);
  box-shadow: 0 18px 45px rgba(7, 29, 54, 0.07);
}

.empty-state-card h3 {
  margin: 0 0 8px;
  color: #071d36;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.empty-state-card p {
  margin: 0;
  color: rgba(7, 29, 54, 0.62);
  font-weight: 850;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .alerts-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .alert-card {
    padding: 22px;
  }

  .alert-card-header {
    flex-direction: column;
  }

  .alert-delete-button {
    width: 100%;
  }

  .alert-card-meta {
    grid-template-columns: 1fr;
  }

  .alert-conditions-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Paginas legales ===== */

.legal-hero {
  grid-template-columns: minmax(0, 1fr);
  min-height: 420px;
}

.legal-hero > div:not(.page-bg-video-overlay) {
  max-width: 920px;
}

.legal-content {
  width: min(980px, calc(100% - 40px));
  margin: 42px auto 80px;
  display: grid;
  gap: 20px;
}

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

.legal-panel h2 {
  margin: 0 0 14px;
  color: #071d36;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.legal-panel p,
.legal-panel li {
  color: rgba(7, 29, 54, 0.68);
  line-height: 1.7;
  font-weight: 800;
}

.legal-panel p {
  margin: 0 0 14px;
}

.legal-panel p:last-child {
  margin-bottom: 0;
}

.legal-panel ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-data-box {
  margin: 18px 0;
  padding: 18px;
  border-radius: 20px;
  background: #f2f5f8;
}

.legal-data-box p {
  margin: 0 0 8px;
}

.legal-data-box p:last-child {
  margin-bottom: 0;
}

.footer-links a[href*="aviso-legal"],
.footer-links a[href*="privacidad"],
.footer-links a[href*="cookies"] {
  color: rgba(255, 255, 255, 0.62);
}

.footer-links a[href*="aviso-legal"]:hover,
.footer-links a[href*="privacidad"]:hover,
.footer-links a[href*="cookies"]:hover {
  color: #35e6e6;
}

@media (max-width: 720px) {
  .legal-content {
    width: min(100% - 26px, 980px);
  }

  .legal-panel {
    padding: 22px;
  }

  .legal-panel h2 {
    font-size: 25px;
  }
}

/* ===== Forecast real listado spots ===== */

.spot-card.has-live-forecast {
  border-color: rgba(37, 229, 139, 0.22);
}

.spot-score-badge.is-live {
  border-color: #25e58b;
  box-shadow:
    0 0 0 6px rgba(37, 229, 139, 0.08),
    0 16px 34px rgba(7, 29, 54, 0.08);
}

/* ===== Restaurar diseño bonito de tarjetas spots con forecast real ===== */

.spot-card {
  position: relative;
  padding: 26px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(7, 29, 54, 0.08);
  box-shadow: 0 18px 45px rgba(7, 29, 54, 0.07);
}

.spot-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.spot-country {
  margin: 0 0 10px;
  color: #0099c7;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.spot-card h3 {
  margin: 0;
  color: #071d36;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.spot-location {
  margin: 10px 0 0;
  color: rgba(7, 29, 54, 0.60);
  font-weight: 850;
}

.spot-score-badge {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border: 3px solid #37c282;
  border-radius: 999px;
  display: grid;
  place-items: center;
  align-content: center;
  background: rgba(37, 229, 139, 0.05);
  box-shadow:
    0 0 0 6px rgba(37, 229, 139, 0.06),
    0 14px 28px rgba(7, 29, 54, 0.06);
}

.spot-score-badge strong {
  display: block;
  color: #071d36;
  font-size: 24px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.05em;
}

.spot-score-badge span {
  display: block;
  margin-top: 4px;
  color: rgba(7, 29, 54, 0.58);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
}

.spot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.spot-tags span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(50, 230, 255, 0.10);
  color: #0099c7;
  font-size: 12px;
  font-weight: 900;
}

.spot-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.spot-metrics div {
  min-height: 72px;
  padding: 15px;
  border-radius: 18px;
  background: #f2f5f8;
}

.spot-metrics span {
  display: block;
  margin-bottom: 8px;
  color: rgba(7, 29, 54, 0.50);
  font-size: 12px;
  font-weight: 950;
}

.spot-metrics strong {
  display: block;
  color: #071d36;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 950;
}

.spot-card-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #24aeda, #35e6e6);
  color: #ffffff;
  text-decoration: none;
  font-weight: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(36, 174, 218, 0.18);
}

.spot-card-button:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.spot-card.has-live-forecast {
  border-color: rgba(37, 229, 139, 0.28);
}

.spot-score-badge.is-live {
  border-color: #25e58b;
  background: rgba(37, 229, 139, 0.06);
}

@media (max-width: 640px) {
  .spot-card-header {
    align-items: flex-start;
  }

  .spot-score-badge {
    width: 66px;
    height: 66px;
  }

  .spot-score-badge strong {
    font-size: 22px;
  }

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

/* ===== Loading forecast ranking ===== */

.forecast-loading-card {
  text-align: center;
  padding: 34px;
}

.forecast-loading-card h3 {
  margin: 0 0 10px;
  color: #071d36;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.forecast-loading-card p {
  margin: 0;
  color: rgba(7, 29, 54, 0.62);
  font-weight: 850;
  line-height: 1.5;
}

/* ===== Restaurar tarjetas del listado de spots ===== */

.spots-grid,
.spots-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.spot-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(14, 203, 171, 0.25);
  box-shadow: 0 24px 70px rgba(7, 29, 54, 0.08);
  color: #071d36;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.spot-card-image {
  min-height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18px;
}

.spot-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 10, 22, 0.08), rgba(2, 10, 22, 0.48));
}

.spot-card-image span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(3, 14, 28, 0.72);
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.spot-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.spot-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.spot-card-header p {
  margin: 0 0 6px;
  color: #21cfe2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 950;
}

.spot-card-header h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #071d36;
}

.spot-card-header span {
  display: block;
  margin-top: 8px;
  color: rgba(7, 29, 54, 0.62);
  font-weight: 800;
  line-height: 1.35;
}

.spot-quality-value {
  min-width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #20df9f;
  color: #071d36;
  font-size: 21px;
  font-weight: 950;
  background: #ffffff;
}

.spot-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spot-card-metrics div {
  border-radius: 18px;
  background: rgba(7, 29, 54, 0.045);
  padding: 14px;
}

.spot-card-metrics small {
  display: block;
  margin-bottom: 6px;
  color: rgba(7, 29, 54, 0.52);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spot-card-metrics strong {
  color: #071d36;
  font-size: 16px;
  font-weight: 950;
}

.spot-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.spot-live-note {
  color: #17b883;
  font-size: 13px;
  font-weight: 950;
}

.spot-card-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #20c6df, #37ead7);
  color: #ffffff;
  text-decoration: none;
  font-weight: 950;
  white-space: nowrap;
}

.spot-empty-card {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(7, 29, 54, 0.08);
}

.spot-empty-card h3 {
  margin: 0 0 10px;
  color: #071d36;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.spot-empty-card p {
  margin: 0;
  color: rgba(7, 29, 54, 0.62);
  font-weight: 850;
}

@media (max-width: 1100px) {
  .spots-grid,
  .spots-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .spots-grid,
  .spots-list {
    grid-template-columns: 1fr;
  }

  .spot-card-header h3 {
    font-size: 24px;
  }
}


/* ===== Tarjetas sin imágenes pesadas ===== */

.spot-card {
  position: relative;
  overflow: hidden;
}

.spot-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: linear-gradient(90deg, #21cfe2, #37ead7, #20df9f);
}

.spot-card-topline {
  min-height: 92px;
  padding: 28px 24px 20px;
  background:
    radial-gradient(circle at 88% 18%, rgba(55, 234, 215, 0.30), transparent 34%),
    radial-gradient(circle at 8% 0%, rgba(33, 207, 226, 0.22), transparent 32%),
    linear-gradient(135deg, #071d36, #0b2a4a 58%, #04111f);
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.spot-card-topline span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  backdrop-filter: blur(10px);
}

.spot-card-topline small {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 900;
  text-align: right;
  line-height: 1.25;
  max-width: 180px;
}

/* Anulamos las imágenes antiguas si queda alguna tarjeta con esa clase */
.spot-card-image {
  display: none !important;
}


/* ==================================================
   LOGO BUDA - CONTROL FINAL EN PAGINAS DE SPOTS
   ================================================== */

.site-header a.brand,
.site-header .brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 230px !important;
  max-width: 230px !important;
  height: 72px !important;
  max-height: 72px !important;
  overflow: hidden !important;
  flex: 0 0 230px !important;
}

.site-header a.brand img.brand-logo-img,
.site-header .brand img.brand-logo-img,
img.brand-logo-img {
  display: block !important;
  width: 220px !important;
  max-width: 220px !important;
  height: auto !important;
  max-height: 66px !important;
  object-fit: contain !important;
}

.footer-brand img.brand-logo-img {
  width: 190px !important;
  max-width: 190px !important;
  height: auto !important;
  max-height: 60px !important;
  object-fit: contain !important;
}

@media (max-width: 720px) {
  .site-header a.brand,
  .site-header .brand {
    width: 170px !important;
    max-width: 170px !important;
    flex-basis: 170px !important;
    height: 58px !important;
  }

  .site-header a.brand img.brand-logo-img,
  .site-header .brand img.brand-logo-img,
  img.brand-logo-img {
    width: 160px !important;
    max-width: 160px !important;
    max-height: 52px !important;
  }
}

/* ==================================================
   LOGO BUDA TRANSPARENTE - CONTROL FINAL SPOTS
   ================================================== */

.site-header a.brand,
.site-header .brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 280px !important;
  max-width: 280px !important;
  height: 82px !important;
  max-height: 82px !important;
  overflow: visible !important;
  flex: 0 0 280px !important;
}

.site-header a.brand img.brand-logo-img,
.site-header .brand img.brand-logo-img,
img.brand-logo-img {
  display: block !important;
  width: 260px !important;
  max-width: 260px !important;
  height: auto !important;
  max-height: 78px !important;
  object-fit: contain !important;
  background: transparent !important;
}

.footer-brand img.brand-logo-img {
  width: 220px !important;
  max-width: 220px !important;
  height: auto !important;
  max-height: 68px !important;
  background: transparent !important;
}

@media (max-width: 720px) {
  .site-header a.brand,
  .site-header .brand {
    width: 190px !important;
    max-width: 190px !important;
    flex-basis: 190px !important;
    height: 62px !important;
  }

  .site-header a.brand img.brand-logo-img,
  .site-header .brand img.brand-logo-img,
  img.brand-logo-img {
    width: 180px !important;
    max-width: 180px !important;
    max-height: 56px !important;
  }
}

/* === RESPONSIVE MOBILE SPOTS START === */

img,
video {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

@media (max-width: 1100px) {
  .site-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
  }

  .brand-logo-img {
    width: min(260px, 58vw);
    height: auto;
  }

  .main-nav {
    order: 3;
    display: flex !important;
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding: 6px 0 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .header-actions {
    margin-left: auto;
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .header-actions {
    order: 4;
    width: 100%;
    margin-left: 0;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .header-actions .login-link,
  .header-actions .register-button,
  .header-actions .secondary-button,
  .header-actions button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .spots-hero,
  .forecast-hero,
  .spot-detail-hero,
  .legal-hero {
    grid-template-columns: 1fr !important;
    min-height: auto;
    gap: 26px;
    padding: 46px 20px;
  }

  .spots-hero h1,
  .forecast-hero h1,
  .legal-hero h1 {
    font-size: clamp(42px, 12vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.055em;
  }

  .spots-hero p,
  .forecast-hero p,
  .legal-hero p {
    max-width: 100%;
  }

  .search-panel,
  .favorite-info-panel,
  .affiliate-panel,
  .forecast-best-card {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  .spots-content,
  .alerts-content,
  .forecast-panel,
  .legal-content {
    padding: 42px 20px;
  }

  .section-heading h1,
  .section-heading h2,
  .forecast-panel-header h2 {
    font-size: clamp(36px, 10vw, 54px);
    line-height: 1.04;
  }

  .spots-grid,
  .alerts-grid,
  .affiliate-products-grid,
  .forecast-best-metrics,
  .forecast-filters,
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .spot-card,
  .favorite-card,
  .alert-card,
  .affiliate-product-card,
  .gear-category,
  .legal-panel {
    min-width: 0;
  }

  .spot-card,
  .favorite-card,
  .alert-card {
    padding: 24px;
  }

  .forecast-filters {
    gap: 14px;
  }

  .forecast-reset-button,
  .alert-submit-button,
  .gear-link,
  .forecast-card-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand-logo-img {
    width: min(220px, 64vw);
  }

  .main-nav {
    gap: 16px;
    font-size: 0.94rem;
  }

  .header-actions {
    grid-template-columns: 1fr;
  }

  .spots-hero,
  .forecast-hero,
  .spot-detail-hero,
  .legal-hero {
    padding: 34px 16px;
  }

  .spots-content,
  .alerts-content,
  .forecast-panel,
  .legal-content {
    padding: 34px 16px;
  }

  .spots-hero h1,
  .forecast-hero h1,
  .legal-hero h1 {
    font-size: clamp(38px, 13vw, 52px);
  }

  .search-panel,
  .favorite-info-panel,
  .affiliate-panel,
  .forecast-best-card,
  .alert-form,
  .app-alert-box,
  .gear-category,
  .affiliate-note,
  .legal-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .spot-card h2,
  .favorite-card h2,
  .alert-card h2,
  .affiliate-product-card h3 {
    overflow-wrap: anywhere;
  }

  .spot-metrics,
  .forecast-best-metrics,
  .forecast-ranking-metrics,
  .alert-card-summary {
    grid-template-columns: 1fr !important;
  }
}

/* Forecast ranking: evitar métricas comprimidas en móvil */
@media (max-width: 980px) {
  .forecast-ranking-card,
  .forecast-ranking-item,
  .forecast-spot-card {
    grid-template-columns: 1fr !important;
    align-items: stretch;
  }

  .forecast-ranking-metrics,
  .forecast-metrics,
  .spot-metrics {
    width: 100%;
  }
}

/* Alertas y favoritos: botones ordenados en móvil */
@media (max-width: 760px) {
  .favorite-card-actions,
  .alert-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .favorite-card-actions a,
  .favorite-card-actions button,
  .alert-card-actions a,
  .alert-card-actions button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .alert-card-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

/* === RESPONSIVE MOBILE SPOTS END === */


/* === I18N LANGUAGE SWITCHER START === */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  background: rgba(2, 11, 24, 0.48);
}

.language-switcher button {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: transparent;
  color: rgba(226, 232, 240, 0.78);
  font-weight: 800;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}

.language-switcher button.active {
  background: linear-gradient(135deg, #22d3ee, #2dd4bf);
  color: #02111f;
}

.language-switcher button:hover {
  color: #ffffff;
}

.language-switcher button.active:hover {
  color: #02111f;
}

@media (max-width: 760px) {
  .language-switcher {
    align-self: flex-start;
  }
}
/* === I18N LANGUAGE SWITCHER END === */

/* Botón para solicitar nuevos spots en el footer */
.footer-spot-request {
  margin-top: 0.8rem;
}

.footer-spot-request-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(20, 184, 166, 0.55);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.footer-spot-request-button:hover,
.footer-spot-request-button:focus {
  transform: translateY(-1px);
  background: rgba(20, 184, 166, 0.22);
  border-color: rgba(20, 184, 166, 0.9);
}

