/* ============================================
   UNALYTICS - Diseño Profesional Institucional
   Universidad Nacional de Colombia
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* === PALETA DE COLORES INSTITUCIONAL UNAL === */
:root {
    /* Verde Institucional UNAL */
    --unal-green: #009B3C;
    --unal-green-dark: #007A2F;
    --unal-green-light: #00B847;
    --unal-green-subtle: #E8F5EC;

    /* Rojo Alterno UNAL */
    --unal-red: #A61B30;
    --unal-red-dark: #8B1628;
    --unal-red-light: #C42038;

    /* Colores Neutros */
    --gray-900: #111827;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;

    /* Colores semánticos */
    --primary: var(--unal-green);
    --primary-dark: var(--unal-green-dark);
    --primary-light: var(--unal-green-light);
    --secondary: var(--unal-red);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --background: var(--gray-50);
    --surface: var(--white);
    --border: var(--gray-200);

    /* Sombras */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Bordes */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
}

/* === RESET Y BASE === */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

/* === SIDEBAR PROFESIONAL === */
#fh5co-aside {
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

#fh5co-aside #fh5co-logo {
    margin-bottom: 2.5rem;
}

#fh5co-aside #fh5co-logo a {
    color: var(--primary);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.5px;
    transition: all var(--transition-base);
    text-decoration: none;
}

#fh5co-aside #fh5co-logo a:hover {
    color: var(--primary-dark);
}

/* Navegación del sidebar */
#fh5co-aside #fh5co-main-menu ul {
    padding: 0 1rem;
}

#fh5co-aside #fh5co-main-menu ul li {
    margin-bottom: 4px;
}

#fh5co-aside #fh5co-main-menu ul li a {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

#fh5co-aside #fh5co-main-menu ul li a::after {
    display: none;
}

#fh5co-aside #fh5co-main-menu ul li a:hover {
    background: var(--unal-green-subtle);
    color: var(--primary);
    transform: none;
}

#fh5co-aside #fh5co-main-menu ul li.fh5co-active a {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

#fh5co-aside #fh5co-main-menu ul li.fh5co-active a::after {
    display: none;
}

/* Footer del sidebar */
#fh5co-aside .fh5co-footer {
    padding: 0 1.5rem;
}

#fh5co-aside .fh5co-footer p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 1rem;
}

#fh5co-aside .fh5co-footer ul {
    display: flex;
    justify-content: center;
    gap: 8px;
}

#fh5co-aside .fh5co-footer ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    color: var(--text-secondary);
    font-size: 16px;
    transition: all var(--transition-base);
}

#fh5co-aside .fh5co-footer ul li a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === HERO SECTION === */
#fh5co-hero {
    position: relative;
}

#fh5co-hero .flexslider .slides .overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

#fh5co-hero .flexslider .slides li {
    background-size: cover;
    background-position: center center;
}

#fh5co-hero .flexslider .slider-text > .slider-text-inner h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 56px;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
}

#fh5co-hero .flexslider .slider-text > .slider-text-inner h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 22px;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

@media screen and (max-width: 768px) {
    #fh5co-hero .flexslider .slider-text > .slider-text-inner h1 {
        font-size: 32px;
    }

    #fh5co-hero .flexslider .slider-text > .slider-text-inner h2 {
        font-size: 16px;
    }
}

/* === CONTENIDO PRINCIPAL === */
#fh5co-main {
    background: var(--background);
}

#fh5co-main .fh5co-narrow-content {
    padding: 4rem 3rem;
    max-width: 1200px;
}

@media screen and (max-width: 768px) {
    #fh5co-main .fh5co-narrow-content {
        padding: 2.5rem 1.5rem;
    }
}

/* === TITULOS DE SECCION === */
.fh5co-heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.fh5co-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* === TARJETAS DE CARACTERISTICAS === */
#intro .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media screen and (max-width: 992px) {
    #intro .row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    #intro .row {
        grid-template-columns: 1fr;
    }
}

/* Reset Bootstrap columns para usar grid */
#intro .row > .col-md-4,
#intro .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding: 0;
    float: none;
}

.fh5co-feature {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 200px;
}

