/* Importación de fuente personalizada */
@import url('https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap');
/* Reset básico */
body, h1 {
    margin: 0;
    padding: 0;
}
/* ===== CONTENEDOR PRINCIPAL ===== */
.main_section_class {
    height: 100vh;
    position: relative;
    background-image: linear-gradient(to bottom, #000022, #000033, #000044, #000000);
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ===== TÍTULO PRINCIPAL ===== */
.div_title {
    position: absolute;
    text-align: center;
    z-index: 4;
}
.main_title {
    color: aliceblue;
    font-size: xxx-large;
    font-weight: lighter;
    font-family: 'Major Mono Display', monospace;
    pointer-events: none;
}
/* ===== ANIMACIONES ===== */
@keyframes aparecer-desaparecer {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}
/* Punto de parpadeo del cursor */
.div_title #startPoint {
    color: rgb(255, 255, 255);
    font-size: xxx-large;
    font-weight: lighter;
    font-family: 'Major Mono Display', monospace;
    animation: aparecer-desaparecer 3s infinite;
    animation-delay: 3s;
    opacity: 0;
    pointer-events: none;
}
/* ===== ESTRELLAS ANIMADAS ===== */
.estrella {
    position: absolute;
    background-color: white;
    width: 1px;
    height: 1px;
    opacity: 0.6;
    pointer-events: none;
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0);
}
/* Animación de movimiento vertical de las estrellas */
@keyframes mover {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-150px);
    }
}
/* Animación de parpadeo de las estrellas */
@keyframes parpadear {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 1;
    }
}
/* ===== EFECTOS DE TRANSICIÓN ===== */
.div_transition {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.20, 1, 0.5, 1);
}
/* Estado activo de la transición */
.div_transition.transition_effect {
    opacity: 1;
}
/* ===== ESTELA DEL CURSOR ===== */
.estela {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.estela-item {
    position: absolute;
    width: 2.5px;
    height: 2.5px;
    background-color: #0078D4;
    border-radius: 50%;
    opacity: 0.7;
    transform: translate(-50%, -50%);
    animation: fadeOut 0.1s linear;
}
/* Animación de desvanecimiento para la estela */
@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

/* ===== HOJA DE PERSONAJE ===== */
.character_sheet_class {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    padding: 20px;
    font-family: 'Major Mono Display', monospace;
    color: aliceblue;
    overflow-y: auto;
}

.character_container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.character_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.character_title {
    font-size: 2.5rem;
    color: aliceblue;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.back_button {
    background: linear-gradient(45deg, #0078D4, #106ebe);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Major Mono Display', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.3);
}

.back_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.5);
}

.character_content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.character_column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.character_field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.character_field label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0078D4;
    text-shadow: 0 0 5px rgba(0, 120, 212, 0.5);
}

.character_field input,
.character_field textarea,
.character_field select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: aliceblue;
    font-family: 'Major Mono Display', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.character_field input:focus,
.character_field textarea:focus,
.character_field select:focus {
    outline: none;
    border-color: #0078D4;
    box-shadow: 0 0 10px rgba(0, 120, 212, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.character_field input::placeholder,
.character_field textarea::placeholder {
    color: rgba(240, 248, 255, 0.6);
}

.character_field textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===== SECCIONES DE ATRIBUTOS ===== */
.attributes_section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section_title {
    font-size: 1.2rem;
    color: #0078D4;
    margin: 0 0 15px 0;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 120, 212, 0.5);
    border-bottom: 1px solid rgba(0, 120, 212, 0.3);
    padding-bottom: 8px;
}

.attributes_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.attribute_field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.attribute_field label {
    font-size: 0.9rem;
    color: #0078D4;
    font-weight: bold;
}

.attribute_field input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px;
    color: aliceblue;
    font-family: 'Major Mono Display', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.attribute_field input:focus {
    outline: none;
    border-color: #0078D4;
    box-shadow: 0 0 8px rgba(0, 120, 212, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.attribute_field.calculated input {
    background: rgba(0, 120, 212, 0.1);
    border-color: rgba(0, 120, 212, 0.3);
    color: #0078D4;
    font-weight: bold;
}

.attribute_field.calculated input:focus {
    background: rgba(0, 120, 212, 0.15);
}

.calculation {
    font-size: 0.7rem;
    color: rgba(240, 248, 255, 0.6);
    font-style: italic;
    text-align: center;
    margin-top: 2px;
}

/* ===== SECCIONES DE DAÑO Y CURACIÓN ===== */
.damage_heal_section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.damage_heal_section input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px;
    color: aliceblue;
    font-family: 'Major Mono Display', monospace;
    font-size: 0.9rem;
}

.damage_heal_section input:focus {
    outline: none;
    border-color: #0078D4;
    box-shadow: 0 0 8px rgba(0, 120, 212, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.damage_button {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Major Mono Display', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.damage_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.5);
}

.heal_button {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Major Mono Display', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.heal_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
}

.damage_log,
.heal_log {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
    max-height: 100px;
    overflow-y: auto;
    font-size: 0.8rem;
}

.damage_log {
    border-left: 3px solid #dc3545;
}

.heal_log {
    border-left: 3px solid #28a745;
}

.log_entry {
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.log_entry:last-child {
    border-bottom: none;
}

.damage_entry {
    color: #ff6b6b;
}

.heal_entry {
    color: #51cf66;
}

.character_connections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.abilities_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.ability_item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.ability_item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #0078D4;
}

.ability_info {
    flex: 1;
}

.ability_name {
    font-weight: bold;
    color: #0078D4;
    margin-bottom: 5px;
}

.ability_description {
    font-size: 0.9rem;
    color: rgba(240, 248, 255, 0.8);
    margin-bottom: 5px;
}

.ability_stats {
    font-size: 0.8rem;
    color: rgba(240, 248, 255, 0.6);
}

.ability_actions {
    display: flex;
    gap: 8px;
}

.edit_button,
.delete_button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: aliceblue;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Major Mono Display', monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.edit_button:hover {
    background: rgba(0, 120, 212, 0.3);
    border-color: #0078D4;
}

.delete_button:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
}

.add_button {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Major Mono Display', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.add_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
}

/* Modal para agregar/editar habilidades */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal_content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal_title {
    font-size: 1.5rem;
    color: aliceblue;
    margin: 0;
}

.close_modal {
    background: none;
    border: none;
    color: aliceblue;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close_modal:hover {
    background: rgba(220, 53, 69, 0.3);
}

.modal_form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form_group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form_group label {
    font-size: 0.9rem;
    color: #0078D4;
    font-weight: bold;
}

.form_group input,
.form_group select,
.form_group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px;
    color: aliceblue;
    font-family: 'Major Mono Display', monospace;
    font-size: 0.9rem;
}

.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus {
    outline: none;
    border-color: #0078D4;
    box-shadow: 0 0 8px rgba(0, 120, 212, 0.3);
}

.modal_actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.save_button,
.cancel_button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-family: 'Major Mono Display', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save_button {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.save_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
}

.cancel_button {
    background: rgba(255, 255, 255, 0.1);
    color: aliceblue;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel_button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .character_content,
    .character_connections {
        grid-template-columns: 1fr;
    }
    
    .character_header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .character_title {
        font-size: 2rem;
    }
    
    .modal_content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .form_row {
        grid-template-columns: 1fr;
    }
    
    .attributes_grid {
        grid-template-columns: 1fr;
    }
    
    .attributes_section {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .section_title {
        font-size: 1rem;
    }
}
