/* ===========================================
   EXTRA LARGE SCREENS (max-width: 1280px)
   =========================================== */

@media (max-width: 1280px) {
    .container {
        max-width: 1200px;
    }

    .hero-container {
        max-height: 700px;
    }

    .content-layout {
        gap: 3rem;
    }
}

/* ===========================================
   LARGE SCREENS (max-width: 1024px)
   =========================================== */

@media (max-width: 1024px) {

    /* LAYOUT */
    .container {
        padding: 0 1.5rem;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .sidebar-content {
        position: static;
    }

    /* HEADER */
    .header-content {
        gap: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        overflow-y: auto;
        transition: right 0.3s ease;
        z-index: 1001;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        padding: 1rem 0;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
        z-index: 1002;
    }

    .menu-toggle.active .hamburger-icon span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }

    .menu-toggle.active .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .hamburger-icon span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }

    .mobile-menu-overlay.active {
        opacity: 1;
    }

    .search-form-container {
        width: 280px;
    }

    /* FOOTER */
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* HERO SECTION */
    .hero-container {
        height: 50vh;
        min-height: 400px;
        max-height: 600px;
    }

    .hero-content {
        max-width: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-excerpt {
        font-size: 1rem;
    }

    /* GRIDS */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ARCHIVE PAGE */
    .archive-header-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .archive-stats {
        justify-self: center;
    }

    .posts-container[data-view="list"] .post-card {
        grid-template-columns: 240px 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .posts-container[data-view="list"] .post-image {
        width: 240px;
        height: 135px;
        min-width: 240px;
    }

    /* CATEGORY PAGE */
    .category-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .category-stats {
        justify-self: center;
        max-width: 500px;
    }

    /* TAG PAGE */
    .tag-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .tag-stats {
        justify-self: center;
        max-width: 500px;
    }

    /* SEARCH PAGE */
    .search-result-item {
        grid-template-columns: 180px 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .result-thumbnail {
        width: 180px;
        height: 110px;
    }

    /* 404 PAGE */
    .error-404-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .error-illustration {
        order: -1;
    }

    .error-message {
        max-width: 100%;
        text-align: center;
    }

    .error-actions {
        justify-content: center;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* SINGLE POST */
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-previous,
    .nav-next {
        text-align: left;
    }

    /* SIDEBAR */
    .sidebar-widgets {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        gap: 1.5rem;
    }

}

/* ===========================================
   TABLET (max-width: 768px)
   =========================================== */

@media (max-width: 768px) {

    /* LAYOUT */
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .site-content {
        margin-top: 70px;
    }

    /* TYPOGRAPHY */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* GRIDS */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid-auto-fit,
    .grid-auto-fill {
        grid-template-columns: 1fr;
    }

    /* BUTTONS */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }

    .btn-sm {
        padding: 0.375rem 0.875rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
    }

    /* HEADER */
    .site-header {
        padding: 0.75rem 0;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .site-logo {
        height: 35px;
    }

    .header-tools {
        gap: 0.5rem;
    }

    .search-toggle,
    .theme-toggle {
        padding: 0.375rem;
    }

    /* Search en móviles/tablets */
    .search-container {
        position: static;
    }

    .search-form-container {
        position: fixed;
        top: 70px;
        left: 1rem;
        right: 1rem;
        width: auto;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 1001;
        transform: translateY(-20px);
    }

    .search-form-container.active {
        transform: translateY(0);
    }

    .search-form {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .search-form input[type="search"] {
        width: 100%;
        padding: 1rem;
        border: none;
        border-radius: var(--border-radius-lg);
        background: transparent;
        margin-bottom: 0;
    }

    .search-form button {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        padding: 0.875rem;
        margin-top: 0.5rem;
        background: var(--accent-purple);
        color: white;
        border-radius: var(--border-radius);
    }

    .search-form button:hover {
        background: #7c3aed;
    }

    /* FOOTER */
    .footer-main {
        padding: 2rem 0 1.5rem;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-widget {
        gap: 1rem;
    }

    .footer-bottom {
        padding: 1rem 0;
    }

    .footer-bottom-content {
        gap: 1rem;
    }

    .copyright p {
        font-size: 0.8125rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
    }

    /* HERO SECTION */
    .hero-section {
        margin-bottom: 3rem;
    }

    .hero-container {
        height: 40vh;
        min-height: 350px;
        border-radius: 0;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-excerpt {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero-meta {
        gap: 0.75rem;
    }

    /* MAIN CONTENT */
    .main-content-area {
        padding: 1.5rem 0 3rem;
    }

    .category-section {
        margin-bottom: 3rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .posts-grid {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* POST CARDS */
    .post-card {
        border-radius: var(--border-radius);
    }

    .post-content {
        padding: 1rem;
        gap: 0.75rem;
    }

    .post-title {
        font-size: 1.125rem;
    }

    .post-meta {
        gap: 0.75rem;
        font-size: 0.8125rem;
    }

    .post-badges {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        gap: 0.25rem;
    }

    .post-badge,
    .post-category {
        font-size: 0.6875rem;
        padding: 0.125rem 0.5rem;
    }

    .post-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* LIST VIEW */
    .posts-container[data-view="list"] .post-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .posts-container[data-view="list"] .post-image {
        grid-column: 1;
        width: 100%;
        height: 200px;
        max-width: none;
        min-width: auto;
    }

    .posts-container[data-view="list"] .post-content {
        grid-column: 1;
        min-height: auto;
        margin-top: 0;
    }

    /* SINGLE POST */
    .post-header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }

    .breadcrumbs {
        font-size: 0.8125rem;
    }

    .post-meta-header {
        gap: 0.5rem;
    }

    .post-meta-info {
        gap: 1.5rem;
    }

    .post-featured-image {
        margin-bottom: 2rem;
    }

    .featured-image-container {
        max-height: 350px;
    }

    .social-share-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .share-buttons {
        /* width: 100%; */
        justify-content: space-between;
    }

    .entry-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .entry-content h2,
    .entry-content h3,
    .entry-content h4 {
        margin: 1.5rem 0 0.75rem;
    }

    .entry-content img {
        margin: 1.5rem 0;
    }

    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }

    .post-tags-section {
        padding: 1.5rem 0;
        margin: 2rem 0;
    }

    .post-navigation {
        padding: 2rem 0;
        margin-top: 3rem;
    }

    .nav-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-previous,
    .nav-next {
        text-align: left;
    }

    .nav-link {
        padding: 1.25rem;
    }

    /* ARCHIVE PAGE */
    .archive-page {
        padding-bottom: 1.5rem;
    }

    .archive-header {
        padding: 2rem 0 1.5rem;
        margin-bottom: 2rem;
    }

    .archive-header-content {
        gap: 1.5rem;
    }

    .archive-stats {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        max-width: 200px;
    }

    .stat-card {
        padding: 1rem 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .archive-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .tools-left {
        justify-content: space-between;
    }

    .tools-right {
        justify-content: space-between;
    }

    .sort-select {
        min-width: auto;
        width: 100%;
    }

    .archive-pagination a,
    .archive-pagination span {
        min-width: 40px;
        height: 40px;
    }

    /* CATEGORY PAGE */
    .category-hero {
        padding: 3rem 0 2rem;
        margin-bottom: 2rem;
    }

    .category-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-width: 200px;
    }

    .stat-card {
        padding: 1rem 0.75rem;
    }

    .category-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .tools-left {
        justify-content: space-between;
    }

    .tools-right {
        justify-content: space-between;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .filters-actions {
        flex-direction: column;
    }

    /* TAG PAGE */
    .tag-hero {
        padding: 3rem 0 2rem;
        margin-bottom: 2rem;
    }

    .tag-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
    }

    .stat-card {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }

    .tag-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .tools-right {
        justify-content: space-between;
    }

    .related-tags-cloud {
        gap: 0.25rem;
    }

    /* SEARCH PAGE */
    .search-header {
        padding: 2rem 0 1.5rem;
        margin-bottom: 2rem;
    }

    .search-title {
        font-size: 1.5rem;
    }

    .search-result-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .result-thumbnail {
        width: 100%;
        height: 200px;
        justify-self: center;
        max-width: 300px;
    }

    .result-title {
        font-size: 1.25rem;
    }

    .result-meta {
        gap: 0.5rem;
    }

    .search-stats {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-submit {
        display: none;
        justify-content: center;
    }

    /* 404 PAGE */
    .error-404-page {
        padding: 3rem 0;
    }

    .error-404-content {
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .error-number {
        font-size: 6rem;
    }

    .number-0 {
        width: 80px;
        height: 80px;
        margin: 0 1rem;
    }

    .error-title {
        font-size: 1.75rem;
    }

    .error-suggestions {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .error-suggestions h3 {
        font-size: 1.125rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-search-form {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }

    .popular-content {
        gap: 3rem;
    }

    .popular-section {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem;
        gap: 1rem;
    }

    .category-icon {
        width: 50px;
        height: 50px;
    }

    .category-name {
        font-size: 1.125rem;
    }

    .recent-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* SIDEBAR */
    .sidebar-widgets {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sidebar-widget {
        padding: 1.25rem;
    }

    .latest-post-item,
    .popular-post-item {
        padding: 0.5rem;
        gap: 0.75rem;
    }

    .latest-post-item .post-thumbnail {
        width: 70px;
        height: 50px;
    }

    .popular-post-item .post-thumbnail {
        width: 50px;
        height: 35px;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .newsletter-form .form-group {
        gap: 0.5rem;
    }

    /* NOTIFICATIONS */
    .notification {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    /* MODALS */
    .search-form-container {
        width: calc(100% - 2rem);
    }
}

/* ===========================================
   MOBILE (max-width: 480px)
   =========================================== */

@media (max-width: 480px) {

    /* LAYOUT */
    .container {
        padding: 0 0.75rem;
    }

    /* TYPOGRAPHY */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* BUTTONS */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    /* HEADER */
    .site-logo {
        height: 30px;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .nav-menu {
        width: 100%;
        right: -100%;
    }

    /* FOOTER */
    .footer-main {
        padding: 1.5rem 0 1rem;
    }

    .footer-widget {
        gap: 1rem;
    }

    .footer-social {
        flex-wrap: wrap;
    }

    .footer-social .social-link {
        width: 35px;
        height: 35px;
    }

    /* HERO */
    .hero-container {
        min-height: 300px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-excerpt {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .hero-meta {
        gap: 0.5rem;
    }

    .hero-category {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.5rem;
    }

    /* POST CARDS */
    .post-image {
        aspect-ratio: 16/9;
    }

    .post-content {
        padding: 0.875rem;
    }

    .post-title {
        font-size: 1rem;
    }

    .post-meta {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .post-badges {
        gap: 0.25rem;
    }

    /* SINGLE POST */
    .post-header {
        padding: 1rem 0;
    }

    .post-meta-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .post-meta-info {
        gap: 1rem;
    }

    .featured-image-container {
        max-height: 250px;
    }

    .share-buttons {
        gap: 0.375rem;
    }

    .share-btn {
        width: 35px;
        height: 35px;
    }

    .entry-content {
        font-size: 0.9375rem;
    }

    .entry-content h2,
    .entry-content h3 {
        font-size: 1.25rem;
    }

    .author-bio {
        padding: 1rem;
    }

    .author-avatar img {
        width: 50px;
        height: 50px;
    }

    .post-tags {
        gap: 0.375rem;
    }

    .tag-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    /* ARCHIVE */
    .archive-header {
        padding: 1.5rem 0 1rem;
    }

    .archive-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .archive-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .archive-controls {
        padding: 0.75rem;
    }

    .posts-grid {
        gap: 1.25rem;
    }

    /* CATEGORY */
    .category-hero {
        padding: 2rem 0 1.5rem;
    }

    .category-title {
        font-size: 2rem;
    }

    .category-stats {
        max-width: 100%;
    }

    .tools-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .tools-right {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .sort-dropdown {
        min-width: auto;
        width: 100%;
    }

    .empty-category-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .load-more-btn {
        min-width: auto;
    }

    /* TAG */
    .tag-hero {
        padding: 2rem 0 1.5rem;
    }

    .tag-title {
        font-size: 2rem;
    }

    .tag-stats {
        max-width: 100%;
    }

    .tools-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .tools-right {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .sort-select {
        min-width: auto;
        width: 100%;
    }

    .view-options {
        align-self: center;
    }

    .empty-tag-actions {
        flex-direction: column;
        align-items: stretch;
    }

    /* SEARCH */
    .search-title {
        font-size: 1.25rem;
    }

    .search-result-item {
        padding: 1rem;
    }

    .result-title {
        font-size: 1.125rem;
    }

    .result-meta {
        gap: 0.5rem;
    }

    /* 404 */
    .error-404-page {
        padding: 2rem 0;
    }

    .error-number {
        font-size: 4rem;
    }

    .number-0 {
        width: 60px;
        height: 60px;
        margin: 0 0.5rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-description {
        font-size: 1rem;
    }

    .error-suggestions {
        padding: 1rem;
    }

    .error-suggestions li {
        padding: 0.5rem 0;
    }

    .popular-section {
        padding: 1.5rem 1rem;
    }

    .category-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }

    .category-icon {
        width: 60px;
        height: 60px;
    }

    /* SIDEBAR */
    .widget-title {
        font-size: 1.125rem;
    }

    .latest-post-item .post-thumbnail {
        width: 60px;
        height: 45px;
    }

    .popular-post-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-rank {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
    }

    .popular-post-item .post-thumbnail {
        width: 100%;
        height: 120px;
    }

    .tags-cloud {
        gap: 0.375rem;
    }

    .tag-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }

    /* PAGINATION */
    .archive-pagination a,
    .archive-pagination span,
    .category-pagination a,
    .category-pagination span,
    .tag-pagination a,
    .tag-pagination span,
    .search-pagination a,
    .search-pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0 0.5rem;
        font-size: 0.8125rem;
    }

    /* FORMS */
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="password"],
    input[type="url"],
    input[type="number"],
    textarea,
    select {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    /* UTILITIES */
    .hide-mobile {
        display: none !important;
    }
}

/* ===========================================
   EXTRA SMALL (max-width: 360px)
   =========================================== */

@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .error-number {
        font-size: 3rem;
    }

    .number-0 {
        width: 50px;
        height: 50px;
    }

    .category-title,
    .tag-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.6875rem;
    }
}

/* ===========================================
   LANDSCAPE MODE (MOBILE)
   =========================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero-container {
        height: 80vh;
        min-height: 350px;
    }

    .error-404-page {
        min-height: auto;
    }

    .nav-menu {
        padding: 4rem 2rem 2rem;
    }
}

/* ===========================================
   PRINT STYLES
   =========================================== */

@media print {

    .site-header,
    .site-footer,
    .nav-menu,
    .header-tools,
    .social-share-top,
    .share-buttons,
    .post-navigation,
    .sidebar-content,
    .back-to-top,
    .notification,
    .search-form-container,
    .mobile-menu-overlay {
        display: none !important;
    }

    .site-content {
        margin-top: 0;
    }

    .entry-content {
        font-size: 12pt;
        line-height: 1.5;
    }

    .entry-content a {
        text-decoration: underline;
        color: #000;
    }

    .entry-content a::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}

/* Ocultar hamburguesa en desktop */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none !important;
    }
}

/* Mostrar hamburguesa en móvil */
@media (max-width: 1024px) {

    /* Mover el botón antes del logo */
    .main-navigation {
        order: -1;
    }

    /* Botón hamburguesa */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        color: var(--text-primary);
        z-index: 1002;
    }

    /* Ícono de 3 líneas */
    .hamburger-icon {
        display: flex;
        flex-direction: column;
        width: 24px;
        height: 18px;
        justify-content: space-between;
    }

    .hamburger-icon span {
        width: 100%;
        height: 3px;
        background: currentColor;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Animación X cuando está abierto */
    .menu-toggle.active .hamburger-icon span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .hamburger-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}


/* ===========================================
   REDUCED MOTION
   =========================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}