:root {
    --bg-color: #000000;
    --bg-alt: #0a0a0c;
    --primary: #ffffff;
    --primary-glow: rgba(255, 255, 255, 0.2);
    --secondary: #d4d4d4;
    --text-main: #ffffff;
    --text-muted: #888888;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --gold: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

.text-highlight {
    color: var(--primary);
}

.text-glow {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.logo-highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--bg-color) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, #000000 70%);
    padding: 6rem 20px 4rem 20px; /* Espacio arriba y abajo para que respire */
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-img {
    width: 250px;
    max-width: 80%;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Common Section Styles */
.section {
    padding: 6rem 5%;
}

.alt-bg {
    background-color: var(--bg-alt);
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Sede Section */
.sede-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sede-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.sede-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.sede-features {
    list-style: none;
}

.sede-features li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sede-features span {
    color: var(--primary);
    font-weight: bold;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, #1a1a1f, #2a2a32);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    animation: shine 5s infinite;
}

.image-text {
    color: rgba(255,255,255,0.2);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Ranks Section */
.ranks-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
}

.rank-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(5px);
    flex: 1 1 250px;
    min-width: 200px;
}

.rank-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.rank-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(157, 2, 8, 0.2);
    color: var(--primary);
    border: 1px solid rgba(157, 2, 8, 0.4);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.rank-lider { background: rgba(47, 49, 54, 0.4); color: #b9bbbe; border-color: rgba(47, 49, 54, 0.8); }
.rank-sublider { background: rgba(255, 255, 0, 0.15); color: #ffff00; border-color: rgba(255, 255, 0, 0.4); }
.rank-manoderecha { background: rgba(0, 255, 0, 0.15); color: #00ff00; border-color: rgba(0, 255, 0, 0.4); }
.rank-manoizquierda { background: rgba(169, 169, 169, 0.15); color: #a9a9a9; border-color: rgba(169, 169, 169, 0.4); }
.rank-capo { background: rgba(255, 255, 255, 0.15); color: #ffffff; border-color: rgba(255, 255, 255, 0.4); }
.rank-jefearmas { background: rgba(255, 0, 255, 0.15); color: #ff00ff; border-color: rgba(255, 0, 255, 0.4); }
.rank-jefecalle { background: rgba(52, 152, 219, 0.15); color: #3498db; border-color: rgba(52, 152, 219, 0.4); }
.rank-soldado { background: rgba(0, 255, 255, 0.15); color: #00ffff; border-color: rgba(0, 255, 255, 0.4); }
.rank-elite { background: rgba(255, 136, 0, 0.15); color: #ff8800; border-color: rgba(255, 136, 0, 0.4); }
.rank-sicario { background: rgba(218, 112, 214, 0.15); color: #da70d6; border-color: rgba(218, 112, 214, 0.4); }
.rank-asociado { background: rgba(150, 75, 0, 0.15); color: #c88141; border-color: rgba(150, 75, 0, 0.4); }

.rank-jefebunker { background: rgba(196, 144, 228, 0.15); color: #c490e4; border-color: rgba(196, 144, 228, 0.4); }
.rank-bunker { background: rgba(110, 83, 135, 0.25); color: #a178cc; border-color: rgba(110, 83, 135, 0.5); }
.rank-jefedarkchat { background: rgba(144, 190, 109, 0.15); color: #90be6d; border-color: rgba(144, 190, 109, 0.4); }
.rank-darkchat { background: rgba(85, 122, 70, 0.25); color: #83b86c; border-color: rgba(85, 122, 70, 0.5); }

.rank-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rank-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-list span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: var(--font-heading);
}

/* Progression Section */
.progression-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.squad-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
}

.squad-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.squad-header h3 {
    font-size: 1.3rem;
}

.encargado-badge {
    font-size: 0.8rem;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.squad-body {
    padding: 1.5rem;
}

.squad-body h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.squad-members {
    list-style: none;
}

.squad-members li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.squad-members li:last-child {
    border-bottom: none;
}

.status {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-weight: 600;
}

.status.active {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.status.learning {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

/* Form Section */
.form-section {
    position: relative;
}

.form-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 3rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(157, 2, 8, 0.2);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Loader */
.loader {
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-message {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1rem;
    border-radius: 4px;
    display: none;
    font-weight: 600;
}

.form-message.success {
    display: block;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Audio Player */
.audio-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    width: 250px;
    transition: transform 0.3s ease;
}

.audio-player:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.music-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite ease-in-out;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.audio-details {
    display: flex;
    flex-direction: column;
}

.audio-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary);
}

.audio-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.audio-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    margin-left: 15px;
}

.volume-control span {
    font-size: 0.8rem;
}

.volume-control input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

.volume-control input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -4px;
}

.volume-control input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .sede-grid {
        grid-template-columns: 1fr;
    }
    
    .image-placeholder {
        height: 300px;
    }
}

/* Switch Toggle para la Armería */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #555;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Switch Toggle para la Armería */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #555;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Modales Mejoradas */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}


