body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #cbd5e1;
}



header {
    text-align: center;
    padding: 1em;
    /*background: #a213e46b;*/
    color: #ffffff;
}
main {
    padding: 2em;
}
.proyecto {
    margin: 1em 0;
}
/* Estilos de títulos unificados - Ver sección de títulos abajo */

#aptitudes {
    padding: 2rem 0;
}

#aptitudes h2 {
    font-size: 2.5rem;
    color: #38bdf8;
    text-align: center;
    margin-bottom: 2rem;
}

.habilidades {
    padding: 2rem 0; 
}

.habilidades h3 {
    font-size: 1.8rem;
    color: #00ffcc;
    margin-bottom: 1.5rem;
}



#lenguajes {
    text-align: center;
    margin: 20px auto;
    font-family: 'Orbitron', sans-serif;
    color: #ebebeb; /* Color neón */
    text-shadow: 0 0 3px #29ccc4, 0 0 6px #dd8181; /* Sombra para efecto neón */
    letter-spacing: 2px; /* Espaciado entre letras */
    text-align: center; /* Centrar el texto */
    padding: 1rem; /* Espaciado interno */
    background: transparent; /* Fondo transparente o puedes ajustarlo si deseas */
    border-top: 1px solid #dd8181; /* Opcional: Línea decorativa superior */
}

.lenguajes-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100px;
}

.icon {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.icon-container p {
    font-size: 14px;
    color: #333;
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    color: #ebebeb; /* Color neón */
    text-shadow: 0 0 3px #29ccc4, 0 0 6px #dd8181; /* Sombra para efecto neón */
    letter-spacing: 2px; /* Espaciado entre letras */
    text-align: center; /* Centrar el texto */
    padding: 1rem; /* Espaciado interno */
    background: transparent; /* Fondo transparente o puedes ajustarlo si deseas */
    border-top: 1px solid #dd8181; /* Opcional: Línea decorativa superior */
}




.icon {
    width: 120px; /* Tamaño de los iconos */
    height: 120px;
    margin: 0 10px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}


.icon {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .icon {
        width: 80px;
        height: 80px;
    }
}


#certificados {
    text-align: center;
    padding: 3rem 0;
}

#certificados h2 {
    font-size: 2.5rem;
    color: #38bdf8;
    text-align: center;
    margin-bottom: 2rem;
}

.certificados-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 1rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.certificado {
    width: 100%;
    max-width: 330px;
    height: 100%;
    background: rgba(0,0,0,0.25);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(162, 19, 228, 0.2);
    transition: all 0.3s ease;
}

.certificado:hover {
    background: rgba(162, 19, 228, 0.15);
    border-color: #a213e4;
    transform: translateY(-4px);
}


.certificado img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.certificado p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #dd8181;
    flex: 1;
}

.certificado strong {
    font-size: 1.1rem;
    color: #7cd8d8;
    display: block;
    margin-bottom: 0.5rem;
}

.certificado .credly-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(162, 19, 228, 0.3);
    color: #00ffcc;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.certificado .credly-link:hover {
    background: rgba(162, 19, 228, 0.5);
    color: #ffffff;
}


@media (max-width: 768px) {
    .certificados-container {
        grid-template-columns: 1fr;
    }
}


.certificado-img:hover {
    transform: scale(1.1);
}


.certificado img[src*="credly"] {
    aspect-ratio: 16 / 9;
    width: 150%;
    object-fit: contain;
    background: #0003;
    padding: 10px;
}

.certificado .img-wrapper {
        aspect-ratio: 9 / 9;

    width: 100%;
    height: 252px;           /* 🔥 altura uniforme */
    overflow: hidden;        /* recorta el exceso */
    border-radius: 10px;
}

.certificado .img-wrapper img {
    aspect-ratio: 16 / 9;

    width: 100%;
    height: 100%;
    object-fit: cover;       /* mantiene estética */
    border-radius: 10px;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#caption {
    text-align: center;
    padding: 10px;
    color: #ccc;
    font-size: 20px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* Estilo básico del menú */
nav {
    margin-top: 10px;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.6);
}

