/* Estilos Generales - Tema Claro */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Navegación - Tema Claro */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(116, 11, 236, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: rgb(116, 11, 236);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: rgb(116, 11, 236);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(116, 11, 236);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #475569;
    transition: all 0.3s ease;
}

/* Hero Section - Tema Claro */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.hero-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.highlight {
    color: rgb(116, 11, 236);
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 1.5rem;
}

.description {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #64748b;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: rgb(116, 11, 236);
    color: white;
    border: 2px solid rgb(116, 11, 236);
}

.btn-primary:hover {
    background: rgba(116, 11, 236, 0.9);
    transform: translateY(-2px);
    box-shadow: 0px 5px 20px rgba(116, 11, 236, 0.2);
}

.btn-secondary {
    background: transparent;
    color: rgb(116, 11, 236);
    border: 2px solid rgb(116, 11, 236);
}

.btn-secondary:hover {
    background: rgb(116, 11, 236);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0px 5px 20px rgba(116, 11, 236, 0.2);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 300px;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.03);
}

/* Efecto sutil alrededor de la imagen */
.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(116, 11, 236, 0.2);
    border-radius: 15px;
    pointer-events: none;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: rgb(116, 11, 236);
    font-size: 2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Secciones comunes */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.horizontal-line {
    display: block;
    margin: 1rem auto 3rem;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, rgba(116, 11, 236, 0.2), rgba(116, 11, 236, 0.4));
    border-radius: 2px;
}

/* Sobre mí - Tema Claro */
.about-section {
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-card {
    display: flex;
    justify-content: center;
}

/* Card - Tema Claro */
.card {
    width: 17em;
    height: 22.5em;
    background: #ffffff;
    transition: 1s ease-in-out;
    clip-path: polygon(30px 0%, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0% 30px);
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card span {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    display: block;
    font-size: 1.2em;
    margin-top: 1rem;
}

.card .info {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #475569;
    display: block;
    text-align: center;
    font-size: 0.85em;
    margin: 1em;
    line-height: 1.5;
}

.card .share {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    gap: 1em;
}

.card a {
    color: #64748b;
    transition: .4s ease-in-out;
    font-size: 1.5rem;
}

.card a:hover {
    color: rgb(116, 11, 236);
}

.card .contact-me-button {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.8em 1.7em;
    display: block;
    margin: auto;
    border-radius: 25px;
    border: none;
    background: rgb(116, 11, 236);
    color: white;
    transition: 560ms ease-in-out;
    margin-top: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
}

.card .contact-me-button:hover {
    background: rgba(116, 11, 236, 0.9);
    transform: translateY(-2px);
    box-shadow: 0px 5px 20px rgba(116, 11, 236, 0.2);
}

.skills-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: rgb(116, 11, 236);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skill-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: rgb(116, 11, 236);
    box-shadow: 0px 5px 20px rgba(116, 11, 236, 0.1);
}

.skill-item i {
    font-size: 2rem;
    color: rgb(116, 11, 236);
    margin-bottom: 0.5rem;
}

.skill-item span {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #1e293b;
}

.about-description p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #475569;
}

/* Proyectos - Tema Claro */
.projects-section {
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

/* Card Container - Tema Claro */
.cardContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    justify-content: center;
    margin-top: 2rem;
}

.cardProjectContainerStyle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.cardProjectContainerStyle:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(116, 11, 236, 0.1);
    border-color: rgb(116, 11, 236);
}

.cardProjectContainerStyle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(116, 11, 236, 0.03);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cardProjectContainerStyle:hover::before {
    opacity: 1;
}

.cardImageContainer {
    width: 100%;
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #f8fafc;
}

.cardImageContainer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Icono para Homelab */
.cardImageContainer .homelab-icon {
    font-size: 4rem;
    color: rgb(116, 11, 236);
    transition: all 0.3s ease;
}

.cardProjectContainerStyle:hover .cardImageContainer .homelab-icon {
    transform: scale(1.1);
    color: rgba(116, 11, 236, 0.9);
}

.cardProjectContainerStyle:hover .cardImageContainer img {
    transform: scale(1.1);
}

.titleProject {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #1e293b;
    font-size: 18px;
    text-align: center;
    margin-top: 10px;
    z-index: 1;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(116, 11, 236, 0.95);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cardProjectContainerStyle:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* Contacto - Tema Claro */
.contact-section {
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: rgb(116, 11, 236);
    width: 50px;
    height: 50px;
    background: rgba(116, 11, 236, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #1e293b;
}

.contact-item p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #475569;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #f8fafc;
    border-radius: 50%;
    color: #475569;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.social-link:hover {
    background: rgb(116, 11, 236);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(116, 11, 236, 0.2);
    border-color: rgb(116, 11, 236);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    width: 100%;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgb(116, 11, 236);
    box-shadow: 0px 0px 10px rgba(116, 11, 236, 0.1);
    background: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.contact-form button {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Footer - Tema Claro */
.footer {
    background-color: #f8fafc;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.footer-content p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #64748b;
    margin-bottom: 0.5rem;
}

/* Experiencia Laboral - Tema Claro */
.experience-section {
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(116, 11, 236, 0.3), rgba(116, 11, 236, 0.1));
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-date {
    width: 140px;
    padding-right: 2rem;
    text-align: right;
    position: relative;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5px;
}

.timeline-date span {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    display: block;
    color: rgb(116, 11, 236);
    font-size: 0.9rem;
    line-height: 1.2;
}

.timeline-date .current {
    font-family: 'Inter', sans-serif;
    font-weight: 600;

}