body {
    font-family: "Anonymous Pro", monospace;
    color: #ffffff; 
    margin: 0;
    padding: 0;
    background-color: #000000;
    padding-bottom: 120px; /* Space for fixed footer */
}

.name-header { /* Header para marcar el nombre */
    text-align: center;
    margin: 20px 10px;
}

.name-header h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin: 10px 0;
}

.name-header h2 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin: 5px 0;
    font-weight: normal;
}

.grid-container { /* El grid container tiene todos los divs principales */
    display: grid;
    grid-template-columns: 1fr; /* Mobile first: single column */
    gap: 20px;
    margin: 10px;
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Vista de tablet */
@media screen and (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        margin: 20px;
        gap: 25px;
    }
}

/* Vista de pc */
@media screen and (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        margin: 30px auto;
        gap: 30px;
    }
}

.contact-info,
.education-level,
.work-experience,
.skills,
.hobbies {
    padding: 15px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    min-height: fit-content;
}

/* Vista de celular */
@media screen and (max-width: 767px) {
    .contact-info,
    .education-level,
    .work-experience,
    .skills,
    .hobbies {
        padding: 12px;
    }
}

/* Individual grid item styles */
.contact-info {
    text-align: left;
}

.work-experience {
    text-align: center;
}

.work-experience img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
}

/* Estilos para tablet */
.education-level table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

.education-level th,
.education-level td {
    border: 1px solid #ffffff;
    padding: 8px;
    text-align: left;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.education-level th { /* Header de la tabla de educacion */
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Ajustes para la tabla en dispositivos móviles */
@media screen and (max-width: 600px) {
    .education-level table {
        font-size: 0.8rem;
    }
    
    .education-level th,
    .education-level td {
        padding: 6px 4px;
    }
}

/* Footer  */
.footer {
    padding: 15px 10px;
    color: #ffffff;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 5px 0;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.social-links {
    margin: 10px 0;
}

.social-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #cccccc;
}

/* Mobile footer adjustments */
@media screen and (max-width: 600px) {
    .footer {
        padding: 10px 5px;
    }
    
    .social-links a {
        margin: 0 10px;
        display: inline-block;
    }
}

/* Typography responsiveness */
h3 {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 15px;
}

p, li {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
}

ul, ol {
    padding-left: 20px;
}

@media screen and (max-width: 600px) {
    ul, ol {
        padding-left: 15px;
    }
}
