/* ============================================================
   SEBADAL — Estilos principales
   Paleta marina | Glassmorphism header | Responsive
   ============================================================ */

/* ---- Reset & Variables ---- */

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

:root {
  /* Paleta marina */
  --sea-900: #062030;
  --sea-800: #0a3450;
  --sea-700: #0a4a6e;
  --sea-600: #0d6596;
  --sea-500: #1282b8;
  --sea-400: #33a3d6;
  --sea-300: #6ec4e8;
  --sea-200: #b0dffa;
  --sea-100: #e0f3ff;
  --sea-50:  #f0f9ff;

  --teal-600: #0a7a6e;
  --teal-500: #0d9488;
  --teal-400: #2dd4bf;

  --sand-100: #fef9f0;
  --sand-200: #fdf0d5;

  /* Semáforo */
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #ea8c00;
  --orange-dark: #c2720a;
  --green-dark: #15803d;
  --green: #22c55e;
  --yellow: #eab308;

  /* Playa semáforo */
  --beach-red: #ef4444;
  --beach-yellow: #f59e0b;
  --beach-green: #10b981;

  /* Neutros */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Tipografía */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.16);

  /* Header */
  --header-height: 68px;

  /* Transiciones */
  --transition-fast: 150ms ease;
  --transition: 250ms ease;
  --transition-slow: 400ms ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.body--map {
  overflow: hidden;
}

a {
  color: var(--sea-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--sea-700);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- Container ---- */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--center {
  text-align: center;
}

/* ============================================================
   HEADER — flotante con glassmorphism
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}

.header--map {
  background: rgba(6, 32, 48, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--sea-700);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.header--map .header__logo {
  color: var(--white);
}

.header__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.header--map .header__icon {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.header__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.header__link:hover {
  color: var(--sea-700);
  background: var(--sea-50);
}

.header--map .header__link {
  color: rgba(255, 255, 255, 0.7);
}

.header--map .header__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.header__link--active {
  color: var(--sea-700);
  font-weight: 600;
}

.header--map .header__link--active {
  color: var(--white);
}

.header__link--mapa {
  background: var(--sea-600);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-lg);
}

.header__link--mapa:hover {
  background: var(--sea-700);
  color: var(--white);
}

.header--map .header__link--mapa {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.header--map .header__link--mapa:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-lg) var(--space-3xl);
  background: linear-gradient(165deg, var(--sea-900) 0%, var(--sea-700) 40%, var(--teal-600) 100%);
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: 180px;
  height: auto;
  margin-bottom: var(--space-lg);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  animation: heroLogoFadeIn 0.8s ease-out;
}

@keyframes heroLogoFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__brand {
  display: block;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--white) 0%, var(--sea-200) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin-top: var(--space-sm);
  color: var(--sea-200);
  letter-spacing: -0.01em;
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
}

/* Animated underwater background */
.hero__visual {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bubble {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, var(--bubble-opacity, 0.2));
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
  animation: bubbleRise linear infinite;
}

@keyframes bubbleRise {
  0%   { transform: translateY(0); opacity: 0; }
  3%   { opacity: var(--bubble-opacity, 0.2); }
  85%  { opacity: calc(var(--bubble-opacity, 0.2) * 0.5); }
  100% { transform: translateY(-110vh); opacity: 0; }
}

@keyframes seaweed {
  0% {
    background-position: 15% bottom, 70% bottom;
  }
  100% {
    background-position: 17% bottom, 68% bottom;
  }
}

@keyframes wave {
  from { transform: translateX(0); }
  to { transform: translateX(-1200px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  min-height: 44px;
}

.btn--primary {
  background: var(--white);
  color: var(--sea-700);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--sea-50);
  color: var(--sea-800);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

.btn__arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ============================================================
   SECTIONS — Generic
   ============================================================ */

.section {
  padding: var(--space-4xl) 0;
}

.section__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sea-900);
  margin-bottom: var(--space-xl);
}

.section__text {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
  text-align: center;
}

.section__text + .section__text {
  margin-top: var(--space-md);
}

/* Problem section */
.section--problem {
  background: var(--sea-50);
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.stat {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat__number {
  display: block;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  color: var(--sea-700);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat__label {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: var(--space-xs);
  font-weight: 500;
}

/* How it works — features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.feature__icon--red {
  color: var(--red);
  background: rgba(220, 38, 38, 0.1);
}

.feature__icon--orange {
  color: var(--orange);
  background: rgba(234, 140, 0, 0.1);
}

.feature__icon--green {
  color: var(--green-dark);
  background: rgba(21, 128, 61, 0.1);
}

.feature__icon--beach-red {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.feature__icon--beach-yellow {
  color: #d97706;
  background: rgba(217, 119, 6, 0.1);
}

.feature__icon--beach-green {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
}

.feature__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-sm);
}

.feature__text {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* CTA section */
.section--cta {
  background: linear-gradient(165deg, var(--sea-800) 0%, var(--sea-600) 100%);
  color: var(--white);
  text-align: center;
}

.section--cta .section__title {
  color: var(--white);
}

.section--cta .section__text {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto var(--space-xl);
}

/* ============================================================
   FAQ
   ============================================================ */

.section--faq {
  background: var(--white);
}

.faq {
  max-width: 720px;
}

.faq__item {
  border-bottom: 1px solid var(--gray-200);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-fast);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gray-400);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

details[open] > .faq__question::after {
  content: '-';
}

.faq__question:hover {
  color: var(--sea-600);
}

.faq__answer {
  padding: 0 0 var(--space-lg);
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.faq__answer p + p {
  margin-top: var(--space-md);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-3xl) 0 var(--space-xl);
  font-size: 0.875rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer__desc {
  max-width: 300px;
  line-height: 1.6;
}

.footer__heading {
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.footer__list {
  list-style: none;
}

.footer__list li + li {
  margin-top: var(--space-sm);
}

.footer__list a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer__list a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-xl);
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.footer__bottom p + p {
  margin-top: var(--space-sm);
}

/* ============================================================
   MAP VIEW
   ============================================================ */

.view--mapa {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
}

#map {
  width: 100%;
  height: 100%;
}

/* ============================================================
   LEGEND — flotante bottom-right
   ============================================================ */

.legend {
  position: fixed;
  bottom: 32px;
  right: 16px;
  z-index: 1000;
  z-index: 800;
  font-size: 0.8rem;
}

.legend__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  color: var(--gray-700);
  margin-left: auto;
  margin-bottom: var(--space-sm);
  transition: all var(--transition-fast);
}

.legend__toggle:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.legend__toggle--active {
  background: var(--sea-600);
  color: var(--white);
}

.legend__body {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
}

.legend__title {
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legend__title:not(:first-child) {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--gray-200);
}

.legend__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 2px 0;
  color: var(--gray-700);
}

.legend__dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.legend__dot--red { background: var(--red); }
.legend__dot--orange { background: var(--orange); }
.legend__dot--green-dark { background: var(--green-dark); }
.legend__dot--beach-red { background: var(--beach-red); }
.legend__dot--beach-yellow { background: var(--beach-yellow); }
.legend__dot--beach-green { background: var(--beach-green); }

/* ============================================================
   LEAFLET POPUP — estilos propios
   ============================================================ */

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  font-family: var(--font) !important;
  font-size: 0.875rem !important;
  line-height: 1.55 !important;
  min-width: 240px;
  max-width: 320px;
}

