/* ===== VARIABLES ===== */
:root {
    /* Colores - Modo Claro */
    --primary-color: #3498db; /* Azul eléctrico */
    --secondary-color: #2ecc71; /* Verde azulado */
    --accent-color: #9b59b6; /* Violeta tecnológico */
    --text-color: #333333;
    --text-color-light: #666666;
    --bg-color: #ffffff;
    --bg-alt-color: #f8f9fa;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    
    /* Fuentes */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    
    /* Tamaños */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* Modo Oscuro */
[data-theme="dark"] {
    --primary-color: #4dabf7; /* Azul eléctrico más claro */
    --secondary-color: #40c980; /* Verde azulado más claro */
    --accent-color: #b06ad3; /* Violeta tecnológico más claro */
    --text-color: #e0e0e0;
    --text-color-light: #b0b0b0;
    --bg-color: #121212;
    --bg-alt-color: #1e1e1e;
    --border-color: #333333;
    --card-bg: #1e1e1e;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --nav-bg: rgba(18, 18, 18, 0.95);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== CURSOR FOLLOWER ===== */
.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    background: rgba(var(--primary-color-rgb), 0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    display: none; /* Inicialmente oculto, se muestra con JS */
}

/* ===== NAVEGACIÓN ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav.scrolled {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: color var(--transition-speed) ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: background-color var(--transition-speed) ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: transform var(--transition-speed) ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: translateY(0) rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    transform: translateY(0) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    overflow: hidden;
    background-color: var(--bg-color);
}

.network-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#network-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-content h1 {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: 1px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-color-light);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* Efecto Glitch */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: var(--primary-color);
    z-index: -1;
    animation: glitch-effect 3s infinite;
}

.glitch::after {
    color: var(--accent-color);
    z-index: -2;
    animation: glitch-effect 2s infinite reverse;
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-3px, 3px);
    }
    40% {
        transform: translate(-3px, -3px);
    }
    60% {
        transform: translate(3px, 3px);
    }
    80% {
        transform: translate(3px, -3px);
    }
    100% {
        transform: translate(0);
    }
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width var(--transition-speed) ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 25px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.disabled:hover {
    transform: none;
    box-shadow: var(--card-shadow);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color-light);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 6px;
    height: 6px;
    background-color: var(--text-color-light);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.arrow-scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.arrow-scroll-down span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-color-light);
    border-right: 2px solid var(--text-color-light);
    transform: rotate(45deg);
    animation: arrow-down 2s infinite;
}

