:root {
    /* Colores de estilo de borde animado */
    --menurock3-border-gradient-start: #ff417d;
    --menurock3-border-gradient-end: #ff6b35;
    --menurock3-border-animation-duration: 2s;
    --menurock3-color-letras: #FF417D;
    --menurock3-color-diccionario: #FF6B35;
    --menurock3-color-recursos: #00B4D8;
    --menurock3-color-blog: #20B05E;
    --menurock3-color-logout: #ff4747;
    
    --menurock3-primary: #ff6b35;
    --menurock3-bg-dark: #121212;
    --menurock3-bg-darker: #080808;
    --menurock3-bg-menu: rgba(0, 0, 0, 0.95);
    --menurock3-text-light: #ffffff;
    --menurock3-card-bg: #1e1e1e;
    --menurock3-card-hover: #2a2a2a;
    --menurock3-transition: 0.3s ease;
    
    /* Nuevas variables para mejorar consistencia */
    --menurock3-mobile-tab-size: 44px;
    --menurock3-mobile-indicator-size: 8px;
    --menurock3-mobile-indicator-active-size: 16px;
    --menurock3-mobile-nav-button-size: 44px;
    --menurock3-mobile-bottom-height: 70px;
    --menurock3-focus-outline-color: rgba(255, 255, 255, 0.5);
    --menurock3-mobile-tab-padding: 12px 8px;
    --menurock3-mobile-tab-spacing: 8px;
}

.menurock3-login-container,
.menurock3-logout-container {
    margin-top: 10px;
}

.menurock3-menu-container {
    font-family: 'Segoe UI', Arial, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 99999;
    pointer-events: none;
}

.menurock3-menu-container *,
.menurock3-menu-container *:before,
.menurock3-menu-container *:after {
    box-sizing: border-box;
}

.menurock3-toggle-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: black;
    border: 2px solid white;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100001;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    transition: background-color 0.3s ease, border-width 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
}

.menurock3-toggle-button.toggle-circle {
    border-radius: 50% !important;
    overflow: hidden;
}

.menurock3-toggle-button.toggle-transparent {
    background-color: transparent !important;
}

.menurock3-toggle-button:hover {
    background-color: #222;
}

.menurock3-toggle-icon {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.menurock3-toggle-icon.toggle-icon-small {
    font-size: 1rem;
}

.menurock3-toggle-icon.toggle-icon-normal {
    font-size: 1.5rem;
}

.menurock3-toggle-icon.toggle-icon-large {
    font-size: 1.8rem;
}

.menurock3-toggle-icon.toggle-icon-xlarge {
    font-size: 2.2rem;
}

.menurock3-toggle-icon-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menurock3-toggle-icon-close {
    display: none;
    align-items: center;
    justify-content: center;
}

.menurock3-menu-container.open .menurock3-toggle-icon-open {
    display: none;
}

.menurock3-menu-container.open .menurock3-toggle-icon-close {
    display: flex;
}

.menurock3-menu-container.open .menurock3-toggle-icon {
    transform: rotate(45deg);
}

.menurock3-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;
    background-color: var(--menurock3-bg-menu);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    pointer-events: auto;
    transition: transform 0.5s cubic-bezier(0, 0.55, 0.45, 1);
}

.menurock3-menu-container.open .menurock3-menu-panel {
    transform: translateX(0);
}

