/* cvs.css - Estilos específicos para página de CV's */

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: #561d25;
  background-color: #d4e79e;
  padding-top: 0 !important; /* Asegura que no haya padding no deseado */
}

/* CABECERA (Fija y con z-index alto) */
header {
  background-color: #264653;
  width: 100%;
  padding: 1rem 0;
  position: fixed; /* Cambiado de sticky a fixed */
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-title a {
  color: #d4e79e;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* MENÚ EN UNA LÍNEA */
.nav-container {
  width: 100%;
  margin-top: 1rem;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #d4e79e;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: #561d25;
}

/* CONTENIDO PRINCIPAL - ESPACIO PARA HEADER */
main {
  position: relative;
  z-index: 1;
  padding-top: 120px; /* Espacio suficiente para el header */
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* BLOQUE MI TRAYECTORIA - ASEGURAR QUE NO SE SUPERPONGA */
.cv-container-index {
  position: relative;
  z-index: 0; /* Menor que el header */
}

.cv-header-index {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.cv-photo-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #264653;
  margin-bottom: 1.5rem;
}

.section-title-large {
  font-family: 'Roboto', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f4a261;
  position: relative;
}

.intro-text-index {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
   color: #d4e79e;
  position: relative;
}

/* TARJETAS DE CV */
.cv-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cv-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
  position: relative;
}

.cv-card:hover {
  transform: translateY(-5px);
}

.cv-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.5rem;
  height: 100%;
}

.cv-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.cv-card h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #561d25;
}

.section-dark .cv-card h3 {
  color: #d4e79e;
}

/* FOOTER */
footer {
  background-color: #264653;
  color: #d4e79e;
  padding: 1.5rem 0;
  text-align: center;
  position: relative;
}

/* RESPONSIVE */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #d4e79e;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: -3.5rem;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #264653;
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .main-nav ul.active {
    display: flex;
  }
  
  .cv-links-grid {
    grid-template-columns: 1fr;
  }
  
  .cv-photo-large {
    width: 120px;
    height: 120px;
  }

  main {
    padding-top: 100px; /* Menos espacio en móvil si el header es más pequeño */
  }

  header {
    padding: 0.5rem 0; /* Header más compacto en móvil */
  }
}