/* Estilos del carrusel */
.carousel-container {
    position: relative;
    width: 80%;
    margin: auto;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    text-align: center;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.carousel-slide p {
    font-size: 16px;
    margin-top: 10px;
}

/* Estilo para la cabecera */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px; /* Ajusta el alto según lo necesites */
    background-image: url('images/cabecera.png'); /* Ruta de tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Estilo cuando la cabecera se reduce */
.header.smaller {
    padding: 15px 0; /* Tamaño reducido */
    height: 150px; /* Ajusta este valor al nuevo tamaño */
    background-position:center; /* Ajuste visual de la imagen */
    background-image: url(images/cabecera.png);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* El contenido dentro del header, ajustable si es necesario */
.header img {
    max-height: 70%; /* Imagen dentro del header (si la hay) */
    object-fit: contain;
}

/* Sin transiciones para la posición del fondo */
.header.smaller img {
    transform: none; /* Sin movimiento de la imagen */
    opacity: 1; /* Mantiene opacidad completa */
}
/* Eliminar márgenes por defecto del body */
body {
    margin: 0;
    padding-top: 300px; /* Ajusta este valor según la altura inicial de la cabecera */
}

/* Ajusta el padding-top de la primera sección */
section {
    padding-top: 100px; /* Ajusta según el tamaño de la cabecera fija */
    scroll-margin-top: 100px; /* Espacio para que se vea el título al hacer scroll */
}

/* Estilo para la cabecera fija */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

body {
    margin: 0; /* Elimina márgenes por defecto */
    height: 100vh; /* Hace que el cuerpo ocupe toda la altura de la ventana */
    background-image: url('https://static.vecteezy.com/system/resources/previews/001/927/399/non_2x/abstract-retro-futurism-with-purple-background-free-vector.jpg'); /* URL de la imagen */
    background-size: cover; /* La imagen cubre toda el área sin perder calidad */
    background-position: center; /* Centra la imagen, mostrando la parte media */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
}

body {
    margin: 0; /* Elimina los márgenes por defecto */
    height: 100vh; /* Hace que el cuerpo ocupe toda la altura de la ventana */
    background-image: url('URL_DE_TU_IMAGEN'); /* Cambia por la URL o ruta de tu imagen */
    background-size: cover; /* Hace que la imagen cubra toda el área */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    background-attachment: fixed; /* Fija la imagen mientras haces scroll */
}


/* ===== SISTEMA UNIFICADO DE TÍTULOS ===== */

/* Estilos base para todos los títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: none;
}

/* H1 - Título principal de la página */
h1 {
    font-size: 2.2rem;
    color: #00ffcc;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    font-weight: 700;
}

/* H2 - Títulos de sección grandes */
h2 {
    font-size: 2rem;
    color: #38bdf8;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px;
}

/* H3 - Subtítulos en secciones */
h3 {
    font-size: 1.4rem;
    color: #00ffcc;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* H4 - Títulos secundarios/items */
h4 {
    font-size: 1.3rem;
    color: #00ffcc;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* H5 - Pequeños subtítulos */
h5 {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

/* H6 - Micro títulos */
h6 {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

/* ===== TÍTULOS ESPECÍFICOS PARA HEADER (H7, H8, H9) ===== */

/* H7 - Título principal del header */
h7 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #00ffcc;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}

h7 a {
    color: #00ffcc;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

h7 a:hover {
    text-shadow: 0 0 30px rgba(0, 255, 204, 0.8);
    letter-spacing: 3px;
}

/* H8 - Subtítulo del header */
h8 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    margin: 0;
    font-weight: 400;
}

/* H9 - Micro elemento header (disponible para futuros usos) */
h9 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0;
}

/* Estilos base para párrafos y listas */
p, ul, li {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    color: #cbd5e1;
    text-shadow: none;
    font-weight: 400;
    letter-spacing: normal;
}

a {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Estilos específicos para el header */
.header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
    letter-spacing: 1.5px;
    font-weight: 700;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.header h1 a {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header h1 a:hover {
    color: #00ffcc;
    text-shadow: 0 0 30px rgba(0, 255, 204, 0.8);
    letter-spacing: 2px;
}

.header p {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1.5px;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
    line-height: 1;
}


/* Contenedor de imágenes */
.image-container {
    display: flex;
    gap: 10px; /* Espaciado entre imágenes */
    justify-content: center;
    flex-wrap: wrap;
}

/* Estilo para miniaturas */
.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: transform 0.2s ease;
}

.thumbnail:hover {
    transform: scale(1.1);
}

/* Estilo para las miniaturas */
/* Contenedor de la imagen */
.image-container {
    position: relative;
}

/* Imagen miniatura */
.thumbnail {
    width: 100%;
    height: auto;
    transition: filter 0.3s ease-in-out; /* Transición para el desenfoque */
}

/* Efecto de borroso al pasar el mouse */
.thumbnail:hover {
    filter: blur(5px); /* Aplica el desenfoque */
}

/* El +1 que aparece al pasar el mouse */
.thumbnail:hover + .overlay {
    opacity: 1; /* Mostrar el +1 */
}

/* Estilo para el +1 */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    opacity: 0; /* Inicialmente oculto */
    transition: opacity 0.3s ease-in-out; /* Transición para la aparición */
}


/* Modal (oculto por defecto) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* Contenido del modal (imagen) */
.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

/* Botones de navegación */
.nav-btn {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 30px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    cursor: pointer;
    border: none;
}

#prevBtn {
    left: 10px;
}

#nextBtn {
    right: 10px;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}



/* Estilo para el contenedor modal */
.modal-certificado {
    display: none; /* Ocultar el modal por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro semitransparente */
    align-items: center;
    justify-content: center;
  }
  
  /* Estilo de la imagen dentro del modal */
  .modal-certificado img {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    border: 2px solid white;
    border-radius: 10px;
  }
  
  /* Botón de cierre */
  .modal-certificado .close-certificado {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .modal-certificado .close-certificado:hover {
    color: #ccc;
  }
  
  /* Subtítulo dentro del modal */
  #caption-certificado {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 18px;
  }

footer {
    padding: 0.3em 0.2em;
    margin: 0;
    text-align: center;
    background: #a213e46b;
    color: #ffffff;
}

footer p {
    margin: 0;
    line-height: 1.2;
    padding: 2px 0;
}

footer section {
    padding-top: 0;
}

/* ===== SECCIONES DE HABILIDADES (TÉCNICAS Y BLANDAS) ===== */

#habilidades {
    margin: 3rem 0;
    padding: 2rem 0;
}

#habilidades h2 {
    font-size: 2.5rem;
    color: #38bdf8;
    text-align: center;
    margin-bottom: 1rem;
}

#habilidades h3 {
    font-size: 1.8rem;
    color: #00ffcc;
    text-align: center;
    margin-bottom: 2rem;
}

