/*
  Ecolotes Py Landing Styles
  Palette: #0e9554 (primary), #054cad (secondary), #000000 (ink)
  Fonts: Poppins
*/

:root {
  --primary: #0e9554;
  --secondary: #054cad;
  --ink: #000000;
  --bg: #f7faf9;
  --muted: #6b7280;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border-radius: 999px;
  padding: .9rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  box-shadow: var(--shadow);
}

.btn i {
  font-size: 1.05rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0aa24e);
  color: var(--white);
}

.btn-contrast {
  background: linear-gradient(135deg, var(--secondary), #0b5de3);
  color: var(--white);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.brand-logo {
  height: 60px;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.2;
}

.brand-text span {
  font-size: .9rem;
  color: var(--muted);
}

.social a {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-left: .6rem;
}

.social a:hover {
  color: #0b5de3;
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 76, 173, .40), rgba(14, 149, 84, .40)), url('./images/0.webp') center/cover no-repeat;
  filter: saturate(1.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
  color: var(--white);
}

.hero-left h2 {
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  margin: 0 0 .4rem;
}

.hero-sub {
  margin: 0 0 1rem;
  font-weight: 600;
}

.badges {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: grid;
  gap: .6rem;
}

.badges li {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255, 255, 255, .14);
  padding: .5rem .8rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.hero-right {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-right h3 {
  margin: 0;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  background: rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.cd-item {
  text-align: center;
}

.cd-item span {
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
}

.cd-item small {
  text-transform: uppercase;
  font-size: .8rem;
  opacity: .9;
}

.advisor {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: .8rem;
  align-items: top;
  background: rgba(255, 255, 255, .18);
  border-radius: var(--radius-sm);
  padding: .8rem;
}

.advisor img {
  width: 180px;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Apply spacing only to top-level sections within main, not all <section> tags */
main>section {
  padding: 3.4rem 0;
}


/* Normalize Leaflet control list spacing (Leaflet uses <section> internally) */
.leaflet-control-layers-list,
.leaflet-control-layers-base,
.leaflet-control-layers-overlays {
  padding: 0 !important;
  margin: 0 !important;
}

.leaflet-control-layers-list label {
  margin: 0 !important;
  padding: 4px 8px !important;
  display: block;
}

.leaflet-container .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.336) !important;
}

section h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.details {
  background: var(--white);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .6rem;
}

.icon-list li {
  display: flex;
  gap: .6rem;
  align-items: start;
}

.icon-list i {
  color: var(--primary);
  margin-top: .25rem;
}

.video {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}

.video .video-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video video {
  width: 100%;
  display: block;
  background-color: #27614c;
}

/* Vertical video support */
.video .video-wrapper.vertical {
  max-width: 420px;
  margin-inline: auto;
  background-color: #27614c;
}

.video .video-wrapper.vertical .video-player {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
}

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

.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: #000;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .4s ease;
  filter: saturate(1.1) contrast(1.02);
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

.map #map {
  width: 100%;
  height: 460px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-note {
  color: var(--muted);
  margin-top: .6rem;
}

.cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  text-align: center;
}

.cta-inner {
  display: grid;
  gap: .6rem;
}

.footer {
  background: #0b1220;
  color: #d1d5db;
}

.footer-inner {
  display: grid;
  gap: .6rem;
  align-items: center;
  justify-items: center;
  padding: 1.6rem 0;
}

.footer .logos {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: #000000;
  padding: .8rem 1.2rem;
  border-radius: 28px;
  /* prominente, bien redondeado */
  box-shadow: 0 6px 20px rgba(8, 8, 8, 0.08);
  max-width: 100%;
  overflow: hidden;
}

.footer .logos img {
  height: 40px;
  width: auto;
  max-width: 100%;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

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

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



@media (max-width: 600px) {
  main>section {
    padding: 2rem 0;
  }

  .brand-logo {
    height: 50px;
    text-align: center;
  }

  .brand {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .brand-logo {
    display: block;
    margin: 0 auto;
  }

  .hero-content {
    padding: 1.2rem 0 2rem;
  }

  .hero-sub {
    font-size: .8rem;
  }

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

  .gallery-grid img {
    height: 200px;
  }

  /* Prevent logo from overflowing on mobile */
  .topbar-inner {
    padding: .6rem 0;
    justify-content: center !important;
  }

  .brand {
    min-width: 0;
    overflow: hidden;
    max-width: 80vw;
    flex: 1 1 auto;
  }

  .footer .logos {
    padding: .6rem .9rem;
    border-radius: 24px;
  }

  .footer .logos img {
    height: 30px;
  }
}