.leaflet-popup-tip {
  box-shadow: var(--shadow-sm) !important;
}

/* Popup custom classes (used by app.js) */
.popup-header {
  padding: var(--space-md) var(--space-lg);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.popup-header--red { background: var(--red); }
.popup-header--orange { background: var(--orange-dark); }
.popup-header--green { background: var(--green-dark); }
.popup-header--beach { background: var(--sea-600); }

.popup-body {
  padding: var(--space-md) var(--space-lg);
}

.popup-body p {
  margin: 0;
  padding: 3px 0;
  color: var(--gray-600);
}

.popup-body p strong {
  color: var(--gray-800);
}

.popup-body .popup-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
}

.popup-tag--red { background: var(--red); }
.popup-tag--orange { background: var(--orange); }
.popup-tag--green { background: var(--green-dark); }
.popup-tag--beach-red { background: var(--beach-red); }
.popup-tag--beach-yellow { background: var(--beach-yellow); color: var(--gray-800); }
.popup-tag--beach-green { background: var(--beach-green); }

.popup-footer {
  padding: var(--space-sm) var(--space-lg) var(--space-md);
  border-top: 1px solid var(--gray-100);
}

.popup-footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sea-600);
}

.popup-footer a:hover {
  color: var(--sea-700);
}

/* Close button */
.leaflet-popup-close-button {
  color: var(--white) !important;
  font-size: 20px !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  top: 6px !important;
  right: 6px !important;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.leaflet-popup-close-button:hover {
  opacity: 1;
  color: var(--white) !important;
}

/* ============================================================
   LEAFLET CONTROLS — ajustar posición por header
   ============================================================ */

.leaflet-top {
  top: calc(var(--header-height) + 12px);
}

.leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
  border-radius: var(--radius-sm) !important;
}

/* ============================================================
   RESPONSIVE — <= 767px
   ============================================================ */