.tecnicas {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#habilidadesblandas {
    margin: 3rem 0;
    padding: 2rem 0;
}

#habilidadesblandas h2 {
    font-size: 2.5rem;
    color: #38bdf8;
    text-align: center;
    margin-bottom: 1rem;
}

#habilidadesblandas h3 {
    font-size: 1.8rem;
    color: #00ffcc;
    text-align: center;
    margin-bottom: 2rem;
}

.soft-skills {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Estilos para Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 2rem 0;
    padding: 0 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.skill-tag {
    background: linear-gradient(135deg, #1a1a3e 0%, #16213e 100%);
    color: #00ffcc;
    padding: 16px 12px;
    border-radius: 16px;
    border: 2px solid #00ffcc;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.skill-name {
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 3px #29ccc4;
    letter-spacing: 1px;
}

.skill-tag:hover {
    background: linear-gradient(135deg, #00ffcc 0%, #29ccc4 100%);
    color: #0a0e27;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.6);
    transform: translateY(-4px);
}

.skill-tag:active {
    transform: translateY(-2px);
}

/* Modal de Habilidad */
.skill-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.skill-modal.active {
    display: flex;
}

.skill-modal-content {
    background: linear-gradient(135deg, #1a1a3e 0%, #16213e 100%);
    border: 2px solid #00ffcc;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.4);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.skill-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #00ffcc;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.skill-modal-close:hover {
    color: #dd8181;
    text-shadow: 0 0 10px #dd8181;
}

#skill-modal-title {
    color: #00ffcc;
    margin: 0 0 15px 0;
    font-size: 24px;
    text-shadow: 0 0 5px #00ffcc;
}

#skill-modal-description {
    color: #ebebeb;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
    text-shadow: 0 0 3px #29ccc4;
}

/* Responsive */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 10px;
    }
    
    .skill-modal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA HABILIDADES BLANDAS ===== */
#habilidadesblandas .skill-modal .skill-modal-content {
    background: linear-gradient(135deg, #1a3e2e 0%, #16213e 100%);
    border: 2px solid #29ccc4;
}

#habilidadesblandas .skill-tag:hover {
    background: linear-gradient(135deg, #29ccc4 0%, #17a0a0 100%);
    box-shadow: 0 0 20px rgba(41, 204, 196, 0.6);
}

/* ===== ESTILOS ACERCA DE MÍ ===== */
#acercademi h2 {
    font-size: 2.5rem;
    color: #38bdf8;
    margin-bottom: 2rem;
    text-align: center;
}

.about-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing:border-box;
}