.fh5co-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.fh5co-feature .fh5co-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    top: 0;
    left: 0;
}

.fh5co-feature:hover .fh5co-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.fh5co-feature .fh5co-icon i {
    color: var(--white);
    font-size: 28px;
}

.fh5co-feature .fh5co-text {
    padding-left: 24px;
    flex: 1;
}

.fh5co-feature .fh5co-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
}

.fh5co-feature .fh5co-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* === TARJETAS DE BLOG/TRABAJOS === */
.row-bottom-padded-md {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 2rem;
}

@media screen and (max-width: 768px) {
    .row-bottom-padded-md {
        grid-template-columns: 1fr;
    }
}

/* Reset Bootstrap columns para usar grid */
.row-bottom-padded-md > .col-md-4,
.row-bottom-padded-md > .col-padding,
.row-bottom-padded-md > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding: 0;
    float: none;
}

.blog-entry {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-entry:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.blog-entry .blog-img {
    height: 180px;
    overflow: hidden;
    margin-bottom: 0;
}

.blog-entry .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-entry:hover .blog-img img {
    transform: scale(1.05);
}

.blog-entry .desc {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-entry .desc h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.blog-entry .desc h3 a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.blog-entry .desc h3 a:hover {
    color: var(--primary);
}

.blog-entry .desc span {
    font-size: 12px;
    color: var(--text-muted) !important;
    margin-bottom: 12px;
}

.blog-entry .desc p {
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
}

/* === TARJETAS DE EQUIPO (ABOUT) === */
.card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.card-body {
    padding: 24px;
}

.profile img {
    border: 4px solid var(--surface);
    box-shadow: var(--shadow-md);
}

/* === SECCION DE CONTACTO === */
.contact-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    border-left: 4px solid var(--primary);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-card .contact-role {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.contact-card .contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.contact-card .contact-info i {
    color: var(--primary);
    font-size: 18px;
    width: 20px;
}

.contact-card .contact-info a {
    color: var(--text-secondary);
}

.contact-card .contact-info a:hover {
    color: var(--primary);
}

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

/* === FORMULARIOS === */
.form-control {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 155, 60, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* === BOTONES === */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 24px !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === TUTORIALES - Diseño Elegante === */
.tutorials-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tutorial-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.tutorial-card:hover {
    box-shadow: var(--shadow-md);
}

.tutorial-header {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    transition: all var(--transition-base);
}

.tutorial-header:hover {
    background: var(--gray-50);
}

.tutorial-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tutorial-icon svg {
    width: 28px;
    height: 28px;
}

.tutorial-icon.r-icon {
    background: #F0F4FF;
}

.tutorial-icon.r-icon svg {
    color: #2563EB;
}

.tutorial-icon.python-icon {
    background: #FEF9E7;
}

.tutorial-icon.python-icon svg {
    color: #F7C52D;
}

.tutorial-icon.git-icon {
    background: #FEF2F2;
}

.tutorial-icon.git-icon svg {
    color: #F05032;
}

.tutorial-header-content {
    flex: 1;
    min-width: 0;
}

.tutorial-header-content h3 {
    margin: 0 0 2px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.tutorial-header-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.tutorial-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.tutorial-card.active .tutorial-toggle {
    background: var(--primary);
    color: var(--white);
    transform: rotate(180deg);
}

.tutorial-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.tutorial-card.active .tutorial-content {
    max-height: 2000px;
}

.tutorial-body {
    padding: 0 24px 20px 24px;
    border-top: 1px solid var(--border);
}

.tutorial-topics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
}

@media screen and (max-width: 768px) {
    .tutorial-topics {
        grid-template-columns: 1fr;
    }
}

.tutorial-topic {
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all var(--transition-base);
    text-decoration: none;
}

.tutorial-topic:hover {
    background: var(--unal-green-subtle);
}

.topic-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
}

.topic-link {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.tutorial-topic:hover .topic-link {
    color: var(--primary);
}

/* === ACORDEON ORIGINAL (Tutoriales antiguos) === */
.accordion__item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 8px;
}

.accordion__item:nth-child(odd) > :first-child:not(.accordion__link_active) {
    background: var(--primary);
    color: var(--white);
}

.accordion__link {
    border-radius: var(--radius-lg);
    font-weight: 500;
    padding: 16px 24px;
}

.accordion__link_active {
    background: var(--primary-dark) !important;
    color: var(--white);
}

/* === ANIMACIONES === */
.animate-box {
    opacity: 0;
}

.js .animate-box {
    opacity: 0;
}

/* === SELECCION DE TEXTO === */
::selection {
    background: var(--primary);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary);
    color: var(--white);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* === OFFCANVAS MOBILE === */
body.offcanvas #fh5co-aside {
    background: var(--surface);
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
    .fh5co-feature {
        padding: 24px;
        flex-direction: column;
        text-align: center;
    }

    .fh5co-feature .fh5co-icon {
        margin-bottom: 16px;
    }

    .fh5co-feature .fh5co-text {
        padding-left: 0;
    }

    .tutorial-header {
        padding: 18px 20px;
        gap: 14px;
    }

    .tutorial-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .tutorial-header-content h3 {
        font-size: 16px;
    }

    .tutorial-body {
        padding: 0 20px 20px 20px;
    }
}

/* === GRID PARA ABOUT === */
.fh5co-narrow-content .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media screen and (max-width: 768px) {
    .fh5co-narrow-content .row {
        grid-template-columns: 1fr;
    }
}

.fh5co-narrow-content .row .col-md-6,
.fh5co-narrow-content .row .col-md-4,
.fh5co-narrow-content .row .col-md-3 {
    display: contents;
}

/* === UTILIDADES === */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/* === FEATURES GRID (HOME) === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media screen and (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.feature-card {
    background: var(--surface);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: var(--radius-md);
    background: var(--unal-green-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card .feature-icon i {
    font-size: 24px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* === PROJECTS GRID (TRABAJOS) === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.project-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.project-card .project-img {
    display: block;
    height: 180px;
    overflow: hidden;
}

.project-card .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-card .project-content {
    padding: 20px;
}

.project-card .project-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.project-card .project-content h3 a {
    color: var(--text-primary);
}

.project-card .project-content h3 a:hover {
    color: var(--primary);
}

.project-card .project-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* === MENU HAMBURGUESA MOBILE === */
.fh5co-nav-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    display: none;
    cursor: pointer;
    background: var(--primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.fh5co-nav-toggle i {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}

.fh5co-nav-toggle i::before,
.fh5co-nav-toggle i::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--white);
    transition: all 0.2s ease;
}

.fh5co-nav-toggle i::before {
    top: -6px;
}

.fh5co-nav-toggle i::after {
    top: 6px;
}

.fh5co-nav-toggle:hover {
    background: var(--primary-dark);
}

/* Menu abierto */
.fh5co-nav-toggle.active i {
    background: transparent;
}

.fh5co-nav-toggle.active i::before {
    top: 0;
    transform: rotate(45deg);
}

.fh5co-nav-toggle.active i::after {
    top: 0;
    transform: rotate(-45deg);
}

@media screen and (max-width: 768px) {
    .fh5co-nav-toggle {
        display: block;
    }

    #fh5co-aside {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    body.offcanvas #fh5co-aside {
        transform: translateX(0);
    }

    #fh5co-main {
        width: 100%;
        margin-left: 0;
    }

    #fh5co-main .fh5co-narrow-content {
        padding: 2rem 1.25rem;
    }

    .features-grid {
        gap: 12px;
    }

    .feature-card {
        padding: 20px 16px;
    }

    .feature-card .feature-icon {
        width: 48px;
        height: 48px;
    }

    .feature-card .feature-icon i {
        font-size: 20px;
    }

    .feature-card h3 {
        font-size: 14px;
    }

    .feature-card p {
        font-size: 12px;
    }

    .projects-grid {
        gap: 12px;
    }

    .project-card .project-img {
        height: 150px;
    }

    .project-card .project-content {
        padding: 16px;
    }

    .project-card .project-content h3 {
        font-size: 13px;
    }

    .project-card .project-content p {
        font-size: 12px;
    }
}
