* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0b0b;
    color: white;
}

/* HEADER DE LAS PAGINAS */
.page-header {
    text-align: center;
    padding: 35px 20px 20px;
}

.page-header h1 {
    margin: 0 0 10px;
    font-size: 38px;
}

.page-header p {
    color: #aaa;
    margin-bottom: 20px;
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 11px 22px;
    background: #22c55e;
    color: white;
    text-decoration: none;
    border-radius: 7px;
    font-weight: bold;
}

/* GALERIA */
.gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.gallery img {
    display: block;
    width: 100%;
    height: 250px;

    object-fit: cover;

    border-radius: 10px;
    background: #181818;

    transition: transform 0.25s ease;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* WHATSAPP */
.whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;

    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;
    color: white;

    font-size: 25px;
    text-decoration: none;

    border-radius: 50%;
    z-index: 1000;
}

/* TELEFONOS */
@media (max-width: 600px) {

    .page-header h1 {
        font-size: 28px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .gallery img {
        height: 160px;
    }
}

/* PROJECT CARDS */
.project-grid {
    max-width: 1200px;
    margin: 20px auto 50px;
    padding: 20px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    position: relative;
    display: block;
    height: 420px;

    overflow: hidden;
    border-radius: 14px;

    background: #181818;
    color: white;
    text-decoration: none;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 50px 20px 20px;

    background: linear-gradient(transparent,
            rgba(0, 0, 0, .9));
}

.project-info h2 {
    margin: 0;
    font-size: 28px;
}

.project-info p {
    margin: 7px 0 0;
    color: #ddd;
}

@media (max-width: 750px) {
    .project-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .project-card {
        height: 300px;
    }
}
/* ===== BEFORE & AFTER - tamaño compacto ===== */

.compare-grid {
  width: min(1000px, 94%);
  margin: 30px auto;
  display: grid;
  gap: 28px;
}

.compare-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #161616;
  padding: 10px;
  border-radius: 12px;
  overflow: hidden;
}

.compare-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.compare-image img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.compare-image span {
  display: block;
  text-align: center;
  font-weight: 700;
  padding: 7px;
  font-size: 15px;
}

/* Teléfono */
@media (max-width: 600px) {
  .compare-grid {
    width: 96%;
    gap: 18px;
  }

  .compare-card {
    gap: 6px;
    padding: 6px;
  }

  .compare-image img {
    height: 180px;
  }

  .compare-image span {
    font-size: 13px;
    padding: 5px;
  }
}


/* ===== PAGE NAVIGATION ===== */

.page-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-nav a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 7px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  font-weight: 600;
}

.page-nav a:hover {
  background: rgba(255,255,255,.15);
}

@media (max-width: 600px) {
  .page-nav {
    gap: 6px;
  }

  .page-nav a {
    padding: 8px 10px;
    font-size: 13px;
  }
}