.menurock3-menu-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    padding-top: 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.menurock3-tab-button {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    background: transparent;
    color: var(--menurock3-text-light);
    border: none;
    cursor: pointer;
    transition: all var(--menurock3-transition);
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.menurock3-tab-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menurock3-tab-emoji {
    margin-right: 5px;
}

.menurock3-tab-container {
    position: relative;
    margin-bottom: 0.5rem;
}

.menurock3-submenu-indicator {
    margin-left: 5px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.menurock3-tab-container.open .menurock3-submenu-indicator {
    transform: rotate(180deg);
}

.menurock3-submenu {
    display: none;
    position: relative;
    left: 0;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    flex-direction: column;
    gap: 0.3rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.menurock3-tab-container.open .menurock3-submenu {
    display: flex;
}

.menurock3-submenu-button {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--menurock3-text-light);
    border: none;
    cursor: pointer;
    transition: all var(--menurock3-transition);
    text-align: left;
    display: flex;
    align-items: center;
}

.menurock3-submenu-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menurock3-submenu-button.active {
    background-color: var(--menurock3-primary);
    color: white;
}

.menurock3-tab-button.active[data-tab="letras"] {
    background-color: var(--menurock3-color-letras);
    color: white;
}

.menurock3-tab-button.active[data-tab="diccionario"] {
    background-color: var(--menurock3-color-diccionario);
    color: white;
}

.menurock3-tab-button.active[data-tab="recursos"] {
    background-color: var(--menurock3-color-recursos);
    color: white;
}

.menurock3-tab-button.active[data-tab="blog"] {
    background-color: var(--menurock3-color-blog);
    color: white;
}

.menurock3-logout-button {
    color: var(--menurock3-color-logout);
    background: transparent;
    border: none;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color var(--menurock3-transition);
}

.menurock3-logout-button:hover {
    color: #ff7070;
}

.menurock3-tab-icon {
    margin-right: 0.3rem;
}

.menurock3-icon-book:before {
    content: "\1F4D6";
}

.menurock3-icon-music:before {
    content: "\1F3B5";
}

.menurock3-icon-pen:before {
    content: "\1F58A";
}

.menurock3-icon-user:before {
    content: "\1F464";
}

.menurock3-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.menurock3-content-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Adaptación de contenido mejorada */
.menurock3-content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Base de contenedores para adaptación de margen */
body.menurock3-margin-mode {
    transition: margin-right 0.5s cubic-bezier(0, 0.55, 0.45, 1);
    overflow-x: hidden;
}

body.menurock3-menu-open {
    overflow-x: hidden;
}

body.menurock3-margin-mode #menurock3-scroll-container {
    overflow-x: hidden;
}

/* Mejoras para escalabilidad */
body.menurock3-scale-mode #menurock3-page-wrapper,
body.menurock3-scale-mode #page,
body.menurock3-scale-mode #main,
body.menurock3-scale-mode #content,
body.menurock3-scale-mode #wrapper,
body.menurock3-scale-mode .site-content,
body.menurock3-scale-mode .content-area,
body.menurock3-scale-mode main.site-main {
    transform-origin: left center;
    transition: transform 0.5s cubic-bezier(0, 0.55, 0.45, 1), margin 0.5s cubic-bezier(0, 0.55, 0.45, 1);
}

#menurock3-tab-letras .menurock3-section-title {
    color: var(--menurock3-color-letras);
}

#menurock3-tab-diccionario .menurock3-section-title {
    color: var(--menurock3-color-diccionario);
}

#menurock3-tab-recursos .menurock3-section-title {
    color: var(--menurock3-color-recursos);
}

#menurock3-tab-blog .menurock3-section-title {
    color: var(--menurock3-color-blog);
}

.menurock3-section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.menurock3-letras-grid {
    display: grid;
    gap: 1rem;
}

.menurock3-letra-card {
    background-color: var(--menurock3-card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--menurock3-transition);
}

.menurock3-letra-card:hover {
    background-color: var(--menurock3-card-hover);
}

.menurock3-letra-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--menurock3-color-letras);
    margin-bottom: 0.5rem;
}

.menurock3-letra-preview {
    color: rgba(255, 255, 255, 0.7);
}

