body {
    background: linear-gradient(135deg, #0c425a, #642c5d);
    min-height: 100vh;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    text-align: center;
    color: #fff;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

h4 {
    font-size: 1.8rem;
    margin: 0;
    text-align: center;
    color: #fff;
}

p {
    color: #fff;
    line-height: 1.6;
}

.header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas: 
        "nav"
        "img"
        "title"
        "subtitle";
    gap: 0.5rem;
    justify-items: center;
}

.profile-img {
    grid-area: img;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    justify-self: center;
}

h1 {
    grid-area: title;
}

h4 {
    grid-area: subtitle;
}

.nav {
    grid-area: nav;
}

.nav ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.nav a {
    font-size: 0.9375rem;
    color: white;
    text-decoration: none;
}

.main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
}

.about-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.rowing-img {
    width: 200px;
    display: block;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
    transform: rotate(5deg);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.card {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.card-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.card-img {
    width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-img:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.card-content {
    padding: 15px;
    flex: 1;
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.card-content p {
    margin: 0;
    color: #fff;
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 8px;
    color: #ffd700;
    text-decoration: underline;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #ffed4e;
    text-decoration: none;
}

.skills-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

.skills-table th,
.skills-table td {
    border: 1px solid #ddd;
    padding: 10px;
    color: #fff;
}

.skills-table th {
    background-color: #f0f0f0;
    color: #000;
}

/* Estilos para el nuevo contenedor de habilidades */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skills-card {
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skills-card h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}

.hard-skills {
    border-color: #e778cb;
    background: linear-gradient(135deg, rgba(231, 120, 203, 0.1), rgba(231, 120, 203, 0.05));
}

.soft-skills {
    border-color: #4ecdc4;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(78, 205, 196, 0.05));
}

.learning-skills {
    border-color: #ffd93d;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.1), rgba(255, 217, 61, 0.05));
}

.hobbies {
    border-color: #a8e6cf;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.1), rgba(168, 230, 207, 0.05));
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-tag {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}



.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.movie-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.movie-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 8px;
}

.movie-content {
    padding: 15px;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-form div {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
}

.contact-form input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.contact-form textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
}

.contact-form button {
    align-self: flex-end;
    padding: 10px 20px;
    background-color: #e778cb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: #c055a8;
    transform: scale(1.05);
}

.form-message {
    display: none;
    min-height: 2.5rem;
    margin: 10px 0 0;
    padding: 12px 16px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.form-message.visible {
    display: block;
    opacity: 1;
}

.form-message.success {
    color: #fff;
    background: rgba(34, 150, 70, 0.18);
    border-color: rgba(34, 150, 70, 0.35);
}

.form-message.error {
    color: #fff;
    background: rgba(194, 46, 46, 0.18);
    border-color: rgba(194, 46, 46, 0.35);
}

.site-footer {
    background-color: #333;
    color: white;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

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

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    margin-top: 20px;
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 14px;
}

/* Estilos para la sección de Experiencia Laboral */
.experience-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.experience-item {
    border-left: 4px solid #e778cb;
    padding-left: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #e778cb;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.experience-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
}

.experience-company {
    color: #e778cb;
    font-weight: 700;
    font-size: 0.95rem;
}

.experience-date {
    color: #b9b9b9;
    font-size: 0.9rem;
}

.experience-item p {
    margin: 0;
    color: #fff;
    line-height: 1.6;
}

/* Estilos para la sección de Educación */
.education-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.education-item {
    border-left: 4px solid #e778cb;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.education-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.education-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
}

.education-institution {
    color: #e778cb;
    font-weight: 700;
    font-size: 0.95rem;
}

.education-date {
    color: #b9b9b9;
    font-size: 0.9rem;
}

.education-item p {
    margin: 0;
    color: #fff;
    line-height: 1.6;
}

