/* =========================
   BASE
   ========================= */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fffafc;
  color: #333;
  margin: 0;
}

/* =========================
   NAVBAR
   ========================= */
.nav {
  background: #e63946;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; /* por defecto no se rompen */
}

/* Logo */
.nav img {
  height: 40px;
  width: auto;
  display: block;
}

/* Links container */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Links */
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

/* CTA (botón amarillo) */
.nav a.cta {
  background: #ffb703;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: #222;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  line-height: 1;

  /* Para que no se rompa en pantallas pequeñas */
  min-width: 120px;
  flex-shrink: 1;
  white-space: nowrap;
}

/* =========================
   HERO
   ========================= */
.hero {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(to right, #fffafc, #ffe5ec);
}

.hero img {
  max-width: 200px;
  border-radius: 12px;
}

/* =========================
   CONTENEDORES
   ========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.muted {
  color: #666;
  margin-bottom: 2rem;
  text-align: center;
}

/* =========================
   GRID / CARDS
   ========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.card img {
  width: 100%;
  border-radius: 12px;
}

/* =========================
   COLORES
   ========================= */
.colors {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.color-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #222;
  color: #eee;
  padding: 2rem 1rem;
}

.foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.foot a {
  color: #eee;
  text-decoration: none;
}

.copy {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* =========================
   RESPONSIVE MOBILE
   ========================= */
@media (max-width: 768px) {

  /* Navbar: no cambia a columna, solo ajusta flex-wrap */
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;       /* los links pueden bajar de línea */
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }

  .nav a {
    flex: 0 1 auto;        /* links se ajustan al espacio disponible */
    min-width: 80px;       /* evita que sean demasiado pequeños */
    white-space: nowrap;
  }

  .nav a.cta {
    width: auto;            /* que no se estire */
    min-width: 120px;       /* siempre legible */
    flex-shrink: 1;         /* puede encoger si hace falta */
    white-space: nowrap;
    padding: 0.5rem 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 4px;        /* separación de otros links si bajan de línea */
  }

  /* Titulares y grid */
  h2 {
    font-size: 1.6rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    max-width: 340px;
    margin: 0 auto;
  }

  .foot {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* =========================
   WHATSAPP FLOAT
   ========================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 60px;
  height: 60px;

  z-index: 9999;
}

.whatsapp-float a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}