.arrow-scroll-down span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow-scroll-down span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes arrow-down {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* ===== SECCIONES GENERALES ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.bg-alt {
    background-color: var(--bg-alt-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.separator {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== SOBRE MÍ ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.image-container img {
    width: 100%;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(var(--primary-color-rgb), 0.2), rgba(var(--secondary-color-rgb), 0.2));
}

.about-text h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-color-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.info-value {
    color: var(--text-color-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-alt-color);
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.download-cv {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.download-cv i {
    font-size: 1.1rem;
}

/* ===== EXPERIENCIA ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 2;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: calc(50% + 40px);
    background-color: var(--card-bg);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-content {
    position: relative;
    width: calc(50% - 50px);
    padding: 25px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + 50px);
}

.timeline-item:nth-child(even) .timeline-date {
    left: auto;
    right: calc(50% + 40px);
    text-align: right;
}

.timeline-content h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-color-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 12px;
    background-color: var(--bg-alt-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-color-light);
}

/* ===== HABILIDADES ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.skills-category h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
}

.skills-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 500;
    color: var(--text-color);
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 600;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-alt-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    position: relative;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    width: 0; /* Se actualiza con JS */
    transition: width 1.5s ease;
}

.skill-progress::before,
.skill-progress::after {
    content: "";
    display: none;
}

.certifications h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 25px;
    text-align: center;
}

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

.cert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.cert-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.cert-info h4 {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.cert-info p {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

/* ===== PROYECTOS ===== */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: var(--heading-font);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color-light);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-category {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.project-title {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-color-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.project-link:hover::after {
    width: 100%;
}

/* ===== CONTACTO ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-text h3 {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-color-light);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    font-size: 1rem;
    color: var(--text-color);
    border: none;
    border-bottom: 1px solid var(--border-color);
    background-color: transparent;
    outline: none;
    transition: border-color var(--transition-speed) ease;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1rem;
    color: var(--text-color-light);
    pointer-events: none;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    width: auto;
    margin-top: 20px;
}

.btn-icon {
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-alt-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo span {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.footer-logo p {
    color: var(--text-color-light);
    margin-top: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-color-light);
    font-size: 0.9rem;
}

.footer-bottom i {
    color: #e74c3c;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-content,
    .contact-content {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .main-nav {
        padding: 0 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-date {
        left: 80px;
        top: -30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        left: 80px !important;
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        left: 80px;
        right: auto;
        text-align: left;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .main-nav {
        padding: 0 20px;
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        overflow: hidden;
        transition: height var(--transition-speed) ease;
        z-index: 999;
    }
    
    .nav-links.active {
        height: calc(100vh - var(--header-height));
        padding: 30px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .skills-container,
    .cert-container {
        gap: 20px;
    }
    
    .projects-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* ===== TECNOLOGÍAS DESTACADAS ===== */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-category {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tech-category h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.tech-category h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tech-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tech-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.tech-tag:hover::before {
    left: 100%;
}

/* Responsive para tecnologías */
@media (max-width: 768px) {
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-category {
        padding: 20px;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Definir variables RGB para colores principales (para usar en rgba) */
:root {
    --primary-color-rgb: 52, 152, 219;
    --secondary-color-rgb: 46, 204, 113;
    --accent-color-rgb: 155, 89, 182;
}

[data-theme="dark"] {
    --primary-color-rgb: 77, 171, 247;
    --secondary-color-rgb: 64, 201, 128;
    --accent-color-rgb: 176, 106, 211;
}

/* Estilos para la separación visual en About Me */
.section-with-separator {
    border-top: 2px solid rgba(var(--primary-color-rgb), 0.2);
    padding-top: 40px;
}

/* Estilos para la sección de contenidos */
.content-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.content-link {
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.content-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb), 0.1), transparent);
    transition: left 0.5s ease;
}

.content-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.2);
    border-color: var(--primary-color);
}

.content-link:hover::before {
    left: 100%;
}

.content-link h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.content-link p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .content-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-with-separator {
        margin-top: 30px;
        padding-top: 30px;
    }
}
/* Estilos para items de contenidos (cards) */
.content-item {
  background: var(--card-bg, rgba(255,255,255,0.04));
  border: 1px solid rgba(var(--primary-color-rgb), 0.15);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

/* Layout vertical específico para la card del podcast */
.content-item.podcast-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.content-item.podcast-card .content-icon {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.content-item.podcast-card .content-info {
  width: 100%;
}

.content-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.15);
  border-color: rgba(var(--primary-color-rgb), 0.3);
}

.content-item .content-icon {
  font-size: 28px;
  color: var(--primary-color);
  flex: 0 0 auto;
  line-height: 1;
}

/* Make the right side grow to use full width next to the icon */
.content-item .content-info {
  flex: 1 1 auto;
  min-width: 0;
}

.content-item .content-info h3 {
  margin: 0 0 6px 0;
}

.content-item .content-info p {
  margin: 0 0 10px 0;
  opacity: 0.9;
}

/* Player dentro de la card - ahora ocupa todo el ancho */
.podcast-embed {
  width: 100%;
  margin: 12px 0 0 0; /* igual margen a izquierda y derecha dentro de la card */
}

.podcast-embed iframe {
  width: 100%;
  height: 400px; /* larger on desktop for better visibility */
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
  .content-item { padding: 14px; }
  .podcast-embed iframe { height: 300px; }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .main-nav {
        padding: 0 20px;
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        overflow: hidden;
        transition: height var(--transition-speed) ease;
        z-index: 999;
    }
    
    .nav-links.active {
        height: calc(100vh - var(--header-height));
        padding: 30px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .skills-container,
    .cert-container {
        gap: 20px;
    }
    
    .projects-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* ===== TECNOLOGÍAS DESTACADAS ===== */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-category {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tech-category h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.tech-category h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tech-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tech-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.tech-tag:hover::before {
    left: 100%;
}

/* Responsive para tecnologías */
@media (max-width: 768px) {
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-category {
        padding: 20px;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Definir variables RGB para colores principales (para usar en rgba) */
:root {
    --primary-color-rgb: 52, 152, 219;
    --secondary-color-rgb: 46, 204, 113;
    --accent-color-rgb: 155, 89, 182;
}

[data-theme="dark"] {
    --primary-color-rgb: 77, 171, 247;
    --secondary-color-rgb: 64, 201, 128;
    --accent-color-rgb: 176, 106, 211;
}

/* Estilos para la separación visual en About Me */
.section-with-separator {
    border-top: 2px solid rgba(var(--primary-color-rgb), 0.2);
    padding-top: 40px;
}

/* Estilos para la sección de contenidos */
.content-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.content-link {
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.content-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb), 0.1), transparent);
    transition: left 0.5s ease;
}

.content-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.2);
    border-color: var(--primary-color);
}

.content-link:hover::before {
    left: 100%;
}

.content-link h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.content-link p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .content-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-with-separator {
        margin-top: 30px;
        padding-top: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .skills-container,
    .cert-container {
        gap: 20px;
    }
    
    .projects-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* ===== TECNOLOGÍAS DESTACADAS ===== */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-category {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tech-category h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.tech-category h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tech-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tech-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.tech-tag:hover::before {
    left: 100%;
}

/* Responsive para tecnologías */
@media (max-width: 768px) {
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-category {
        padding: 20px;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Definir variables RGB para colores principales (para usar en rgba) */
:root {
    --primary-color-rgb: 52, 152, 219;
    --secondary-color-rgb: 46, 204, 113;
    --accent-color-rgb: 155, 89, 182;
}

[data-theme="dark"] {
    --primary-color-rgb: 77, 171, 247;
    --secondary-color-rgb: 64, 201, 128;
    --accent-color-rgb: 176, 106, 211;
}

/* Estilos para la separación visual en About Me */
.section-with-separator {
    border-top: 2px solid rgba(var(--primary-color-rgb), 0.2);
    padding-top: 40px;
}

/* Estilos para la sección de contenidos */
.content-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.content-link {
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.content-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb), 0.1), transparent);
    transition: left 0.5s ease;
}

.content-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.2);
    border-color: var(--primary-color);
}

.content-link:hover::before {
    left: 100%;
}

.content-link h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.content-link p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .content-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-with-separator {
        margin-top: 30px;
        padding-top: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .skills-container,
    .cert-container {
        gap: 20px;
    }
    
    .projects-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* ===== TECNOLOGÍAS DESTACADAS ===== */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-category {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tech-category h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.tech-category h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tech-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tech-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.tech-tag:hover::before {
    left: 100%;
}

/* Responsive para tecnologías */
@media (max-width: 768px) {
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-category {
        padding: 20px;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Definir variables RGB para colores principales (para usar en rgba) */
:root {
    --primary-color-rgb: 52, 152, 219;
    --secondary-color-rgb: 46, 204, 113;
    --accent-color-rgb: 155, 89, 182;
}

[data-theme="dark"] {
    --primary-color-rgb: 77, 171, 247;
    --secondary-color-rgb: 64, 201, 128;
    --accent-color-rgb: 176, 106, 211;
}

/* Estilos para la separación visual en About Me */
.section-with-separator {
    border-top: 2px solid rgba(var(--primary-color-rgb), 0.2);
    padding-top: 40px;
}

/* Estilos para la sección de contenidos */
.content-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.content-link {
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.content-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb), 0.1), transparent);
    transition: left 0.5s ease;
}

.content-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.2);
    border-color: var(--primary-color);
}

.content-link:hover::before {
    left: 100%;
}

.content-link h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.content-link p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .content-links {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-with-separator {
        margin-top: 30px;
        padding-top: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .skills-container,
    .cert-container {
        gap: 20px;
    }
    
    .projects-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* ===== TECNOLOGÍAS DESTACADAS ===== */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-category {
    background: var(--