/* RESET Y BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: #fdfcff;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* ENCABEZADO PRINCIPAL */
.main-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background-color: #f4ecf7;
  border-bottom: 2px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.header-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #a78bfa;
  object-fit: cover;
}

.header-text h1 {
  font-size: 2rem;
  color: #5a189a;
  font-weight: 700;
}

.header-text p {
  font-size: 1rem;
  color: #555;
}

/* TARJETA DE PERFIL LATERAL */
.profile-card {
  position: fixed;
  top: 120px;
  left: -260px;
  width: 230px;
  background: #fff;
  border-left: 5px solid #8e44ad;
  border-radius: 0 10px 10px 0;
  box-shadow: 2px 2px 15px rgba(0,0,0,0.08);
  transition: left 0.4s ease;
  z-index: 1000;
}

.profile-card:hover {
  left: 0;
}

.profile-img {
  width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.profile-info {
  padding: 12px;
  text-align: center;
}

.profile-info h3 {
  color: #5a189a;
  font-weight: 600;
}

/* SECCIONES GENERALES */
section {
  margin: 40px 0;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #6a0dad;
}

ul {
  list-style-type: square;
  padding-left: 25px;
}

a {
  color: #8e44ad;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* SOBRE MÍ */
.about blockquote {
  font-style: italic;
  background-color: #fef6ff;
  border-left: 4px solid #b38bfa;
  padding: 10px 20px;
  margin: 20px 0;
  color: #5a189a;
}

/* ESCRITORA */
.writer {
  background-color: #fff0f8;
  border-left: 5px solid #d47dbd;
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
}

.writer p {
  margin-bottom: 15px;
}

/* TECNOLOGÍAS */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-list li {
  background-color: #f2e7fe;
  padding: 8px 12px;
  border-radius: 8px;
  color: #4b0082;
  font-weight: 500;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

/* PROYECTOS */
.slider {
  padding: 30px 0;
  background-color: #fcfcff;
  text-align: center;
}

.slider-container {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 92%;
  margin: 0 auto;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  padding: 10px;
}

.slide img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #8e44ad;
  color: white;
  border: none;
  padding: 12px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.slider-btn:hover {
  background-color: #5a189a;
}

.slider-btn.left { left: 10px; }
.slider-btn.right { right: 10px; }

/* CERTIFICADOS Y LIBRO */
.certificates,
.book {
  background-color: #fdf5ff;
  border-left: 4px solid #e0b0ff;
  padding: 20px;
  border-radius: 10px;
}

/* DESCARGA CV */
.cv {
  text-align: center;
  padding: 40px;
  background-color: #f3f0fa;
  border-top: 1px solid #ccc;
}

.btn-cv {
  display: inline-block;
  padding: 14px 24px;
  background-color: #8e44ad;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-cv:hover {
  background-color: #5a189a;
}

/* CONTACTO */
.contact a {
  display: inline-block;
  margin-top: 5px;
}

/* PIE DE PÁGINA */
footer {
  text-align: center;
  margin-top: 60px;
  font-size: 0.9rem;
  color: #aaa;
  padding: 20px 0;
  border-top: 1px solid #eee;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-card {
    display: none;
  }

  .tech-list {
    flex-direction: column;
  }

  .slide img {
    max-width: 100%;
  }

  .btn-cv {
    width: 100%;
    text-align: center;
  }

  section {
    margin: 30px 0;
  }

  .writer,
  .certificates,
  .book {
    padding: 15px;
  }
}
.writer {
  background-color: #fdf6ff;
  padding: 30px 20px;
  border-left: 5px solid #a678e2;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 60px 0;
}

.writing-list {
  margin-top: 20px;
  list-style: none;
  padding-left: 0;
}

.writing-list li {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #4b0082;
}

.writing-list a {
  color: #6a0dad;
  font-weight: 600;
}

.writing-list a:hover {
  text-decoration: underline;
}


  