/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #4a3c63;
}

body {
  background: #fff9fb;
  line-height: 1.6;
  padding: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

/* Header y Hero */
header {
  background: #f9ecff;
  padding: 2rem 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 15px #e6c98f;
  margin-bottom: 2rem;
}

.hero img.foto-perfil {
  width: 160px;
  border-radius: 50%;
  border: 4px solid #d6b8f3;
  box-shadow: 0 0 20px #c1a1e2;
  margin-bottom: 1rem;
}

.foto-qa-container {
  margin: 1rem auto;
  text-align: center;
}

.titulo-qa {
  color: #7e57c2;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.foto-qa {
  width: 140px;
  border-radius: 50%;
  box-shadow: 0 0 15px #e6c98f;
  border: 3px solid #7e57c2;
  margin-bottom: 1rem;
}

header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #5e3d8a;
  margin-bottom: 0.5rem;
}

.subtitulo {
  font-size: 1.2rem;
  color: #886ab5;
  margin-bottom: 1rem;
}

.frase {
  font-style: italic;
  color: #b08ad6;
  font-weight: 600;
}

/* Main */

main section {
  margin-bottom: 3rem;
}

h2 {
  color: #7e57c2;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid #c1a1e2;
  padding-bottom: 0.4rem;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Proyectos */

#proyectos ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: #5e4b8a;
  font-weight: 600;
}

/* Ebooks */

#ebooks {
  text-align: center;
}

.ebooks-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.ebooks-container a {
  text-decoration: none;
  color: #7e57c2;
  max-width: 200px;
  transition: transform 0.3s;
}

.ebooks-container a:hover {
  transform: scale(1.05);
}

.ebook-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(126, 87, 194, 0.3);
  margin-bottom: 0.5rem;
}

/* Imagen extra */

#extra-imagen {
  text-align: center;
}

.foto-extra {
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 0 15px #c1a1e2;
  margin-top: 1rem;
}

/* Contacto */

#contacto {
  text-align: center;
  margin-bottom: 2rem;
}

#contacto p {
  margin-bottom: 0.5rem;
}

#contacto a {
  color: #7e57c2;
  font-weight: 700;
  text-decoration: none;
}

#contacto a:hover {
  text-decoration: underline;
}

/* Footer */

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #a88acc;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
#vision {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #f4e9f9;
  border-top: 2px dashed #c1a1e2;
  border-bottom: 2px dashed #c1a1e2;
}

.vision-frase {
  font-style: italic;
  font-weight: 600;
  color: #7e57c2;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}
#portada-vision {
  text-align: center;
  margin: 2rem 0;
}

.imagen-portada-vision {
  width: 90%;
  max-width: 800px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(126, 87, 194, 0.25);
  border: 4px solid #eac5f1;
}
#gif-vision {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.gif-vision {
  width: 90%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(200, 143, 240, 0.25);
  border: 4px solid #f4d2f8;
}
#proyectos-qa {
  padding: 2rem;
  background-color: #fdf3ff;
  text-align: center;
}

#proyectos-qa h2 {
  color: #a75ccf;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.descripcion-qa {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #5c3c7d;
}

.grid-proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.proyecto {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 0 15px rgba(173, 127, 230, 0.1);
  transition: transform 0.3s ease;
}

.proyecto:hover {
  transform: scale(1.03);
}

/* Media queries para responsive */

@media (max-width: 768px) {
  /* Ajustar padding general para pantallas medianas (tablets) */
  body {
    padding: 10px;
  }

  #proyectos-qa {
    padding: 1rem;
  }

  .descripcion-qa {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  /* Para celulares, hacer texto más legible y ajustar márgenes */

  body {
    padding: 5px;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  .descripcion-qa {
    font-size: 0.9rem;
  }

  .proyecto {
    padding: 0.5rem;
  }

  .proyecto h3 {
    font-size: 1.1rem;
  }

  .proyecto p {
    font-size: 0.85rem;
  }

  #vision .vision-frase {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .imagen-portada-vision {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }
}
/* Estilos para colaboraciones */
#colaboraciones {
  background-color: #f9f0fb;
  padding: 2rem;
  text-align: center;
}

#colaboraciones h2 {
  color: #c179ce;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.descripcion-colaboraciones {
  font-size: 1.1rem;
  color: #663c7e;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.grid-colaboraciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.colaboracion-item {
  background-color: white;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(150, 90, 180, 0.15);
  text-align: left;
}

.colaboracion-item h3 {
  color: #a048af;
  font-size: 1.3rem;
}

.colaboracion-item p {
  font-size: 1rem;
  color: #4d3a5e;
}

.colaboracion-item a {
  color: #a854c8;
  text-decoration: none;
  font-weight: bold;
}

.colaboracion-item a:hover {
  text-decoration: underline;
}

/* Reutilizando estilos de impacto */
#impacto {
  background-color: #fff6fd;
  padding: 2rem;
  text-align: center;
}

