/* RESET + BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, Arial, sans-serif;
  background: #f5f5f5;
  color: #111;
  line-height: 1.5;
}

body {
  padding-top: 80px;
}

/* ===== HEADER ESTILO TELEMEDELLÍN ===== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #000;
  z-index: 9999;
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

/* Logo */
.logo img {
  height: 50px;
  display: block;
}

/* Hamburguesa */
.hamburger {
  margin-left: auto;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Menú móvil */
.nav {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: #000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.nav.active {
  transform: translateX(0);
}

.nav ul {
  list-style: none;
  padding: 60px 0;
  margin: 0;
  text-align: center;
}

.nav li {
  margin: 20px 0;
}

.nav a {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

/* ===== DESKTOP ===== */
@media (min-width: 768px) {

  .hamburger {
    display: none;
  }

  .nav {
    position: static;
    transform: none;
    height: auto;
    width: auto;
    background: none;
    margin-left: auto;
  }

  .nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0;
    text-align: left;
  }

  .nav li {
    margin: 0;
  }

  .nav a {
    font-size: 16px;
  }
}


.hero {
  padding: 40px 16px;
  background: #fff;
  text-align: center;
}

.hero h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 16px;
}

.hero {
  padding-top: 50px;
}

.services {
  padding: 32px 16px;
}

.services h2 {
  text-align: center;
  margin-bottom: 24px;
}

.services-list article {
  background: #fff;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 8px;
}

@media (min-width: 768px) {

  /* Header */
.hamburger {
  font-size: 28px;
  z-index: 10000;
}
  .nav {
    display: block;
  }

  .nav ul {
    display: flex;
    gap: 24px;
    padding: 0;
  }

  .nav a {
    padding: 0;
    font-size: 16px;
  }

  /* Servicios */
  .services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* Hero */
  .hero h1 {
    font-size: 40px;
  }
}

.footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 16px;
  margin-top: 40px;
}

.about {
  padding: 32px 16px;
  background: #fff;
}

.about h2 {
  text-align: center;
  margin-bottom: 16px;
}

.about p {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
}

@media (min-width: 768px) {
  .about p {
    font-size: 18px;
  }
}

.contact {
  padding: 40px 16px;
  background: #ffffff;
  text-align: center;
}

.contact h2 {
  margin-bottom: 16px;
  color: #111;
}

.contact p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 16px;
  color: #444;
}


.hero {
  background: #ffffff;
  padding: 48px 16px;
  text-align: center;
}

.hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111;
}

.hero p {
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 24px;
  color: #444;
}

.hero-btn {
  display: inline-block;
  padding: 14px 24px;
  background: #1b1b1b;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

@media (min-width: 768px) {
  .hero {
    padding: 72px 24px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 18px;
  }
}

.hero {
  background: #ffffff;
  padding: 48px 16px;
  text-align: center;
}

.hero-content {
  max-width: 520px;
  margin: 0 auto 24px;
}

.hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111;
}

.hero p {
  font-size: 16px;
  margin-bottom: 24px;
  color: #444;
}

.hero-btn {
  display: inline-block;
  padding: 14px 24px;
  background: #1b1b1b;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 640px;
  object-fit: contain;
}


@media (min-width: 768px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: left;
    padding: 72px 24px;
    gap: 40px;
  }

  .hero-content {
    margin: 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 18px;
  }
}

.what-we-do {
  padding: 40px 16px;
  background: #f5f5f5;
}

.what-we-do h2 {
  text-align: center;
  margin-bottom: 24px;
}

.what-list {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.what-list li {
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
}

.services {
  padding: 40px 16px;
}

.services h2 {
  text-align: center;
  margin-bottom: 32px;
}

.service-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.service-card h3 {
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.benefits {
  padding: 40px 16px;
  background: #ffffff;
}

.benefits h2 {
  text-align: center;
  margin-bottom: 24px;
}

.benefits-list {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.benefits-list li {
  padding: 10px 0;
  font-size: 16px;
}

.process {
  padding: 40px 16px;
  background: #f5f5f5;
}

.process h2 {
  text-align: center;
  margin-bottom: 32px;
  color: #111;
}

.process-steps {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.process-step {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
}

.process-step h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: #111;
}

.process-step p {
  font-size: 16px;
  color: #444;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}


.final-cta {
  padding: 48px 16px;
  background: #1b1b1b;
  color: #ffffff;
  text-align: center;
}

.final-cta .cta-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 24px;
  background: #ffffff;
  color: #1b1b1b;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.whatsapp-cta {
  padding: 48px 16px;
  background: #f5f5f5;
  text-align: center;
}

.whatsapp-cta h2 {
  margin-bottom: 12px;
}

.whatsapp-cta p {
  margin-bottom: 24px;
  color: #444;
}

.whatsapp-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  z-index: 1000;
}

.geomembranes {
  padding: 40px 16px;
  background: #ffffff;
}

.geomembranes h2 {
  text-align: center;
  margin-bottom: 32px;
}

.geomembrane-card {
  background: #f5f5f5;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.geomembrane-card h3 {
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .geomembrane-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.uses {
  padding: 40px 16px;
  background: #f5f5f5;
}

.uses h2 {
  text-align: center;
  margin-bottom: 32px;
  color: #111;
}

.uses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.use-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
}

.use-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: #111;
}

.use-card p {
  font-size: 16px;
  color: #444;
}

@media (min-width: 768px) {
  .uses-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.projects {
  padding: 40px 16px;
  background: #ffffff;
}

.projects h2 {
  text-align: center;
  margin-bottom: 24px;
  color: #111;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 8px 14px;
  border: 1px solid #ccc;
  background: #ffffff;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
}

.filter-btn.active {
  background: #1b1b1b;
  color: #ffffff;
  border-color: #1b1b1b;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}


@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.projects {
  padding: 40px 16px;
  background: #ffffff;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 8px 14px;
  border: 1px solid #ccc;
  background: #ffffff;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}

.filter-btn.active {
  background: #1b1b1b;
  color: #ffffff;
  border-color: #1b1b1b;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.project-card p {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  position: relative;
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  margin-top: 16px;
}

.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #1b1b1b;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 1000;
}

#backToTop:hover {
  background: #000;
}

/* Ocultar hamburguesa en desktop */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

/* Alinear menú a la derecha en desktop */
@media (min-width: 768px) {
  .header-container {
    display: flex;
    align-items: center;
  }

  .nav {
    margin-left: auto;
  }
}

.hamburger {
  position: relative;
  z-index: 10001;
}

section {
  scroll-margin-top: 90px;
}

/* Evita que el header fijo tape las secciones */
section {
  scroll-margin-top: 90px;
}
