/* ---------------------------
   RESET Y BASE
--------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f9;
  color: #333;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------------------------
   NAVBAR
--------------------------- */
header {
  background-color: #1e1e2f;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  color: #fff;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  transition: 0.3s;
}

nav ul li a:hover {
  background-color: #ff3c78;
  color: #fff;
}

/* ---------------------------
   BLOQUES DE SERVICIOS
--------------------------- */
.bloques-grid {
  max-width: 1000px;
  margin: 50px auto;
  text-align: center;
  padding: 0 20px;
}

.bloques-grid h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #1e1e2f;
}

.bloques-grid p {
  color: #555;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.bloque {
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.bloque:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.bloque h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #1e1e2f;
}

.bloque p {
  margin-bottom: 15px;
  color: #555;
}

/* ---------------------------
   BOTONES
--------------------------- */
.btn {
  display: inline-block;
  background-color: #1e1e2f;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn:hover {
  background-color: #ff3c78;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ---------------------------
   CONTENIDO EXTRA
--------------------------- */
.contenido-extra {
  display: none;
  margin-top: 15px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  color: #333;
  text-align: left;
}

.contenido-extra.active {
  display: block;
}

/* ---------------------------
   BOTÓN VOLVER ARRIBA
--------------------------- */
#backToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ff3c78;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#backToTopBtn:hover {
  transform: scale(1.1);
}

/* ---------------------------
   MEDIA QUERIES
--------------------------- */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}
