:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --background-color: #fff;
    --card-bg: #f9f9f9;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Header */
.header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    background-color: #e0f2fe;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-subtext {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Navigation Styles */
/* ============================================= */
/* NAVEGACIÓN PRINCIPAL - ESTILOS BASE */
/* ============================================= */
.nav {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-icon {
    font-size: 0.9rem;
}

/* ============================================= */
/* BOTÓN DE MENÚ MÓVIL */
/* ============================================= */
.mobile-menu-btn {
    display: none; /* Oculto por defecto en desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    position: relative;
}

.menu-line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
    position: relative;
}

/* Texto "Menú" para mejor accesibilidad */
.menu-text {
    font-size: 0.8rem;
    color: var(--text-color);
    transition: var(--transition);
}

.mobile-menu-btn[aria-expanded="true"] .menu-text {
    color: var(--secondary-color);
}

/* Animación del botón hamburguesa a X */
.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ============================================= */
/* ESTILOS PARA MÓVIL (RESPONSIVE) */
/* ============================================= */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        margin: 0;
        padding: 0;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Overlay para fondo oscuro */
    .nav-list::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .nav-list.active::before {
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Asegurar que el header tenga mayor z-index */
    .header {
        z-index: 1000;
    }
}

/* ============================================= */
/* EFECTOS DE TRANSICIÓN Y HOVER */
/* ============================================= */
.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link.active {
    font-weight: 600;
}

/* Suavizar transición del menú móvil */
.nav-list {
    will-change: transform;
}

/* Mejorar accesibilidad para focus */
.nav-link:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ============================================= */
/* ANIMACIONES */
/* ============================================= */
@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .nav-list.active .nav-item {
        animation: fadeInMenu 0.4s ease forwards;
    }
    
    .nav-list.active .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .nav-list.active .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .nav-list.active .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .nav-list.active .nav-item:nth-child(4) { animation-delay: 0.4s; }
}
/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
    color: #fff;
}

.code-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.9;
}

.code-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-photo {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    border: 8px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.hero-image:hover .profile-photo {
    transform: scale(1.03);
    border-color: rgba(59, 130, 246, 0.3);
}

.photo-border {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 2px dashed rgba(59, 130, 246, 0.5);
    border-radius: 20px;
    top: 20px;
    left: 20px;
    z-index: 1;
    animation: rotateBorder 20s linear infinite;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 3rem;
        order: -1;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-photo {
        width: 280px;
        height: 280px;
    }
    
    .photo-border {
        width: 280px;
        height: 280px;
    }
}
/* Profile Section */
.profile {
    padding: 100px 0;
    background-color: var(--background-color);
}

.profile-content {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.profile-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.profile-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.highlight-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.highlight-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.highlight-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}
/* ===================== */
/* SKILLS SECTION - PRO  */
/* ===================== */

.skills-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(52, 152, 219, 0.03)" d="M0,0 L100,0 L100,100 Q50,80 0,100 Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    z-index: 0;
}

.skills-container {
    position: relative;
    z-index: 1;
}

.skills-category {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.skills-category h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(52, 152, 219, 0.2);
}

.skills-category h3 i {
    margin-right: 12px;
    font-size: 1.6rem;
    color: var(--secondary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: white;
    border-radius: 12px;
    padding: 1.8rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    z-index: 1;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3498db 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.15);
    color: white;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover i,
.skill-card:hover span {
    color: white;
    transform: scale(1.1);
}

.skill-card i {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    display: block;
    transition: all 0.3s ease;
}

.skill-card span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
}

/* Tooltip mejorado */
.skill-tooltip {
    position: fixed;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(5px);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    max-width: 280px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(10px);
    line-height: 1.5;
}

.skill-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.skill-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(44, 62, 80, 0.95) transparent transparent transparent;
}

