/* DO Responsive Menu Styles */

/* Variables del tema */
:root {
    --color-cta1: #527c75;
    --color-cta2: #b17f49;
    --color-cta3: #ffb833;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
}

/* Variables para modo oscuro */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #404040;
}

/* Contenedor principal */
#do-responsive-menu-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Botón toggle fijo */
.do-menu-toggle {
    width: 60px;
    height: 60px;
    background: var(--color-cta1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(82, 124, 117, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10000;
}

.do-menu-toggle:hover {
    background: var(--color-cta2);
    transform: scale(1.1);
}

/* Líneas del botón hamburguesa */
.do-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animación del botón cuando está activo */
.do-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.do-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.do-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Panel del menú */
.do-menu-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 9998;
    overflow-y: auto;
}

.do-menu-panel.active {
    right: 0;
}

/* Header del menú */
.do-menu-header {
    background: var(--color-cta1);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-cta2);
}

.do-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.do-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.do-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Navegación del menú */
.do-menu-nav {
    padding: 20px;
}

.do-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.do-menu-nav li {
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.do-menu-nav li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.do-menu-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.do-menu-nav a:hover {
    color: var(--color-cta1);
}

/* Overlay para cerrar el menú */
.do-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.do-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .do-menu-panel {
        width: 280px;
    }
    
    .do-menu-toggle {
        width: 55px;
        height: 55px;
    }
    
    .do-menu-toggle span {
        width: 22px;
        height: 2px;
    }
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 480px) {
    .do-menu-panel {
        width: 100%;
        right: -100%;
    }
    
    #do-responsive-menu-container {
        bottom: 15px;
        right: 15px;
    }
    
    .do-menu-toggle {
        width: 50px;
        height: 50px;
    }
}

/* Animaciones adicionales */
.do-menu-panel {
    transform: translateX(0);
}

.do-menu-panel.active {
    transform: translateX(0);
}

/* Estilos para el widget */
.do-responsive-menu-widget {
    background: var(--bg-secondary);
    border-radius: 5px;
    text-align: center;
}

.do-responsive-menu-widget p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
} 