.about-intro {
    margin-bottom: 2.5rem;
    text-align: center;
}

.about-intro h3 {
    font-size: 1.8rem;
    color: #00ffcc;
    margin-bottom: 1rem;
}

.about-intro p {
    font-size: 1rem;
    line-height: 1.8;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    align-items: stretch;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(162, 19, 228, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
    hyphens: auto;
    height: 100%;
}

.highlight-item:hover {
    background: rgba(162, 19, 228, 0.2);
    border-color: #a213e4;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(162, 19, 228, 0.3);
}

.highlight-item h4 {
    color: #00ffcc;
    font-size: 1.5rem;
    min-height: 4rem;
    margin-bottom: 1rem;
    margin-top: 0;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    
    hyphens: auto;
    font-weight: 700;
}

.highlight-item p {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    flex: 1;
}

/* Fade-in staggered para cada párrafo */
.highlight-item:nth-child(1) p { animation-delay: 0.5s; }
.highlight-item:nth-child(2) p { animation-delay: 0.7s; }
.highlight-item:nth-child(3) p { animation-delay: 0.9s; }

/* Palabras clave destacadas */
.keyword {
    color: #00ffcc;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
    transition: all 0.3s ease;
}

.keyword:hover {
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.8);
    letter-spacing: 0.5px;
}

/* Animación fade-in + slide up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #acercademi h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    #acercademi h2 {
        font-size: 1.6rem;
    }
    
    .about-intro h3 {
        font-size: 1.2rem;
    }
}

/* ===== SECCIÓN PROYECTOS ===== */
#proyectos {
    margin: 3rem 0;
    padding: 2rem 0;
}

#proyectos h2 {
    font-size: 2.5rem;
    color: #38bdf8;
    text-align: center;
    margin-bottom: 2.5rem;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    justify-items: center;
}

.project-card {
    width: 100%;
    max-width: 330px;

    background: rgba(162, 19, 228, 0.05);
    border: 1px solid rgba(162, 19, 228, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #a213e4;
    box-shadow: 0 12px 35px rgba(162, 19, 228, 0.3);
    background: rgba(162, 19, 228, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #1a1a2e;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-btn {
    background: #a213e4;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #a213e4;
}

.project-btn:hover {
    background: transparent;
    color: #a213e4;
}

.project-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0 0 1rem 0;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.tech-badge {
    background: linear-gradient(135deg, #a213e4 0%, #7a0fa0 100%);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #dd8181;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: linear-gradient(135deg, #dd8181 0%, #a213e4 100%);
    box-shadow: 0 4px 12px rgba(221, 129, 129, 0.3);
}

.project-description {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #dd8181;
    font-size: 0.9rem;
}

.project-highlights li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* ===== RESPONSIVIDAD PROYECTOS ===== */
@media (max-width: 1024px) {
    .proyectos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .proyectos-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 15px;
        justify-items: center;
    }
    
    #proyectos h2 {
        font-size: 2rem;
    }
    
    .project-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .proyectos-grid {
        grid-template-columns: 1fr;
    }
    
    #proyectos h2 {
        font-size: 1.6rem;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .tech-badges {
        gap: 0.4rem;
    }
    
    .tech-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
}


/* Animación de escritura */
.typewriter {
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid #00ffcc;
  white-space: nowrap;
  width: 0;
  animation: typing 3s steps(60, end) forwards, blink 0.75s step-end infinite;
}

/* Fade-in suave */
.fade-in {
  opacity: 0;
  animation: fadeIn 2.5s ease forwards;
  animation-delay: 3s; /* Aparece cuando termina el título */
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}


/* Efecto de escritura para el título */
.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #00ffcc; /* cursor */
  width: 0;
  animation: typing 3s steps(60, end) forwards, blink 0.7s step-end infinite;
}

