/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  color: #333;
  background: #fff;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* NAV */
header {
  background: #111;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  letter-spacing: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: #c9a96e;
}

/* HERO */
.hero {
  height: 90vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1490750967868-88aa4486c946")
      center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* BOTON */
.btn {
  display: inline-block;
  padding: 14px 30px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  background: #1ebe5d;
  transform: scale(1.05);
}

/* SECCIONES */
.section-title {
  text-align: center;
  margin: 60px 0 30px;
  font-size: 2rem;
}

/* CARDS */
.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  min-width: 250px;
  padding: 25px;
  border: 1px solid #eee;
  text-align: center;
  transition: 0.3s;
  border-radius: 10px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* GALERIA */
.gallery {
  background: #f9f9f9;
  padding: 40px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  width: 90%;
  margin: auto;
}

.gallery .img {
  height: 250px;
  background: url("https://images.unsplash.com/photo-1526045612212-70caf35c14df")
    center/cover;
  border-radius: 10px;
  transition: 0.3s;
}

.gallery .img:hover {
  transform: scale(1.05);
}

/* ABOUT */
.about {
  padding: 40px 0;
  text-align: center;
  line-height: 1.6;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #111, #222);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

/* FOOTER */
footer {
  background: #000;
  color: #fff;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 40px;
}

.footer-bottom {
  text-align: center;
  padding: 15px;
  background: #111;
}

/* BOTÓN WHATSAPP PRO */
.float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  transition: 0.3s ease;
}

.float:hover {
  background-color: #ffffff;
  color: #25d366;
  transform: scale(1.1);
}

.my-float {
  margin-top: 16px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .cards {
    flex-direction: column;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* =====================
   FIX DEFINITIVO GALERÍA 🔥
===================== */

/* CONTENEDOR */
.gallery .img {
  overflow: hidden;
  position: relative;
}

/* IMAGEN */
.gallery .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* OPCIONAL: quita visualmente el fondo */
.gallery .img {
  background: none;
}
