* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f8f9fc;
  color: #1f2937;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: white;
}

.logo {
  font-weight: 700;
  font-size: 22px;
}

.menu a {
  margin: 0 12px;
  text-decoration: none;
  color: #374151;
}

.actions a {
  margin-right: 15px;
  color: #374151;
  text-decoration: none;
}

.actions button {
  background: #2563eb;
  border: none;
  padding: 10px 18px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

button:hover{
  background: #294cbe;
}   

/* HERO */
.hero {
  text-align: center;
  padding: 120px 20px;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  color: white;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

.btn-primary {
  margin-top: 15px;
  background: white;
  color: #2563eb;
  border: none;
  padding: 15px 28px;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
}

/* WHY */
.why {
  padding: 80px 20px;
  text-align: center;
}

.why h2 {
  font-size: 32px;
  margin-bottom: 50px;
}

.cards {
  display: grid;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 18px;
}

.card h3 {
  margin-top: 15px;
  margin-bottom: 10px;
}

.card p {
  color: #6b7280;
}

/* ICONS */
.icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: auto;
}

.blue { background: #dbeafe; color: #2563eb; }
.purple { background: #ede9fe; color: #7c3aed; }
.green { background: #dcfce7; color: #16a34a; }
.orange { background: #ffedd5; color: #ea580c; }

/* SERVICES */
.services {
  text-align: center;
  padding: 100px 20px;
}

.btn-secondary {
  margin-top: 25px;
  padding: 14px 26px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

/* CTA */
.cta {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, #1b9280, #17bda4);
  color: white;
}

/* 📱 MOBILE */
@media (max-width: 900px) {

    .menu {
        display: none;
    }

    .hero h1 {
        font-size: 36px;
    }

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

    .nav {
        padding: 16px 20px;
    }
}

/* RESET BÁSICO */
* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

/* CONTENEDOR */
.gallery {
  padding: 4rem 1.5rem;
  background: #fafafa;
}

/* HEADER */
.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-header .icon {
  width: 64px;
  height: 64px;
  background: #f1e6ff;
  color: #7c3aed;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  font-size: 28px;
}

.gallery-header h2 {
  font-size: 2.5rem;
  margin-bottom: .5rem;
}

.gallery-header p {
  color: #6b7280;
}

/* GRID DESKTOP */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* CARD */
.card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

/* IMAGEN */
.card-image {
  position: relative;
}

.card-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.price {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #2563eb;
  color: white;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .9rem;
}

/* BODY */
.card-body {
  padding: 1.5rem;
}

.category {
  color: #7c3aed;
  font-size: .9rem;
}

.card-body h3 {
  margin: .5rem 0 1.2rem;
  font-size: 1.4rem;
}

.card-body button {
  width: 100%;
  border: none;
  padding: .9rem;
  background: #8b5cf6;
  color: white;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
}

.card-body button:hover {
  background: #7c3aed;
}

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

  .card-image img {
    height: 320px;
  }

  .gallery-header h2 {
    font-size: 2rem;
  }
}

/* ===== ANIMACIÓN GALERÍA ===== */

.card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card:hover img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.1) saturate(1.15);
}

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

.card {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

/* Delay escalonado */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
