/* =======================
   Variables y Paleta
======================= */
/* =======================
   Variables y Paleta (Profesional)
======================= */
:root {
  --primary-color: #1a3e5c;       /* Azul oscuro profesional */
  --secondary-color: #4a90a8;     /* Azul grisáceo elegante */
  --accent-color: #f4f7fa;        /* Fondo muy claro neutro */
  --bg-color: #ffffff;            /* Blanco puro para fondo */
  --text-color: #222222;          /* Gris muy oscuro para texto */
  --muted-color: #666666;         /* Gris medio para texto secundario */
  --light-gray: #e1e8ed;          /* Gris suave para chips, etc */
  --button-bg: #1a3e5c;           /* Botones azul oscuro */
  --button-hover: #163450;        /* Azul aún más oscuro para hover */
  --button-text: #ffffff;         /* Texto blanco en botones */
  --section-shadow: rgba(26, 62, 92, 0.15); /* Sombra azul muy suave */
  --white-bg: #ffffff;            /* Blanco para fondos limpios */
}


/* =======================
   Estilo Base
======================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--accent-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: 0;
}

/* =======================
   Header y Menú
======================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

header.scrolled {
  background-color: var(--white-bg);
  box-shadow: 0 2px 8px var(--section-shadow);
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
}

.logo span {
  color: var(--secondary-color);
}

#menu-toggle {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--primary-color);
  cursor: pointer;
  display: none;
  z-index: 110;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

/* =======================
   Hero
======================= */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 80px 5%;
  gap: 40px;
  color: var(--text-color);
}

.image-container img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 8px solid var(--primary-color);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(40, 102, 178, 0.3);
}

.intro {
  max-width: 500px;
  text-align: center;
}

.intro .highlight {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.intro h1 {
  font-size: 3rem;
  margin: 10px 0;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.desc {
  color: var(--muted-color);
  font-size: 1.15rem;
  margin: 20px 0;
  font-weight: 400;
}

.social-icons a {
  color: var(--primary-color);
  margin: 0 15px;
  font-size: 28px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--button-hover);
}

.hire-button {
  display: inline-block;
  margin-top: 25px;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 14px 40px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(40, 102, 178, 0.4);
}

.hire-button:hover {
  background: var(--button-hover);
  box-shadow: 0 6px 20px rgba(31, 78, 138, 0.6);
}

.about-me {
  max-width: 900px; /* Igual que el contenedor principal */
  width: 100%;       /* Ocupa todo el ancho disponible */
  margin: 0 auto 60px; /* Centrado horizontal y espacio abajo */
  padding: 0 20px;   /* Un poco de padding para que no toque los bordes */
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-color);
  font-weight: 400;
  text-align: justify; /* Para que el texto se vea limpio y uniforme */
}


/* =======================
   Secciones generales
======================= */
.section {
  padding: 60px 5%;
  max-width: 900px;
  margin: 60px auto 0;
  background: none;
}

h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
  font-weight: 700;
}

h2 i {
  margin-right: 12px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text-color);
  margin-top: 0;
}

p, li {
  font-weight: 400;
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 24px;
}

/* Listas con bullets personalizadas */
.section ul {
  max-width: 700px;
  margin-left: 24px;
  margin-bottom: 24px;
  padding-left: 0;
  line-height: 1.7;
}

.section ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 18px;
  list-style: none;
}

.section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
}

.section p strong {
  color: var(--primary-color);
  font-weight: 700;
}

.highlight-phrase {
  font-style: italic;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
  max-width: 700px;
}

.section > div + div {
  margin-top: 50px;
}

/* =======================
   Skills
======================= */
.skill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.skill-chip {
  display: inline-block;
  background-color: var(--light-gray);
  color: var(--text-color);
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 30px;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  font-weight: 600;
  user-select: none;
}

.skill-chip:hover {
  background-color: var(--primary-color);
  color: white;
  cursor: default;
}

/* =======================
   Contacto (footer)
======================= */
/* Estilos para la sección de contacto */
section.contact {
  background-color: var(--white-bg, #fff);
  color: #1f2d40;
  max-width: 900px;
  margin: 60px auto 40px;
  padding: 40px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(40, 102, 178, 0.1);
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

section.contact h2 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary-color, #2759c5);
}

section.contact p {
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #34495e;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 350px;
  text-align: left;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-color, #2759c5);
  margin-bottom: 18px;
  transition: color 0.3s ease;
}

.contact-info li i {
  font-size: 1.3rem;
  min-width: 24px;
}

.contact-info li a {
  color: var(--primary-color, #2759c5);
  text-decoration: none;
  transition: color 0.3s ease;
  word-break: break-word;
}

.contact-info li a:hover {
  color: var(--button-hover, #1e3a8a);
  text-decoration: underline;
  cursor: pointer;
}

/* Estilos para el footer simple */
footer {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--muted-color, #7a8599);
  user-select: none;
}


/* =======================
   Timeline
======================= */
.timeline-section {
  position: relative;
  padding-left: 20px;
}

.section-intro {
  font-size: 1.1rem;
  color: #333;
  margin-top: -10px;
  margin-bottom: 40px;
  max-width: 100%;
}

.timeline-container {
  position: relative;
  margin-left: 20px;
  border-left: 3px solid var(--primary-color);
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-dot {
  position: absolute;
  left: -11px;
  top: 10px;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border: 3px solid var(--white-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content {
  background-color: #f2f8fd;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(40, 102, 178, 0.08);
  width: 100%;
}

.timeline-content h4 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #222;
}

.timeline-content p {
  color: #333;
  font-size: 1.05rem;
  margin-bottom: 10px;
  max-width: 100%;
}

.timeline-content ul {
  list-style-type: disc; /* viñetas clásicas */
  margin-left: 20px;     /* separación izquierda */
  padding-left: 0;
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

.timeline-content ul li {
  margin-bottom: 0.5em;
}


.timeline-content strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* =======================
   Education Timeline
======================= */
.education-timeline {
  position: relative;
  padding-left: 30px;
  list-style: none;
  margin: 40px 0;
  border-left: 2px solid var(--primary-color);
}

.education-timeline li {
  position: relative;
  margin-bottom: 40px;
  padding-left: 20px;
}

.education-timeline .circle {
  position: absolute;
  left: -10px;
  top: 6px;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--white-bg);
  box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: #1e1e1e;
}

.timeline-content p {
  margin: 0;
  font-size: 1.05rem;
  color: #444;
  font-weight: 500;
}

/* =======================
   Responsive
======================= */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: var(--white-bg);
    box-shadow: 2px 0 8px var(--section-shadow);
    padding-top: 70px;
    transition: left 0.3s ease;
    z-index: 105;
    overflow-y: auto;
  }

  .nav-menu.open {
    left: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 20px;
    padding-left: 20px;
  }

  .nav-menu a {
    font-size: 1.3rem;
    color: var(--primary-color);
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(40, 102, 178, 0.3);
    z-index: 100;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .image-container img {
    width: 220px;
    height: 220px;
    border-width: 6px;
  }

  .intro h1 {
    font-size: 2.4rem;
  }

  .skill-chip {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Contacto footer flex */
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}