@media (max-width: 767px) {

  :root {
    --header-height: 52px;
  }

  .header__inner {
    padding: 0 var(--space-md);
  }

  .header__title {
    font-size: 1rem;
  }

  .header__link--home {
    display: none;
  }

  .header__link--mapa {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
  }

  /* Hero */
  .hero {
    min-height: 75vh;
    padding-top: calc(var(--header-height) + var(--space-2xl));
  }

  .hero__logo {
    width: 130px;
  }

  .hero__lead br {
    display: none;
  }

  /* Stats */
  .stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .stat {
    padding: var(--space-lg) var(--space-md);
  }

  /* Features */
  .features {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }

  .feature__icon {
    flex-shrink: 0;
    margin-bottom: 0;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  /* Sections */
  .section {
    padding: var(--space-2xl) 0;
  }

  .section__title {
    margin-bottom: var(--space-lg);
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* CTA button — full width on mobile */
  .section--cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Legend — collapsible on mobile */
  .legend {
    bottom: 24px;
    right: 12px;
  }

  .legend__toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .legend__body {
    display: none;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: var(--space-sm);
  }

  .legend__body--open {
    display: block;
  }

  /* Popup width */
  .leaflet-popup-content {
    min-width: 200px;
    max-width: 280px;
  }

  /* Zoom controls — bigger touch targets */
  .leaflet-control-zoom a {
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    font-size: 20px !important;
  }

  /* FAQ */
  .faq__question {
    padding: var(--space-md) 0;
    font-size: 0.95rem;
  }
}

/* ============================================================
   PRINT — hide map and non-essential
   ============================================================ */

@media print {
  .header,
  .hero__visual,
  .view--mapa,
  .legend,
  .section--cta,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .hero {
    min-height: auto;
    background: none;
    color: #000;
    padding: 1cm 0;
  }

  .hero__brand {
    -webkit-text-fill-color: #000;
    color: #000;
    font-size: 24pt;
  }

  .hero__tagline,
  .hero__lead {
    color: #333;
  }
}

/* ============================================================
   CLUSTER STYLES (MarkerCluster custom)
   ============================================================ */

.marker-cluster-vertido,
.marker-cluster-playa {
  background: transparent !important;
  border: none !important;
}

.cluster-vertido,
.cluster-playa {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.cluster-vertido {
  background: #dc2626;
}

.cluster-vertido.cluster-medium {
  background: #b91c1c;
}

.cluster-vertido.cluster-large {
  background: #991b1b;
}

.cluster-playa {
  background: #0d9488;
}

.cluster-playa.cluster-medium {
  background: #0f766e;
}

.cluster-playa.cluster-large {
  background: #115e59;
}

.cluster-small {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.cluster-medium {
  width: 44px;
  height: 44px;
  font-size: 13px;
}

.cluster-large {
  width: 52px;
  height: 52px;
  font-size: 14px;
}

/* ============================================================
   GEOLOCATION BUTTON
   ============================================================ */

.geoloc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.geoloc-btn:hover {
  background: #f0f0f0;
}

.geoloc-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   LEAFLET POPUP CUSTOM STYLES
   ============================================================ */

.leaflet-popup-content-wrapper {
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
  margin: 0;
  min-width: 260px;
  max-width: 320px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

/* ============================================================
   MAP DISCLAIMER BANNER
   ============================================================ */

.map-disclaimer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-disclaimer p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.map-disclaimer a {
  color: #67e8f9;
  text-decoration: underline;
}

.map-disclaimer__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.map-disclaimer__close:hover {
  color: #fff;
}

.map-disclaimer--hidden {
  display: none;
}

/* Popup clases reales de app.js */
.popup-custom .leaflet-popup-content-wrapper {
  padding: 0;
}

.popup-vertido,
.popup-playa {
  padding: 16px 20px;
}

.popup-title {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.popup-details {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
}

.popup-details div {
  margin-bottom: 4px;
}

.popup-nav {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.popup-header {
  padding: 12px 18px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.popup-header--red { background: #dc2626; }
.popup-header--orange { background: #f97316; }
.popup-header--green { background: #166534; }
.popup-header--beach { background: var(--color-primary, #0a4a6e); }
.popup-header--beach-red { background: #dc2626; }
.popup-header--beach-yellow { background: #d97706; }
.popup-header--beach-green { background: #16a34a; }

.popup-body {
  padding: 14px 18px;
  color: #334155;
}

.popup-body p {
  margin: 6px 0;
}

.popup-body strong {
  color: #1e293b;
}

.popup-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  margin: 2px 2px 2px 0;
}

.popup-tag--red { background: #dc2626; }
.popup-tag--orange { background: #f97316; }
.popup-tag--green { background: #166534; }
.popup-tag--beach-red { background: #dc2626; }
.popup-tag--beach-yellow { background: #d97706; }
.popup-tag--beach-green { background: #16a34a; }

.popup-footer {
  padding: 10px 18px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
}

.popup-footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: var(--color-primary, #0a4a6e);
  transition: opacity 0.2s;
}

.popup-footer a:hover {
  opacity: 0.85;
}