/* Colores específicos para iconos */
.skill-card .fa-html5 { color: #E34F26; }
.skill-card .fa-css3-alt { color: #264DE4; }
.skill-card .fa-js-square { color: #F7DF1E; }
.skill-card .fa-node-js { color: #68A063; }
.skill-card .fa-angular { color: #DD0031; }
.skill-card .fa-bootstrap { color: #7952B3; }
.skill-card .fa-wordpress { color: #21759B; }
.skill-card .fa-github { color: #333333; }
.skill-card .fa-google { color: #4285F4; }
.skill-card .fa-microsoft { color: #00A1F1; }
.skill-card .fa-server { color: #5D5D5D; }
.skill-card .fa-store { color: #95BF47; }
.skill-card .fa-database { color: #00758F; }
.skill-card .fa-globe { color: #2E8B57; }
.fa-python { color: #3776AB; }
.fa-react { color: #61DAFB; }


/* Efecto de onda al hacer hover */
.skill-card:hover .skill-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
    animation: wave 0.8s ease-out;
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
}

@keyframes wave {
    to {
        transform: scale(2.5);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .skill-card i {
        font-size: 2.2rem;
    }
    
    .skill-card span {
        font-size: 0.85rem;
    }
}

/* Color specific icons */
.fa-html5 { color: #e34f26 !important; }
.fa-css3-alt { color: #264de4 !important; }
.fa-js-square { color: #f7df1e !important; }
.fa-node-js { color: #68a063 !important; }
.fa-angular { color: #dd0031 !important; }
.fa-bootstrap { color: #7952b3 !important; }
.fa-wordpress { color: #21759b !important; }
.fa-github { color: #333 !important; }
.fa-google { color: #4285f4 !important; }
.fa-microsoft { color: #00a1f1 !important; }

.skill-card:hover .fa-html5,
.skill-card:hover .fa-css3-alt,
.skill-card:hover .fa-js-square,
.skill-card:hover .fa-node-js,
.skill-card:hover .fa-angular,
.skill-card:hover .fa-bootstrap,
.skill-card:hover .fa-wordpress,
.skill-card:hover .fa-github,
.skill-card:hover .fa-google,
.skill-card:hover .fa-microsoft {
    color: white !important;
}

/* Experience Section */
/* Experience Section - Minimalist Professional */
.experience-section {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.title-decorator {
    width: 40px;
    height: 2px;
    background-color: #3b82f6;
}

.experience-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.experience-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.experience-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.experience-date {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.experience-company {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.experience-position {
    font-size: 1rem;
    color: #3b82f6;
    font-weight: 500;
}

.experience-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.experience-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.item-icon {
    color: #3b82f6;
    font-weight: bold;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tech-tag {
    background-color: #e0e7ff;
    color: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
        gap: 1rem;
    }
    
    .title-decorator {
        width: 30px;
    }
    
    .experience-card {
        padding: 1.5rem;
    }
    
    .experience-company {
        font-size: 1.1rem;
    }
    
    .experience-position {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .experience-item {
        font-size: 0.9rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
    }
}

/* Education Section */
.education {
    padding: 100px 0;
    background-color: var(--light-color);
}

.education-item {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.education-item h3 {
    color: var(--primary-color);
}

.degree {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.date {
    color: var(--text-light);
    font-style: italic;
}

.languages-interests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 50px auto 0;
}

.languages, .interests {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.languages h3, .interests h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.interests ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.interests ul li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--background-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    min-height: 80px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--secondary-color);
    min-width: 25px;
    text-align: center;
}

.contact-item span, 
.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    word-break: break-word;
}

.contact-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0a0a0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-primary i {
    font-size: 1.2rem;
}

/* Footer - Estilo Profesional */
.footer {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 70px 0 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #4a00e0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), #4a00e0);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 20px rgba(74, 0, 224, 0.3);
}

.brand-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.brand-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.footer-motto {
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links, .contact-links {
    list-style: none;
    padding: 0;
}

.footer-links li, .contact-links li {
    margin-bottom: 12px;
}

.footer-links a, .contact-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-links a:hover, .contact-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.contact-links i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-align: center;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.legal-link:hover {
    color: var(--secondary-color);
}

.divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Efecto hover para móviles */
@media (hover: none) {
    .footer-links a:hover, .contact-links a:hover {
        transform: none;
    }
}



/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .location {
        justify-content: center;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-date, .timeline-content {
        width: 100%;
        text-align: left;
    }
    
    .timeline-date {
        padding-right: 0;
        margin-bottom: 10px;
    }
    
    .timeline-content {
        padding-left: 70px;
    }
    
    .timeline-content::before {
        left: 20px;
    }
}

@media (max-width: 768px) {
    
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
        font-size: 6rem;
    }
    
    .profile-highlights {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Section */
.portfolio-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-subtitle {
    color: #64748b;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .card-image img {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .image-overlay {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.project-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tags span {
    background-color: #f1f5f9;
    color: #334155;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-link i {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: #2563eb;
}

.project-link:hover i {
    transform: translateX(3px);
}

.portfolio-cta {
    text-align: center;
    margin-top: 2rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.btn-outline i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-outline:hover i {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 200px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}


/* Portfolio Section */
.portfolio-section {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.portfolio-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #a5b4fc;
}

.project-media {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .project-media img {
    transform: scale(1.03);
}

.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .demo-overlay {
    opacity: 1;
}

.demo-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.demo-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.project-info p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.portfolio-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Demo Modal */
.demo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.demo-modal.active {
    opacity: 1;
    pointer-events: all;
}

.demo-content {
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: white;
    border-radius: 8px;
    position: relative;
}

.close-demo {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    border: none;
    transition: all 0.3s ease;
}

.close-demo:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

.demo-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .project-media {
        height: 200px;
    }
}