/* estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* header y navegación */
header {
    border-bottom: 1px solid #ddd;
    padding: 2rem;
    width: 100%;
}

.encabezado ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.encabezado li {
    margin: 0 1rem;
}

.encabezado a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
}

.boton-cta {
    background-color: #333;
    color: white !important;
}

/* contenido principal */
main {
    padding: 2rem;
}

.seccion {
    max-width: 1000px;
    margin: 0 auto 2rem auto;
    padding: 1rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.descripcion {
    max-width: 800px;
    margin: 0 auto 1.2rem;
    text-align: center;
    line-height: 1.8;
}

.descripcion:last-child {
    margin-bottom: 0;
}

/* sección de habilidades */
.contenedor-habilidades {
    margin-top: 2rem;
}

.grupo-habilidad {
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    padding: 1rem;
}

.interfaz, .servidor, .base-datos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tarjeta-habilidad {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.imagenes {
    width: 35%;
    height: auto;
}

.imagenes-grandes {
    width: 100%;
    display: block;
    margin-bottom: 0.5rem;
}

/* sección de formación */
.contenedor-formacion {
    margin-top: 2rem;
}

.grupo-formacion {
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    padding: 1rem;
}

.item-formacion {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid #333;
    background-color: #f9f9f9;
}

.item-formacion h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.item-formacion .institucion {
    font-weight: bold;
    color: #555;
    margin-bottom: 0.3rem;
}

.item-formacion .periodo {
    color: #777;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.item-formacion .descripcion {
    color: #666;
    line-height: 1.5;
}

/* botones generales */
.buttons {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.5rem 1.2rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #333;
    cursor: pointer;
}

.buttons:hover {
    background-color: #555;
    border-color: #555;
}

/* clase para compatibilidad */
.boton-certificado {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.5rem 1.2rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #333;
    cursor: pointer;
}

.boton-certificado:hover {
    background-color: #555;
    border-color: #555;
}

/* botón con borde (para repo) */
.btn-outline {
    background-color: white;
    color: #333;
    border: 2px solid #333;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: #f5f5f5;
}

.btn-outline img {
    width: 20px;
    height: 20px;
}

/* botón sólido (para ver proyecto) */
.btn-solid {
    background-color: #333;
    color: white;
    border: 2px solid #333;
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-solid:hover {
    background-color: #555;
    border-color: #555;
}

/* contenedor de botones de proyectos */
.proyecto-botones {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* sección de proyectos */
.contenedor-proyectos {
    margin-top: 2rem;
}

.grupo-proyecto {
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    padding: 1rem;
}

.cuadricula-proyectos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* sección de experiencias personales */
.contenedor-experiencias {
    margin-top: 2rem;
}

.experiencia {
    margin-bottom: 3rem;
    border: 1px solid #ddd;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
}

.experiencia-info {
    margin-bottom: 2rem;
}

.experiencia-info h3 {
    color: #333;
    margin-bottom: 1rem;
}

.descripcion-experiencia {
    color: #666;
    line-height: 1.8;
    text-align: left;
    max-width: 100%;
}

/* slider de imágenes */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.slider {
    position: relative;
    width: 100%;
    height: 400px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

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

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

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-contenido {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-seccion {
    margin-bottom: 2rem;
    text-align: center;
}

.footer-seccion h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contacto-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background-color: #2a2a2a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid #3a3a3a;
    min-width: 280px;
}

.contacto-item:hover {
    background-color: #3a3a3a;
    border-color: #4a4a4a;
    transform: translateY(-2px);
}

.contacto-item img {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

.contacto-item span {
    font-size: 1rem;
}

.footer-derechos {
    border-top: 1px solid #3a3a3a;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-derechos p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}