/* style.css actualizado con nueva paleta azul oscuro y verde */

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0c1b26; /* Azul oscuro */
  color: #e1f5fe; /* Azul muy claro para el texto */
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

/* Barra de Navegación */
.navbar {
    background-color: rgba(12, 27, 38, 0.95); /* Fondo semitransparente oscuro */
    color: #e1f5fe;
    padding: 15px 0;
    position: sticky; /* O 'fixed' si quieres que esté siempre visible, incluso si no hay scroll */
    top: 0;
    width: 100%;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px); /* Efecto de desenfoque, moderno */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Ajusta el padding para la barra */
}

.navbar-brand {
    color: #00ff8c; /* Verde neón para tu nombre */
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #00cc70;
}

.navbar-nav {
    list-style: none;
    display: flex;
    gap: 30px; /* Espacio entre los elementos del menú */
}

.navbar-nav li a {
    color: #b0d8ff; /* Azul claro para los enlaces */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.navbar-nav li a::after { /* Efecto de subrayado al pasar el mouse */
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #00ff8c;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.navbar-nav li a:hover::after {
    width: 100%;
}

.navbar-nav li a:hover {
    color: #00ff8c; /* Cambia a verde neón al pasar el mouse */
    transform: translateY(-2px);
}


/* Hero Header (con imagen de fondo) */
.hero {
    background: linear-gradient(rgba(17, 45, 66, 0.8), rgba(12, 27, 38, 0.8)), url('banner.png') no-repeat center center/cover;
    text-align: center;
    padding: 80px 20px;
    box-shadow: 0 0 15px rgba(0, 255, 140, 0.1);
    color: #e1f5fe; /* Asegura que el texto sea legible */
}

.logo {
  font-size: 3rem;
  font-weight: 600;
  color: #00ff8c; /* Verde neón */
}

.tagline {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #b0d8ff;
}

/* Secciones */
.seccion {
  padding: 60px 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #00ff8c;
  text-align: center;
}

p {
  font-size: 1rem;
  color: #d0f0ff;
  margin: 10px 0;
}

/* Grid y Tarjetas */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background-color: #143447; /* Azul oscuro medio */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 140, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(0, 255, 140, 0.3);
}

.card h3 {
  color: #ffffff;
  margin-bottom: 10px;
}

.card span {
  font-size: 0.85rem;
  color: #8ac8ff;
}

/* Botón */
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #00ff8c;
  color: #0c1b26;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #00cc70;
  transform: translateY(-2px);
}

/* Lista de habilidades y certificaciones */
.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
  margin-top: 20px;
}

/* Estilos GENERALES para li dentro de skills-list (se aplica a certificaciones) */
.skills-list li {
  background: #0f2738;
  padding: 12px;
  border-left: 4px solid #00ff8c;
  border-radius: 6px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.skills-list li .btn {
    margin-top: 0;
    margin-left: auto;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.skills-list i {
  color: #00ff8c;
  font-size: 1.2rem;
  margin-right: 5px;
}

/* Estilos ESPECÍFICOS para la sección de Conocimientos en formato de cuadritos */
#skills .skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 0;
    margin-top: 20px;
}

#skills .skills-list li {
    background-color: #143447;
    padding: 20px;
    border-left: none; /* Elimina la línea verde de la izquierda */
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 140, 0.1);
}

#skills .skills-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 140, 0.3);
}

#skills .skills-list i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #00ff8c;
}

/* Footer */
.footer {
  background-color: #0a1721;
  color: #88b6d6;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    /* Navbar */
    .navbar .container {
        flex-direction: column;
        text-align: center;
    }

    .navbar-nav {
        margin-top: 15px;
        flex-direction: column;
        gap: 10px;
    }

    /* General */
    .hero {
        padding: 60px 20px;
    }

    .logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 20px 15px;
    }

    /* Skills */
    #skills .skills-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Ajuste para móviles */
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px;
    }

    .logo {
        font-size: 2rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.5rem;
    }
    .skills-list li { /* Aplica a certificaciones */
        flex-direction: column;
        align-items: flex-start;
    }
    .skills-list li .btn {
        margin-left: 0;
        margin-top: 10px;
    }
}