.menurock3-diccionario-container {
    background-color: var(--menurock3-card-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

.menurock3-search-input {
    width: 100%;
    padding: 1rem;
    background-color: var(--menurock3-card-hover);
    border: none;
    border-radius: 8px;
    color: white;
    margin-bottom: 1rem;
}

.menurock3-diccionario-results {
    min-height: 200px;
    text-align: center;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.menurock3-posts-grid,
.menurock3-pages-grid {
    display: grid;
    gap: 1rem;
}

/* Base styles for all cards */
.menurock3-post-card,
.menurock3-page-card {
    background-color: var(--menurock3-card-bg);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--menurock3-transition);
    
    /* Variables de personalización para las tarjetas */
    --card-image-height: 180px;
    --card-border-radius: 8px;
    --card-title-position: below; /* below, overlay, inside */
    --card-meta-position: bottom; /* bottom, top, alongside */
    --card-meta-style: compact; /* compact, full, minimal */
}

/* Standard card style */
.card-style-standard .menurock3-post-card,
.card-style-standard .menurock3-page-card {
    display: flex;
    padding: 1rem;
}

.card-style-standard .menurock3-post-card:hover,
.card-style-standard .menurock3-page-card:hover {
    background-color: var(--menurock3-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-style-standard .menurock3-post-image-container {
    margin-right: 1rem;
}

.card-style-standard .menurock3-post-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    background-color: var(--menurock3-card-hover);
}

/* Zoom card style */
.card-style-zoom .menurock3-post-card,
.card-style-zoom .menurock3-page-card {
    display: flex;
    flex-direction: column;
}

.card-style-zoom .menurock3-post-image-container {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 180px;
}

.card-style-zoom .menurock3-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-style-zoom .menurock3-post-card:hover .menurock3-post-image,
.card-style-zoom .menurock3-page-card:hover .menurock3-post-image {
    transform: scale(1.15);
}

.card-style-zoom .menurock3-post-info {
    padding: 1rem;
}

/* Overlay card style */
.card-style-overlay .menurock3-post-card,
.card-style-overlay .menurock3-page-card {
    position: relative;
    height: 200px;
}

.card-style-overlay .menurock3-post-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-style-overlay .menurock3-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-style-overlay .menurock3-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    padding: 1.5rem 1rem 1rem;
    transform: translateY(30%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.card-style-overlay .menurock3-post-title {
    color: white !important;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.card-style-overlay .menurock3-post-card:hover .menurock3-post-overlay,
.card-style-overlay .menurock3-page-card:hover .menurock3-post-overlay {
    transform: translateY(0);
}

/* 3D card style */
.card-style-3d .menurock3-post-card,
.card-style-3d .menurock3-page-card {
    display: flex;
    flex-direction: column;
    perspective: 1000px;
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-style-3d .menurock3-post-image-container {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 180px;
}

.card-style-3d .menurock3-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-style-3d .menurock3-post-info {
    padding: 1rem;
}

.card-style-3d .menurock3-post-card:hover,
.card-style-3d .menurock3-page-card:hover {
    transform: rotateX(5deg) rotateY(5deg) scale(1.02);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.3);
}

/* Animated border card style */
.card-style-animated-border .menurock3-post-card,
.card-style-animated-border .menurock3-page-card {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 4px;
    padding: 0;
    border-radius: 10px;
    background-color: var(--menurock3-card-bg);
    overflow: hidden;
    isolation: isolate;
}

.card-style-animated-border .menurock3-post-card::before,
.card-style-animated-border .menurock3-page-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: linear-gradient(90deg, var(--menurock3-border-gradient-start), var(--menurock3-border-gradient-end), var(--menurock3-border-gradient-start));
    background-size: 200% 100%;
    border-radius: 12px;
    animation: border-animation var(--menurock3-border-animation-duration) linear infinite;
}

.card-style-animated-border .menurock3-post-card .menurock3-post-image-container,
.card-style-animated-border .menurock3-page-card .menurock3-post-image-container {
    border-radius: 8px 8px 0 0;
    height: 180px;
    overflow: hidden;
}

.card-style-animated-border .menurock3-post-card .menurock3-post-image,
.card-style-animated-border .menurock3-page-card .menurock3-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-style-animated-border .menurock3-post-card:hover .menurock3-post-image,
.card-style-animated-border .menurock3-page-card:hover .menurock3-post-image {
    transform: scale(1.1);
}

.card-style-animated-border .menurock3-post-info {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glow card style */
.card-style-glow .menurock3-post-card,
.card-style-glow .menurock3-page-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--menurock3-card-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card-style-glow .menurock3-post-card::after,
.card-style-glow .menurock3-page-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 20px 5px transparent;
    border-radius: 10px;
    transition: box-shadow 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.card-style-glow .menurock3-post-card:hover::after,
.card-style-glow .menurock3-page-card:hover::after {
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.2);
}

.card-style-glow .menurock3-post-card .menurock3-post-image-container,
.card-style-glow .menurock3-page-card .menurock3-post-image-container {
    border-radius: 10px 10px 0 0;
    height: 180px;
    overflow: hidden;
}

.card-style-glow .menurock3-post-card .menurock3-post-image,
.card-style-glow .menurock3-page-card .menurock3-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.card-style-glow .menurock3-post-card:hover .menurock3-post-image,
.card-style-glow .menurock3-page-card:hover .menurock3-post-image {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.card-style-glow .menurock3-post-info {
    padding: 1rem;
    position: relative;
    z-index: 2;
}

/* Reveal card style */
.card-style-reveal .menurock3-post-card,
.card-style-reveal .menurock3-page-card {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.card-style-reveal .menurock3-post-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.card-style-reveal .menurock3-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-style-reveal .menurock3-post-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0) 100%);
    transform: translateY(70%);
    transition: transform 0.6s ease;
    z-index: 2;
}

.card-style-reveal .menurock3-post-card:hover .menurock3-post-info,
.card-style-reveal .menurock3-page-card:hover .menurock3-post-info {
    transform: translateY(0);
}

.card-style-reveal .menurock3-post-title {
    color: white !important;
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0.8;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.card-style-reveal .menurock3-post-excerpt {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s 0.1s ease, opacity 0.6s 0.1s ease;
}

.card-style-reveal .menurock3-post-card:hover .menurock3-post-title,
.card-style-reveal .menurock3-page-card:hover .menurock3-post-title {
    transform: translateY(0);
    opacity: 1;
}

.card-style-reveal .menurock3-post-card:hover .menurock3-post-excerpt,
.card-style-reveal .menurock3-page-card:hover .menurock3-post-excerpt {
    transform: translateY(0);
    opacity: 0.9;
}

/* Trace card style with SVG border animation */
.card-style-trace .menurock3-post-card,
.card-style-trace .menurock3-page-card {
    position: relative;
    padding: 4px;
    background-color: var(--menurock3-card-bg);
    border-radius: 10px;
    overflow: hidden;
}

.card-style-trace .menurock3-post-card-inner,
.card-style-trace .menurock3-page-card-inner {
    position: relative;
    background-color: var(--menurock3-card-bg);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

.card-style-trace .menurock3-post-svg-border,
.card-style-trace .menurock3-page-svg-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    z-index: 0;
    pointer-events: none;
}

.card-style-trace .menurock3-post-card:hover .menurock3-post-svg-border path,
.card-style-trace .menurock3-page-card:hover .menurock3-post-svg-border path {
    animation: strokeAnimation 2s ease-in-out forwards;
}

.card-style-trace .menurock3-post-image-container {
    height: 180px;
    overflow: hidden;
}

.card-style-trace .menurock3-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-style-trace .menurock3-post-card:hover .menurock3-post-image,
.card-style-trace .menurock3-page-card:hover .menurock3-post-image {
    transform: scale(1.05);
}

.card-style-trace .menurock3-post-info {
    padding: 1rem;
}

@keyframes strokeAnimation {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes border-animation {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Nuevos estilos de tarjeta */

/* Efecto Parallax */
.card-style-parallax .menurock3-post-card,
.card-style-parallax .menurock3-page-card {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    perspective: 1500px;
}

.card-style-parallax .menurock3-post-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform-style: preserve-3d;
}

.card-style-parallax .menurock3-post-image {
    width: 110%;
    height: 110%;
    object-fit: cover;
    position: absolute;
    top: -5%;
    left: -5%;
}

.card-style-parallax .menurock3-post-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 2;
    transform-style: preserve-3d;
}

.card-style-parallax .menurock3-post-title {
    color: white !important;
    margin-bottom: 0.5rem;
    transform: translateZ(20px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Efecto Morph */
.card-style-morph .menurock3-post-card,
.card-style-morph .menurock3-page-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: border-radius 0.6s ease-in-out;
}

.card-style-morph .menurock3-post-image-container {
    height: 180px;
    overflow: hidden;
    transition: height 0.6s ease-in-out;
}

.card-style-morph .menurock3-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-in-out;
}

.card-style-morph .menurock3-post-info {
    padding: 1.2rem;
    background-color: var(--menurock3-card-bg);
    transition: background-color 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.card-style-morph .menurock3-post-card:hover,
.card-style-morph .menurock3-page-card:hover {
    border-radius: 20px;
}

.card-style-morph .menurock3-post-card:hover .menurock3-post-image-container,
.card-style-morph .menurock3-page-card:hover .menurock3-post-image-container {
    height: 200px;
}

.card-style-morph .menurock3-post-card:hover .menurock3-post-image,
.card-style-morph .menurock3-page-card:hover .menurock3-post-image {
    transform: scale(1.1) rotate(2deg);
}

/* Efecto Text Split */
.card-style-text-split .menurock3-post-card,
.card-style-text-split .menurock3-page-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--menurock3-card-bg);
}

.card-style-text-split .menurock3-post-image-container {
    height: 180px;
    overflow: hidden;
}

.card-style-text-split .menurock3-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-style-text-split .menurock3-post-info {
    padding: 1.2rem;
    position: relative;
}

.card-style-text-split .menurock3-post-title {
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.card-style-text-split .menurock3-post-title .letter {
    display: inline-block;
    position: relative;
}

/* Efecto Cinemático */
.card-style-cinematic .menurock3-post-card,
.card-style-cinematic .menurock3-page-card {
    position: relative;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #000;
}

.card-style-cinematic .menurock3-post-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-style-cinematic .menurock3-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.2);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.card-style-cinematic .menurock3-post-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(0);
    transition: transform 0.6s ease;
    z-index: 2;
}

.card-style-cinematic .menurock3-post-title {
    color: #fff !important;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    position: relative;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.card-style-cinematic .menurock3-post-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--menurock3-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease 0.2s;
}

.card-style-cinematic .menurock3-post-excerpt {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.card-style-cinematic .menurock3-post-card:hover .menurock3-post-image,
.card-style-cinematic .menurock3-page-card:hover .menurock3-post-image {
    transform: scale(1.05);
    filter: brightness(0.9) contrast(1.1);
}

.card-style-cinematic .menurock3-post-card:hover .menurock3-post-title::after,
.card-style-cinematic .menurock3-page-card:hover .menurock3-post-title::after {
    transform: scaleX(1);
}

.card-style-cinematic .menurock3-post-card:hover .menurock3-post-excerpt,
.card-style-cinematic .menurock3-page-card:hover .menurock3-post-excerpt {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto Floating */
.card-style-floating .menurock3-post-card,
.card-style-floating .menurock3-page-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background-color: var(--menurock3-card-bg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card-style-floating .menurock3-post-card::before,
.card-style-floating .menurock3-page-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.card-style-floating .menurock3-post-image-container {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-style-floating .menurock3-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-style-floating .menurock3-post-info {
    padding: 1.2rem;
    position: relative;
    z-index: 2;
}

.card-style-floating .menurock3-post-card:hover,
.card-style-floating .menurock3-page-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.card-style-floating .menurock3-post-card:hover::before,
.card-style-floating .menurock3-page-card:hover::before {
    opacity: 1;
}

.card-style-floating .menurock3-post-card:hover .menurock3-post-image,
.card-style-floating .menurock3-page-card:hover .menurock3-post-image {
    transform: scale(1.05);
}

.menurock3-post-info {
    flex: 1;
}

#menurock3-tab-letras .menurock3-post-title {
    color: var(--menurock3-color-letras);
}

#menurock3-tab-recursos .menurock3-post-title {
    color: var(--menurock3-color-recursos);
}

#menurock3-tab-blog .menurock3-post-title {
    color: var(--menurock3-color-blog);
}

.menurock3-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.menurock3-post-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.menurock3-post-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menurock3-post-viewer.active {
    opacity: 1;
    pointer-events: auto;
}

.menurock3-post-viewer-content {
    background-color: var(--menurock3-bg-dark);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    position: relative;
    padding: 2rem;
    overflow-y: auto;
}

.menurock3-post-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.menurock3-post-content {
    color: white;
}

.menurock3-post-actions {
    margin-top: 2rem;
    text-align: center;
}

.menurock3-view-full {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--menurock3-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color var(--menurock3-transition);
}

.menurock3-view-full:hover {
    background-color: #ff8255;
}

.menurock3-url-container {
    background-color: var(--menurock3-card-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.menurock3-url-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--menurock3-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color var(--menurock3-transition);
}

.menurock3-url-button:hover {
    background-color: #ff8255;
}

.menurock3-iframe-container {
    width: 100%;
    padding: 1rem;
    background-color: var(--menurock3-card-bg);
    border-radius: 8px;
}

.menurock3-iframe-container iframe {
    width: 100%;
    border: none;
    border-radius: 4px;
    background-color: white;
}

.menurock3-loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

#menurock3-content-area {
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
    position: relative;
    z-index: 1;
}

#menurock3-content-area.active {
    display: block;
}

/* Arreglo para el modo de adaptación Márgen */
body.menurock3-margin-mode #menurock3-content-area {
    transition: margin-right 0.5s cubic-bezier(0, 0.55, 0.45, 1);
}

#menurock3-content-area.loading {
    background-image: linear-gradient(90deg, #f0f0f0, #f8f8f8, #f0f0f0);
    background-size: 200% 100%;
    animation: loading-pulse 1.5s infinite;
}

@keyframes loading-pulse {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: -200% 0%;
    }
}