/* Párrafo fade-in suave */
.fade-in-intro {
  opacity: 0;
  animation: fadeIntro 2s ease forwards;
  animation-delay: 3s; /* comienza después del typing */
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes fadeIntro {
  to { opacity: 1; }
}



/* === 1. ESTILOS BASE Y FONDO PROFESIONAL === */
/* (Los estilos de títulos están definidos en la sección SISTEMA UNIFICADO DE TÍTULOS al inicio)
   Para mantener coherencia, esos estilos son los que se aplican a toda la página */

/* === 2. FOOTER PROFESIONAL === */
footer {
    /* Fondo más oscuro que el body para anclar la página */
    background-color: #020617; 
    border-top: 1px solid #1e293b; /* Línea sutil de separación */
    color: #94a3b8; /* Texto gris medio */
    padding: 3rem 1rem; /* Espaciado generoso */
    text-align: center;
    margin-top: 4rem; /* Separación del contenido anterior */
    font-size: 0.9rem;
    scroll-margin-top: 380px; /* Espacio para que el footer se vea correctamente al scrollear */
}

footer p {
    margin: 0.5rem 0;
    color: #94a3b8;
    font-family: 'Segoe UI', sans-serif;
}

/* Si tienes enlaces en el footer */
footer a {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* === 3. MEJORA DE TARJETAS (Certificados y Proyectos) === */
.certificado, .project-card, .highlight-item, .skill-tag {
    /* Fondo sólido ligeramente más claro que el body */
    /*background: #1e293b !important;*/ 
    border: 1px solid #334155 !important; /* Borde sutil, no neón */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
}

/* Efecto Hover elegante */
.certificado:hover, .project-card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8 !important; /* Borde azul al pasar el mouse */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
}

/* Ajuste de texto dentro de las tarjetas */
.certificado p, .project-description, .highlight-item p {
    color: #cbd5e1 !important;
}

/* === FIX: CORRECCIÓN DE TEXTO CORTADO EN "ACERCA DE MÍ" === */

/* Apuntamos a los posibles encabezados dentro de esa sección */
#acercademi h3, 
#acercademi h4,
.about-intro h3, 
.about-intro h4 {
    /* Permite que el texto salte a una nueva línea si no cabe */
    white-space: normal !important; 
    
    /* Asegura que el contenido que sobresale no se oculte */
    overflow: visible !important; 
    text-overflow: clip !important; 
    
    /* Asegura que ocupe el ancho disponible pero no más del 100% */
    width: auto;
    max-width: 100%;
    
    /* Si el texto ocupa dos líneas, mejora el espaciado vertical */
    line-height: 1.4; 
    
    /* Mantiene el centrado */
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Aseguramos que el contenedor padre permita el flujo */
.about-intro {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* =========================================
   NUEVO FOOTER CON ÍCONOS
   ========================================= */

footer {
    background-color: #020617; /* Fondo muy oscuro */
    color: #cbd5e1;
    padding: 3rem 1rem 1.5rem 1rem; /* Espaciado cómodo */
    text-align: center;
    border-top: 1px solid rgba(56, 189, 248, 0.1); /* Línea divisoria sutil */
    position: relative;
    z-index: 10;
}

.footer-content h3 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.footer-content p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

/* Estilo de los Íconos Sociales */
.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Espacio entre íconos */
    margin-bottom: 2rem;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Círculos perfectos */
    background-color: rgba(255, 255, 255, 0.05); /* Fondo sutil */
    color: #ffffff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease; /* Animación suave */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Efecto al pasar el mouse (Hover) */
.socials a:hover {
    background-color: #38bdf8; /* Fondo Cian Tech */
    color: #0f172a; /* Ícono oscuro para contraste */
    transform: translateY(-5px); /* Se eleva un poco */
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6); /* Resplandor neón */
    border-color: #38bdf8;
}

/* Copyright final */
.footer-bottom p {
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    margin-top: 1rem;
}



/* ========================================= */
/* ESTILOS DEL MODAL DE GALERÍA (LIGHTBOX)   */
/* ========================================= */
.gallery-modal {
    display: none; /* ¡IMPORTANTE! Esto oculta las flechas al inicio */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#modalTitle {
    color: #00ffcc;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #00ffcc;
    text-align: center;
    font-size: 1.5rem;
}

.modal-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80%; /* Altura máxima para la imagen */
}

#modalImage {
    max-width: 90%;
    max-height: 100%;
    border: 2px solid #a213e4;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(162, 19, 228, 0.4);
    object-fit: contain;
}

/* Flechas */
.nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid #00ffcc;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 50%;
    user-select: none;
    position: absolute; /* Para fijarlas a los lados de la imagen */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
}

.nav-btn:hover {
    background: #00ffcc;
    color: #000;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Botón Cerrar */
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #dd8181;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
}

.modal-counter {
    color: #ebebeb;
    margin-top: 10px;
    font-family: 'Orbitron', sans-serif;
}

/* Celular */
@media (max-width: 768px) {
    .nav-btn { padding: 5px 10px; font-size: 1.5rem; }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
}

/* ===== LAYOUT ESCRITORIO (AGREGAR ESTO) ===== */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;

    width: 100%;

    margin: 0 auto;
    padding: 1rem;
    justify-items: center;
}