#impacto h2 {
  color: #d65fa7;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.descripcion-impacto {
  font-size: 1.1rem;
  color: #7c4a7e;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.grid-impacto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.impacto-item {
  background-color: white;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(232, 166, 210, 0.2);
  text-align: left;
}

.impacto-item h3 {
  color: #af4688;
  font-size: 1.3rem;
}

.impacto-item p {
  font-size: 1rem;
  color: #4f3455;
}

.impacto-item a {
  color: #aa4bcf;
  text-decoration: none;
  font-weight: bold;
}

.impacto-item a:hover {
  text-decoration: underline;
}
#mensaje-final {
  background-color: #fdf2f6;
  padding: 1rem 2rem;
  text-align: center;
  margin-top: 1.5rem;
}

.mensaje-prevencion {
  color: #a63d6d;
  font-weight: bold;
  font-size: 1.2rem;
}

.blog-link {
  color: #9b59b6; /* lila suave */
  font-weight: bold;
  text-decoration: none;
  font-family: 'Georgia', serif;
  background-color: #fceefb;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid #e1bee7;
  transition: background-color 0.3s ease;
}

.blog-link:hover {
  background-color: #f3d9f7;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: background-color 0.3s ease;
}

/* Tonos de lila pastel, variando en intensidad */

.btn-lila1 {
  background-color: #d8b4fe; /* lila claro */
}

.btn-lila2 {
  background-color: #c084fc; /* lila medio claro */
}

.btn-lila3 {
  background-color: #a855f7; /* lila medio */
}

.btn-lila4 {
  background-color: #9333ea; /* lila oscuro */
}

.btn-lila5 {
  background-color: #7e22ce; /* lila más oscuro */
}

/* Efecto hover para todos los botones */
.btn:hover {
  filter: brightness(85%);
  cursor: pointer;
}

/* --- Menú centrado técnico-femenino --- */
.menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  background-color: #f6f0fa; /* fondo suave lila claro */
  padding: 10px 25px;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(200, 160, 255, 0.25);
  margin: 20px auto;
  width: fit-content;
}

.menu-link {
  color: #5c2d91;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Quicksand', sans-serif;
}

.menu-link:hover {
  color: #d1a1ff;
  transform: scale(1.05);
}

section a {
  color: var(--lila-oscuro);
  text-decoration: none;
  font-weight: 500;
}

section a:hover {
  text-decoration: underline;
}
/* ===== Estilo para secciones de misión, visión, etc. ===== */

section {
  text-align: center;
  margin: 40px auto;
  max-width: 900px;
  color: #6b21a8; /* lila oscuro */
  font-family: 'Quicksand', sans-serif;
}

section h2 {
  color: #7e22ce; /* un tono un poco más claro para títulos */
  font-weight: 600;
}

section p {
  font-size: 1.1em;
  line-height: 1.6;
}

/* mensaje final */
.mensaje-prevencion {
  font-weight: bold;
  color: #a21caf;
  margin-top: 20px;
  font-size: 1.2em;
}
/* ==== Estilo coherente para todas las secciones generales ==== */

section {
  text-align: center;
  margin: 50px auto;
  padding: 35px;
  max-width: 900px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(126, 87, 194, 0.2);
  border: 2px solid #f3e7ff;
}

section h2 {
  color: #7e57c2;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid #d7b6f3;
  padding-bottom: 0.4rem;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

section p {
  color: #5a4578;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 1rem;
}

/* Links dentro de secciones */
section a {
  color: #7e57c2;
  font-weight: 600;
  text-decoration: none;
}

section a:hover {
  text-decoration: underline;
}
.section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}
.section {
  padding: 40px 20px;
}
h2 {
  color: #6a4fb3; /* lila profundo */
  font-size: 2rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
p, h2 {
  transition: 0.3s ease-in-out;
}

p:hover {
  transform: scale(1.01);
}
body {
  background: linear-gradient(to bottom, #f8f5fc, #ffffff);
}
h2 {
  color: #6a4fb3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(to right, #c3a9ff, #6a4fb3);
  -webkit-background-clip: text;
  color: transparent;
}
p {
  color: #443c55;
  font-size: 1.1rem;
  line-height: 1.9;
}
a:hover {
  color: #6a4fb3;
  text-shadow: 0 0 5px #d9c9ff;
  transform: scale(1.03);
}
.section {
  background: #ffffffd9;
  border: 2px solid #e6dbff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(106, 79, 179, 0.08);
  padding: 40px 25px;
  margin-bottom: 30px;
}
#video-cv {
  background: #fdfaff;
  padding: 40px 20px;
  border-radius: 14px;
  border: 2px solid #e4d5f5;
  box-shadow: 0px 4px 10px rgba(190, 144, 212, 0.25);
}
.cards-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  flex-wrap: wrap;
  max-width: 900px;
}

.card {
  background: #f6f0fb;
  border: 3px solid #c4a7e7;
  padding: 20px;
  border-radius: 18px;
  text-align: center;
  width: 300px;
  box-shadow: 0 0 12px rgba(150, 90, 180, 0.25);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}