@media (max-width: 1024px) {
    .menurock3-menu-tabs {
        padding: 1.5rem;
        padding-top: 4rem;
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }
    
    .menurock3-tab-button, 
    .menurock3-logout-button,
    .menurock3-login-button {
        font-size: 0.875rem;
    }
}

/* Estilos para los metadatos de posts */
.menurock3-post-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.menurock3-post-meta .post-date,
.menurock3-post-meta .post-author {
    display: flex;
    align-items: center;
}

.menurock3-post-meta .meta-icon {
    margin-right: 5px;
    opacity: 0.7;
}

/* Estilos para la navegación móvil tipo carrusel */
.menurock3-mobile-tabs-container {
    display: flex; /* Cambiado de 'none' a 'flex' para asegurar visibilidad */
    opacity: 1; /* Siempre visible */
    transform: translateY(0); /* Sin desplazamiento inicial */
    transition: opacity 0.3s ease, transform 0.3s ease;
    height: var(--menurock3-mobile-bottom-height);
    flex-direction: row;
    align-items: center;
    z-index: 100010; /* Z-index alto para asegurar visibilidad */
}

/* Estilos específicos cuando el menú está abierto */
.menurock3-menu-container.open .menurock3-mobile-tabs-container {
    /* Ya no necesitamos cambiar la transformación u opacidad, ahora siempre están visibles */
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .menurock3-menu-panel {
        width: 100%;
        height: calc(100vh - var(--menurock3-mobile-bottom-height));
    }
    
    .menurock3-menu-tabs {
        display: none;
    }
    
    .menurock3-mobile-tabs-container {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--menurock3-bg-darker);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 100010;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
        align-items: center;
        justify-content: center;
        /* Soporte para borde inferior en iPhone X+ */
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    
    /* Botones de navegación del carrusel - mejorados para táctil */
    .menurock3-carousel-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.9); /* Mejorar contraste */
        background: transparent;
        border: none;
        cursor: pointer;
        width: var(--menurock3-mobile-nav-button-size);
        height: var(--menurock3-mobile-nav-button-size);
        font-size: 18px; /* Aumentar tamaño de ícono */
        z-index: 2;
        transition: all 0.3s ease;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1); /* Mejorar visibilidad */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .menurock3-carousel-nav:focus {
        outline: 2px solid var(--menurock3-focus-outline-color);
        outline-offset: 2px;
    }
    
    .menurock3-carousel-nav:hover {
        color: white;
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .menurock3-carousel-nav.disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
    
    /* Contenedor de pestañas móviles - optimizado para desplazamiento suave */
    .menurock3-mobile-tabs-overflow {
        width: calc(100% - (var(--menurock3-mobile-nav-button-size) * 2 + 10px));
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 5px;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory; /* Mejorar alineación al desplazar */
        padding: 4px 0;
    }
    
    .menurock3-mobile-tabs-overflow::-webkit-scrollbar {
        display: none;
    }
    
    .menurock3-mobile-tabs {
        display: flex;
        padding: 0 10px;
        margin: 0;
        gap: var(--menurock3-mobile-tab-spacing);
        height: 100%;
        align-items: center;
    }
    
    /* Pestañas móviles del carrusel - optimizadas para accesibilidad táctil */
    .menurock3-mobile-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: rgba(255, 255, 255, 0.7);
        border: none;
        padding: var(--menurock3-mobile-tab-padding);
        border-radius: 12px;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.3s ease;
        cursor: pointer;
        min-width: 80px;
        min-height: var(--menurock3-mobile-tab-size); /* Garantizar área táctil mínima */
        text-align: center;
        position: relative;
        touch-action: manipulation; /* Mejorar respuesta táctil */
        -webkit-tap-highlight-color: transparent; /* Eliminar destacado al tocar en iOS */
        margin: 0;
    }
    
    /* Estado de enfoque para accesibilidad */
    .menurock3-mobile-tab:focus {
        outline: 2px solid var(--menurock3-focus-outline-color);
        outline-offset: 2px;
    }
    
    .menurock3-mobile-tab.active {
        color: white;
        background-color: rgba(255, 255, 255, 0.15); /* Mejorar contraste para estado activo */
        font-weight: 600; /* Destacar tab activo */
    }
    
    .menurock3-mobile-tab-icon {
        margin-bottom: 6px;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 22px; /* Asegurar altura consistente */
    }
    
    /* Mejora del feedback táctil */
    .menurock3-mobile-tab:active {
        transform: scale(0.96);
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Indicador de pestaña activa - mejorado para visibilidad */
    .menurock3-mobile-tab-indicator {
        position: absolute;
        bottom: -2px;
        left: 25%;
        width: 50%;
        height: 3px;
        border-radius: 3px;
        transition: all 0.3s ease;
        opacity: 0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Sombra sutil para destacar */
    }
    
    .menurock3-mobile-tab.active .menurock3-mobile-tab-indicator {
        opacity: 1;
    }
    
    /* Indicadores de posición en el carrusel - mejorados para visibilidad */
    .menurock3-carousel-indicators {
        position: absolute;
        bottom: 3px;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: var(--menurock3-mobile-tab-spacing);
        padding: 4px 0;
    }
    
    .menurock3-carousel-indicator {
        width: var(--menurock3-mobile-indicator-size);
        height: var(--menurock3-mobile-indicator-size);
        background-color: rgba(255, 255, 255, 0.4); /* Mejor contraste */
        border-radius: 50%;
        display: block;
        transition: all 0.3s ease;
        position: relative;
    }
    
    /* Aumentar área táctil manteniendo apariencia visual */
    .menurock3-carousel-indicator::before {
        content: "";
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
    
    .menurock3-carousel-indicator.active {
        width: var(--menurock3-mobile-indicator-active-size);
        border-radius: 4px;
        background-color: var(--menurock3-primary);
    }
    
    /* Estilo tipo Rockstar Games */
    .menurock3-mobile-tab::after {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 50%;
        width: 0;
        height: 3px;
        transform: translateX(-50%);
        background-color: var(--menurock3-primary);
        transition: width 0.3s ease;
        border-radius: 3px;
    }
    
    .menurock3-mobile-tab.active::after {
        width: 50%;
    }
    
    .menurock3-post-image {
        width: 80px;
        height: 60px;
    }
    
    .menurock3-section-title {
        font-size: 1.5rem;
    }
    
    .menurock3-menu-content {
        padding: 1rem;
        padding-bottom: calc(var(--menurock3-mobile-bottom-height) + 15px); /* Espaciado adicional para el menú inferior */
    }

    /* Ajustes para los estilos de las tarjetas en móvil */
    .menurock3-posts-grid,
    .menurock3-pages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Tarjetas Reveal en móvil */
    .card-style-reveal .menurock3-post-info {
        transform: translateY(65%);
    }
    
    /* Tarjetas Trace en móvil */
    .card-style-trace .menurock3-post-card,
    .card-style-trace .menurock3-page-card {
        margin-bottom: 5px;
    }

    /* Modo de menú abierto - ajustes para soporte táctil */
    .menurock3-menu-container.open .menurock3-menu-panel {
        height: calc(100vh - var(--menurock3-mobile-bottom-height)); /* Permitir espacio para la navegación inferior */
        top: 0;
    }
    
    .menurock3-menu-container.open .menurock3-mobile-tabs-container {
        bottom: 0;
    }
    
    .menurock3-toggle-button {
        top: 15px;
        right: 15px;
        z-index: 200000;
    }
    
    /* Visualización de una sola columna en móvil para posts y páginas */
    .menurock3-posts-grid,
    .menurock3-pages-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Optimizaciones de scroll para evitar conflictos con la interfaz del menú */
    .menurock3-content-section {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
}

/* Soporte para modos oscuro/claro */
@media (prefers-color-scheme: dark) {
    #menurock3-content-area {
        background-color: #222;
        color: #f0f0f0;
    }
}

/* Soporte mejorado para orientaciones */
.menurock3-mobile-tabs-container.portrait-mode {
    height: calc(var(--menurock3-mobile-bottom-height) + env(safe-area-inset-bottom, 0px));
}

.menurock3-mobile-tabs-container.portrait-mode .menurock3-mobile-tabs {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Soporte para navegación por teclado */
.menurock3-tab-button:focus-visible,
.menurock3-submenu-button:focus-visible,
.menurock3-mobile-tab:focus-visible,
.menurock3-carousel-nav:focus-visible {
    outline: 2px solid var(--menurock3-focus-outline-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.menurock3-mobile-tab[data-action]:focus-visible {
    outline-color: var(--menurock3-color-logout);
}

/* Forzar estilos para "Desactivar adaptación en vertical" en móviles */
@media (max-width: 768px) and (orientation: portrait) {
    body.menurock3-disable-adapt-portrait.menurock3-menu-open {
        overflow: hidden !important;
        position: fixed !important; /* Bloquear completamente el scroll del body */
        width: 100% !important;
        height: 100% !important;
    }
    
    body.menurock3-disable-adapt-portrait.menurock3-menu-open #menurock3-scroll-container,
    body.menurock3-disable-adapt-portrait.menurock3-menu-open #page,
    body.menurock3-disable-adapt-portrait.menurock3-menu-open #main,
    body.menurock3-disable-adapt-portrait.menurock3-menu-open #content,
    body.menurock3-disable-adapt-portrait.menurock3-menu-open #wrapper,
    body.menurock3-disable-adapt-portrait.menurock3-menu-open .site-content,
    body.menurock3-disable-adapt-portrait.menurock3-menu-open .content-area,
    body.menurock3-disable-adapt-portrait.menurock3-menu-open main.site-main,
    body.menurock3-disable-adapt-portrait.menurock3-menu-open [class*="container"],
    body.menurock3-disable-adapt-portrait.menurock3-menu-open [class*="content"] {
        transform: none !important;
        margin: 0 !important;
        width: 100% !important;
        position: relative !important;
        transition: none !important; /* Deshabilitar cualquier transición */
        animation: none !important; /* Deshabilitar cualquier animación */
        left: 0 !important;
        right: 0 !important;
    }
    
    body.menurock3-disable-adapt-portrait.menurock3-menu-open .menurock3-menu-panel {
        width: 100% !important;
        position: fixed !important;
        z-index: 9999999 !important; /* Z-index extremadamente alto */
        overflow-y: auto !important;
        height: 100vh !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        transition: none !important;
        box-shadow: none !important;
    }
    
    /* Mejorar visibilidad del botón de cierre */
    body.menurock3-disable-adapt-portrait.menurock3-menu-open .menurock3-toggle-button {
        z-index: 10000000 !important; /* Z-index mayor que el panel */
        position: fixed !important;
        right: 15px !important;
        top: 15px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    /* Asegurar que el carrusel se muestre correctamente */
    body.menurock3-disable-adapt-portrait.menurock3-menu-open .menurock3-mobile-tabs-wrapper {
        display: block !important;
    }
    
    /* Asegurar que el contenido del menú ocupe toda la pantalla */
    body.menurock3-disable-adapt-portrait.menurock3-menu-open .menurock3-menu-content {
        height: calc(100vh - var(--menurock3-mobile-bottom-height) - 70px) !important;
        margin: 0 !important;
        padding-bottom: 0 !important;
        overflow-y: auto !important;
    }
    
    /* Asegurar que la barra móvil esté visible */
    body.menurock3-disable-adapt-portrait.menurock3-menu-open .menurock3-mobile-tabs-container {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        z-index: 10000000 !important;
    }
}