/* ---------------------------
   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;
  color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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 12px;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 5px;
}

nav ul li a:hover {
  background-color: #fff;
  color: #1e1e2f;
}

/* ---------------------------
   HERO / HEADER
--------------------------- */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  color: #ccc;
}

/* ---------------------------
   SECCIONES
--------------------------- */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

section {
  margin-bottom: 60px;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1e1e2f;
}

section p {
  margin-bottom: 15px;
}

/* ---------------------------
   BOTONES
--------------------------- */
.btn {
  display: inline-block;
  background-color: #1e1e2f;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s;
}

.btn:hover {
  background-color: #ff3c78;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ---------------------------
   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;
  }

  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 20px;
  }
}

/* ---------------------------
   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;
  color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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 12px;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 5px;
}

nav ul li a:hover {
  background-color: #fff;
  color: #1e1e2f;
}

/* ---------------------------
   GRID DE BLOQUES DE SERVICIOS
--------------------------- */
.bloques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.bloque {
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  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 (DESPLEGABLE)
--------------------------- */
.contenido-extra {
  display: none;
  margin-top: 15px;
  background-color: #f4f4f9;
  padding: 15px;
  border-radius: 8px;
  text-align: left;
  color: #333;
}

.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;
  }

  .bloque h2 {
    font-size: 1.5rem;
  }

  .bloques-grid {
    gap: 20px;
  }
}

/* ---------------------------
   CONTACTO
--------------------------- */
.contacto {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contacto h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #1e1e2f;
}

.contacto p {
  text-align: center;
  margin-bottom: 30px;
  color: #555;
}

.contacto form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contacto input,
.contacto textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contacto input:focus,
.contacto textarea:focus {
  border-color: #ff3c78;
  box-shadow: 0 0 5px rgba(255, 60, 120, 0.5);
  outline: none;
}

.contacto button.btn {
  align-self: center;
  padding: 12px 25px;
  font-weight: bold;
}


/* ---------------------------
   TRABAJOS PERSONALES
--------------------------- */
#trabajos-personales {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px 50px 20px;
  text-align: center;
}

#trabajos-personales h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #1e1e2f;
}

#trabajos-personales p {
  margin-bottom: 40px;
  color: #555;
  font-size: 1.1rem;
}

.trabajos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.trabajo {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.trabajo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.trabajo img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.trabajo h3 {
  margin-bottom: 10px;
  color: #1e1e2f;
}

.trabajo p {
  margin-bottom: 15px;
  color: #555;
}
