/* base.css — Global styles, header, navigation, and layout foundation */

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #c41e3a;
    --color-dark: #1a1a1a;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --font-primary: 'Rajdhani', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-secondary);
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    opacity: var(--border-opacity, 1);
}

.site-header .container {
    max-width: 100%;
    padding: 0 0 50px 0;
    height: 100%;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 90%;
    margin: 0 auto;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: left center;
}

.logo img {
    width: 500px;
    height: auto;
}

/* Main Navigation */
.main-nav {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0;
}

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Shuriken icon next to nav links */
.nav-shuriken {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
    transition: transform 0.4s ease, filter 0.3s ease;
    flex-shrink: 0;
}

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

.nav-link:hover .nav-shuriken {
    transform: rotate(360deg);
    filter: brightness(0) invert(0.3) sepia(1) saturate(10) hue-rotate(340deg);
}

/* Hamburger button - oculto en desktop */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

/* Sidebar mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1999;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: #0a0a0a;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 25px;
    transition: left 0.3s ease;
}

.sidebar.active {
    left: 0;
}

.sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
}

.sidebar-link {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.sidebar-link:hover .nav-shuriken {
    transform: rotate(360deg);
    filter: brightness(0) invert(0.3) sepia(1) saturate(10) hue-rotate(340deg);
}

.skip-to-content {
    position: absolute;
    left: -9999px;
}

.skip-to-content:focus {
    left: 0;
    top: 0;
    background: var(--color-primary);
    color: white;
    padding: 10px;
    z-index: 9999;
}

/* Botón WhatsApp en header */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: fixed;
    right: 5%;
    flex-shrink: 0;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Ocultar el botón flotante */
.wdt-button {
    display: none;
}
